The FreeBasic include for the Graphics Driver Interface
Marcel Sondaar
Public Domain
gfx.bi | The FreeBasic include for the Graphics Driver Interface |
GFXCALLS | This enumeration lists all the defined calls controlling a display driver |
GFXPRIMITIVES | This enumeration lists all the basic primitives a graphics card might support |
Constants | |
GFX_SETPIXEL | Call index for setting a pixel |
GFX_SETCHAR | Call index for drawing a character |
This enumeration lists all the defined calls controlling a display driver
Derived from: none
Derivatives: none
See also: none
This enumeration lists all the basic primitives a graphics card might support
Derived from: none
Derivatives: BLOBSWINDOWCALLS
See also: none
Constants | |
GFX_SETPIXEL | Call index for setting a pixel |
GFX_SETCHAR | Call index for drawing a character |
Call index for setting a pixel
The pixel addressed is computed in screen coordinates (i.e. counting from top-left) rather than mathematical coordinates used in some systems.
Parameter 1 | call gate information |
Parameter 2 | x location |
Parameter 3 | y location |
Parameter 4 | color |
none
all other inputs
Call index for drawing a character
note that characters are a multiple of pixels, and that the x and y location are scaled to address adjacent character cells. I.e. when x is increased by one the character is drawn immediately next to the previous characters, rather than overwriting it
Mainly to support text modes, the pixels used to show the character are left in an undefined state, and writing one pixel over a character may cause the entire character to disappear
Parameter 1 | call gate information |
Parameter 2 | x location |
Parameter 3 | y location |
Parameter 4 | character code |
none
all other inputs