Tips&Tricks section snapshot at Aug.2016, sorted by author names. I think it can be useful here because tips and tricks are a source of enlightement even at page 65.
Note: Tool written in freebasic to get the whole list joined at the very bottom.
2
Hey,this is a really cool trick with negative powers of 2!
1000101
[3] Fast multi-threaded synchronization constructs
Runtime Code Generation or Just Some Hax
Win32\Dos\Linux (to come) Clipboard module
Pixel-Perfect Collision Detection
Detecting Windows NT/Wine from code.
Win32 ThreadControl function
Simple Rational Class (Warning: Code dump)
Preliminary graphics library benchmarking
Aligned allocation functions
CPUID Class - Final Release?
memrep - memset for non byte values
ExEvent - Extended ScreenEvent
Fun with the preproc (warning, contains explicit language)
Curious benchmark results
pseudo-oo
Approximate Equallity
Graphics Memory Manager
Bit Arrays
~~mic~~ASM: cast float to unsigned longint
~~mic~~DEF SEG + PEEK/POKE hack
~~mic~~Procedural infinite heightmap generator
~~mic~~Demostration of finding the angle of an arc
~~mic~~Put function that does simple transformations
~~mic~~Working with playing cards
~~mic~~String split function
~~mic~~BMP "Depalettiser"
~~mic~~Variant-like variables
~~mic~~SDLNet TCP Example
~~mic~~Uniscribe header & example
~~mic~~Associativity and commutativity
~~mic~~QB-like ASCII table
~~mic~~Simple code-simplifying helper for instr()
~~mic~~Find the signed/unsigned equivalent of an integer type
~~mic~~Averaging packed values in an integer
~~mic~~Basic ZLib usage
~~mic~~ASSERT with failure message
~~mic~~Work out how long statements take to perform
~~mic~~ASM Code
~~mic~~Yagl! - A demo
~~mic~~ON TIMER substitute
~~mic~~PNG SCREENshot function
~~mic~~Crack and getCracked string manipulation
~~mic~~100% QB-compatible rnd function
~~mic~~Importing C libraries to a namespace
~~mic~~Displaying a Double with arbitrary precision
~~mic~~FreeBASIC CRC32
~~mic~~Bin2Bas
~~mic~~Cool easy game trainer load screen
AaveOpenGL Skybox
abc123How to make your own SCREENSAVER!
acetoline
Antialiased Bezier Curves
Antialiased Circles
Complex Numbers
adhay
A general string sort enhancement
fb_poker
on randomness
Adigun A. Polack
Warning! Squadrons of pixel craft are heading towards FB!!
Detect the first 4 joystick buttons in GFXlib 2 clearly!
Aeras
I need help with my program with freebasic
I can't get my logo to move around.
aetherFox
Palette effect using Allegro
agamemnus
The Qsort To End All Qsorts!
Common "2nd-level" string manipulations
Snippet: average the RGBA values of two uintegers.
"Screensaver"
Enforced "type aliases"
Decimal places limit / limiter
Never segfault due to changing types again!: callocateFull
dimFull: a macro for when you aren't sure of the type.
getId function for sorted arrays
Converting concave polygons to triangles in Freebasic
Read-only variables discussion
Creating an fb.image pointer "array" dynamically.
Reverse RGBA / rgb
line / line segment intersection function
DIRS().. fills an array with file names.
AGS
Commandline handling
scintilla editing component/widget (new iup widget)
Deductive database (datalog)
Pseudo random number generator
Using Python as a database (in-memory and on disk) package
Replacing select case with binary search (many large ranges)
find character class of char using xlat (inline asm)
Tile-based scrolling (uses SDL library)
Setting up bi - directional communcation between processes
Level order traversal of binary search tree (queueless)
treap ('balanced' binary search tree)
Debugging using a widget instead of PRINT statements
FreeBASIC keyword recognizer (using trie nor hashtable)
Searching UTF-8 encoded text using fb port of instr
S expressions (recursion)
Displaying values of an array using a html table
Regular expression example (uses pcre library)
Using bsearch to search a sorted array
Using tree rotations to destroy a binary search tree
mathematical expression parser (operator precedence parser)
Simple declaration 'parser'
drag-n-drop demo (simple drawing program)
Computed Goto (using labels as values/inline assembler)
FB version mkd(byval number as double)
Creating/writing/reading python objects using freebasic
bitarray
UTF-8 encoded byte stream validation
Redirecting stdin/out/err of child process (uses WIN32 API)
bittree (a tree based implementation of a dictionary)
Comb sort (bubble sort on steroids)
File Buffering (user defined file buffer)
Hash table generator
Getting input from user using a simple GUI (IUP/LUA/FB)
Multi line comment without using /' ... '/
Red-black tree (self-balancing binary search tree)
Optimizing code using the gcc back end (-gen gcc -O 2)
Comparing strings four characters at a time
Word completion/string completion (using a dictionary)
Includer-->includee dependency analyser
WStrPtr
GUI example using JAPI (uses JAVA)
Geany (an IDE) scripting examples
Creating, saving and reloading an in-memory Sqlite database
A 4 MB function (built using 572 bytes of FB source code)
Command line handling (arguments can appear in any order)
UTF16 macros (usable with WString indexing)
Using a sqlite table as a hashtable (indexed/in-memory db)
Converting UTF8 (unicode) to UTF32
Hacking the Insight debugger (can be used for FB debugging)
Attempt at implementing inheritance in FreeBASIC
Using dylibsymbol instead of import libraries (.dll.a)
Case InSeNsItIvE version of Instr
Fast string searching
Dictionary (programmed using a trie datastructure)
Reserved keyword recognizer
FreeBASIC versus Python (speed of execution)
al1979
incany.bi
albert
4 bouncing balls
Fast Decimal Multiplier
my first drawing program
Floating point math
aleofjax
Processor Friendly Frame Limiter
alfakilo
game scripting
Simple OpenGL shader example
display text in opengl
simple chatbot
Simple Chat
AK tic-tac-toe with AI
OpenGl road
billiard style ball movement
RTS GAME
Midi pianoroll
aloberoger
vb form to fb
AMIBCT
Ultra-Fast Directory Search
Amundo
Traverse Windows Registry Keys
Andec
Change Windows cursor shape in console programs
Andrew Collins
CHR$() codes
AndT
Who can hack this? (Don't modify the code :p)
How i use RND for cool effects..
A simple Filepack / extract routine with a costum container
A debugging method for subs :)
Beatbox with windows messagebox
A simple Applicationprotector (Freebasic only)
A simple 3D render method
Simple grass textrure rendering
angros47
GLSL shader for post processing in FBGX
animated toroid in OpenB3D
Fire effect in pure FB
Infinite sprites in pure FreeBasic
Some fun with munching squares
Metaballs: blobs of goo
3d animated tunnel in pure FB
Convolution filter(smoothing, sharpening...) in OpenGL
Blur shadows with OpenB3D
Multiple graphic windows
Xforms GUI Toolkit
Toast Projection
Fast sine approxymation
Butterworth filter
Convolution high and low pass filters
Zelda - A link to the past map
2d sprites in OpenGL
Voxel sprites
Triple horizontal resolution with subpixels
Parallax scrolling in less than 100 lines
Neural net
Multi-lingual Chatbot
A little quiz (optimizing branches)
2d on 3d (in OpenB3d)
Road for a racing game
Drive a Lamborghini in FreeBasic
Visit Dystopia city
Procedural 3d tree
Alien insects!
Voronoi diagrams
PUT behind background
3d city
3D mouse pointer in 3d space
Fading and trail effects
Pseudo 3D by Mode 7 simulation
A very simple tile engine
Simplest Chess game
Transformation matrix on 2D images
Some sprites from a never-released QB game
Hopalong
Simple planet texture
Road drawing system, similar to SimCity
An alien face stares at you!
MikMod headers translated to FreeBasic
Unzip
Detect wheter FreeBasic or QBasic is used
Emulating the SHARED command in subroutines
WAV files by the speaker
FreeBasic interpreter?
Random maze generator: simplest way
Turtle Graphics
antarman
zx spectrum screen emulator
Antoni
Merge Sort
Play single midi notes
HSV Colorspace
REplace chars from a string
Mouse interface for console programs
Put and get n bits from a buffer
Message box for windows batch files
COM black magic (not mine)
Convex hull
Permutations
Delayed startup of applications
GFX_NULL driver in GFXLIB
Draw a Bounding box with the mouse
Build a html photo book
Write text to console while in Gfx mode.
BMP Palette organiser
Console size is not fixed...
Compiler version control
arenth
A long and contrived spawn process example.
Multiple windows with fbgfx... sort of
attacke
Polygon - farily fast way.
An oop Example.
axipher
Color Picker (Windows only)
Debug without a debugger
2D music oscilliscope
point follow + alpha fade
Line intersection using advanced types (CVS)
Crazy gfx effect
Basic 2x Stretch
Date converter
Mini Tile Scroller
routine for anguled line drawing
Quick encryption
Finished Custom font
nth square root of a number
html log writer
Bacioiu.Ciprian
Triangle moving in X, Y, Z
badidea
Playing with hexagon tiles
Physics example: Bouncing balls
Simple code profiler
Tic-tac-toe in 1 hour
Physics example: BiotûSavart law
Simple tool for making color palettes
Sprite rotation
banon
simple .obj parser
BasicCoder2
Plotting 3D points to 2D display doodle
Path finder demo
scanning 2D array world for objects
conversion between isometric and Cartesian coordinates
Koch snowflake
FreeBasic snowflake
Fern Leaf generator
retro text box array
vanishing disc
Line Segment Circle Intersection
analog clock
squid on drugs
Implementing Vector Fonts
Another simple text box
raster fill triangles
Retro vector fonts
isometric world experiment
rotating cube with texture
3d to 2D projection
edit tiles and their objects
Bezier Curve
meshing cogs
Polygon demo
Drawing shapes.
Convert Bitmap to Data statements
Fade an Image
TEXT BOX EDITOR
LINE EDITOR
rounded corners
Oil Paint Effect
pixel perfect sprite collision
single and double mouse click
Shape contour extraction
Resize and move rectangle using mouse
Grab multiple webcam images
BasicScience
Stand alone Gui Slider
[NEW FEATURES 11-2-2010] FB_TextBox with advanced editing.
Dashed Line Routine
dynamic custom mouse cursor, using simple sprite
Updates for Excel Disphelper
ListBox Drop_Down Menu GUI
Font Changes mid Text_String with xFont wrapper
GUI Data_Entry form
Nintendo DSi, waiting...
Avoid graph axis min/max & tic headaches
Command_Button in FB
BastetFurry
[snippet] Isometric drawing
Little DRAW based text routine
bcohio2001
Stuff the keyboard buffer (Windows)
Another directory walker
Modal Progress bar and "Wait" window objects
Playing and recording wav files
Getting values of a multiple select listbox
Another DIR replacement
Insertion of string into an array in alphabetical order
BeginnerST
Simple programs to start
Some functions for string manipulation
biskbart
Fake blobs
Particles
blahboybang
Quadratic Equation Solver
bluatigro
atari books site
E motions sim
fuzzy logic example
BMarley
Irrlicht 3D Engine & ODE Physic Engine with FreeBasic!
bobfresh
Add Popup Balloon Tooltip to Dlg Ctrls
bojan.dosen
Easy Windows API Tutorial
GDI+ icon stack animation
YouTube viewer
Writing TAR (Tape ARchive) files
Simple Unix time output
Glass GFX (Win Vista/7 only)
Resizable GFX window
Resizable GFX window!!!
bruno_di_roma
Font size in Console mode
font in console mode
brybry
Simulate Mouse Click (Windows Only)
Buck
Linux screensavers?
bulrush
Read text file into array
Calmatory
Simple encryption
Yet another small&simple FB game ^__^
Simple "particle stuff" a.k.a. waterworks.
Carlos Herrera
Savitzky-Golay smooth
cbruce
Slope Averaging
ceoceo
lock / unlock
cevpegge
OpenGL 4 Port Viewer Demo with antiAliasing
cha0s
Get the address of a class function pointer
Some code to load any image to a FB image (using FreeImage)
Send a POST request via HTTP
Dynamic arrays in types
An object to facilitate dynamic arrays in types
Flood Filler
ForEach
3D button effect
"True" Generic Linked Lists
File iteration class
Round to a specified number of digits after decimal
Human-readable Windows Error Function
Simple little generic qsort example using arrays
a vector implementation...
Find out if your buffers are new or old, get width/height
graphics buffer handling
Load/Save .gif using FreeImage
high precision randomize
Easy type management thanks to ctors
independent unrestricted bmp loader
Simple password generator
console graphics commands [get/put, mouse support]
Block comment trick =)
Binary Event Handler
Simple linked list implementation.
Option Explicit'er
Easy BMP handling.
Call different function at runtime by a string.
Nostalgia!
zLib example, encapsulated.
Treat memory or an array like it's a file
behold jofers
Find an angle using only 2 vectors.
more spontaneous cha0s code
simple XML parsing
use pointers instead of select case
functions and progs i made when bored
versatile linked lists...
crappy short-circuit attempts...
getting openal to work with multiple samples
explaining some scrolling collision detection
Fast uByte array to String routine
an optimized 2x blocky scale algo
Function Generate_Declares
32-bit bmp loader
useless funcc
ChallengeSpaceYard
Handy clear inkey with only five characters
ChangeV
Zero filled string (useful for score table)
checker put (for any color depth)
Cherry
[Win32] Exception handling using Try/Catch/Finally
[Windows] Setting envvars and curdir in other processes
For Each
[Library/Port/Win] DockWnd - Docking windows (e.g. toolbars)
File and timer objects
[WinAPI] Injecting a DLL into a process
[Win32] Entering Ring 0 (Kernel Mode)!
Some stuff
Fatal Exception Handling (Access Violations and that stuff)
chim
Faster LINE
chris319
Functional SQLite Demo
chrowle
TUTORIAL: Module-type systems
chung
summary but fast shadows in openGL
save data to wav file
how to put a icon in irrlicht's 3D engine window
CJPinder
Fast Portable Solid RND Generator
coderJeff
gzip / zlib example in freebasic
How to change fbc's default dialect to "-lang qb".
Basic stack data structure
Image Object (was Types as Objects Preview)
CVSROOT update util
Multiple Resetable Timer Objects
Pixel Perfect Print Placement
Inkey$, CVI(), and CHR$(0)
Conexion
Prime Numbers
Fake 3D
Small Speed Test (ASM vs FB)
Playing with background animations
RGB to HSL
cosmax2008
How can FreeBasic beturned to a true (old style) interpreter
creek23
CairoPut - Cairo edition of MultiPut
dynamic UDT inside dynamic UDT
Draw String wrapper (handles tab and newline)
BASIC on GameBoy Advance
csde_rats
Fast math for lua
Cyperium
Faster distance calculation (a*a instead of a^2)
D.J.Peters
TexturedTriangle()
GetKeycode() keycodes for Inkey.
MultiPut V2.0 :-)
Using Shadertoy.com shaders offline.
A good collection of some collision stuff.
a line :-)
PutResize(dst,src,x,y,w,h)
PutResize(dst,x,y,w,h,src,x,y,w,h)
OpenGL shader language math in FreeBASIC.
Terrain marching (unfinished)
PutResize(dst,src)
RayTracing versus PhotonMapping
Circle from 3 points.
Cyclic redundancy check (CRC) 16/32 bit.
Base64 de/encoder the second edition :-)
MultiPut() for FreeBASIC >=1.0.4
Demo
Game Of Life on GPU via OpenCL
MIDI In AUDIO Out template (WINDOWS)
MiniLight 1.7 a minimal global illumination renderer.
JAVA class and virtual machine byte code viewer.
flow of fluid solver and volumen rendering
OnTimer proc's
Global Illumination rendering. (CPU killer)
Fast filled polygons in BASIC (all video modes + clipping)
TinyDialog a simple Windows and Linux user interface.
32 bit fixed point 16:16 VECTOR and MATRIX math.
WaitTimer
Misfit3D OpenGL editor (WIN and Linux) native file reader.
OpenGL vsync on/off (Windows and Linux)
Replacement for gluPerspective and gluLookAt.
another easy to understand EVAL() expression solver
Printing FBGFX screen or image on Windows.
How to use NaturalDocs with FreeBASIC.
Font8, Font14 and Font16 for FreeBASIC version >=0.24
Depending on program and user *.ini file Reader/Writer.
Edwin Catmull and Raphael Rom - Spline
little bit physics
glScreen.bi with VBO and Shader OpenGL extension's
Simplex noise in 2D
Load JPG, JPEG, JFIF, MJPG from file or memory.
Floyd Steinberg dithering
Fast clipping lines in BASIC.
Speak text and recording 59 languages styles (win32).
More accurate Sleep(ms) WIN32 and Linux x86
Get CPU Speed
Fast polygone and triangle BPP 8,15,16,24,32
DPM Scene (deepMesh 3D file format)
PF prefab file reader (deepMesh custom 3D primitives)
How many active instances of objects/classes/types.
2D Ray/Line Circle intersection
BASE64 En/Decoder
First Steinberg ASIO COM interface in pure FreeBASIC.
Back to the Road :lol:
Tiny C64 (old school)
Metatunnel demo JAVA to FreeBASIC port.
JAVA Class Stream Reader (quite useless)
Simple Mode 13 in fullscreen on all gfx cards.
Simple FBImage / Sprite scaling in Basic
Example to Evaluate Basic Numeric Expressions
Radiosity with jacobi matrix solver, only a test!
How to capture your OpenGL or FBGFX Screen as video. (win32)
very simple color picker
"Genetic Algorithm Tutorial" only the source code
Another view of prime numbers
Tip: How to handle virtual members of C++ classes
Win32 mixerclass
Image=ImageScale(SrcImage,width,height) (8,15,16,24,32 bpp)
Get your WAN IP Win and Lin (needs fbnet.bi)
Fast Ray/Line<->Plane intersection in BASIC
A RigidBody 3D class
Not a trick but C port of simple 2D fluid solver
Only for fun
Simple clipped 2D polygons in all modes bpp>=8.
Test for 4 and 8 way stepping FloodFill and RowByRowFill.
'Old School' voxels in FreeBASIC 0.16 (Lin,Win)
Simple PutPicture with zooming.
Springs as rubberbands in 2D
only an tip for threads under Windows 98,XP,2000
AVI File Creator in FreeBASIC for LINUX and WINDOWS
the old mandelbrot fractal
Recording sound with FB.
GFX PUT [destination], [xpos], [ypos], source, [scaling]
Get Windows Vectorfonts Data and calc the QSplines.
Play a litle bit with physic.
RGB Support in 256 Color Modes.
Make a break and play.
3D rotations over 3 aches without matrix's
ten times so fast with inline assembly
LINUX,WINDOWS Fast RGB to 8,16,24,32BPP with GDK
dabooda
Quick Sort Routine
Key Input Handler
---->