FreeBASIC  0.91.0
FBGFX Struct Reference

#include <fb_gfx.h>

Collaboration diagram for FBGFX:

Data Fields

int id
 Mode id number for contexts identification. More...
 
int mode_num
 Current mode number. More...
 
unsigned char ** page
 Pages memory. More...
 
int num_pages
 Number of requested pages. More...
 
int visible_page
 Current visible page number. More...
 
unsigned char * framebuffer
 Our current visible framebuffer. More...
 
int w
 
int h
 Current mode width and height. More...
 
int depth
 Current mode depth in bits per pixel. More...
 
int bpp
 Bytes per pixel. More...
 
int pitch
 Width of a framebuffer line in bytes. More...
 
unsigned int * palette
 Current RGB color values for each palette index. More...
 
unsigned int * device_palette
 Current RGB color values of visible device palette. More...
 
unsigned char * color_association
 Palette color index associations for CGA/EGA emulation. More...
 
char * dirty
 Dirty lines buffer. More...
 
struct GFXDRIVERdriver
 Gfx driver in use. More...
 
int color_mask
 Color bit mask for colordepth emulation. More...
 
struct PALETTEdefault_palette
 Default palette for current mode. More...
 
int scanline_size
 Vertical size of a single scanline in pixels. More...
 
int cursor_x
 
int cursor_y
 Current graphical text cursor position (in chars, 0 based) More...
 
struct FONTfont
 Current font. More...
 
int text_w
 
int text_h
 Graphical text console size in characters. More...
 
float aspect
 Aspect ratio (used in CIRCLE) More...
 
char * key
 Keyboard states. More...
 
int refresh_rate
 Driver refresh rate. More...
 
GFX_CHAR_CELL ** con_pages
 Character information for all pages. More...
 
EVENTevent_queue
 The OS events queue array. More...
 
int event_head
 
int event_tail
 Indices for the head and tail event in the array. More...
 
FBMUTEXevent_mutex
 Mutex lock for accessing the events queue. More...
 
volatile int flags
 Status flags. More...
 
int lock_count
 Reference count for SCREENLOCK/UNLOCK. More...
 

Detailed Description

Definition at line 223 of file fb_gfx.h.

Field Documentation

float FBGFX::aspect

Aspect ratio (used in CIRCLE)

Definition at line 246 of file fb_gfx.h.

int FBGFX::bpp

Bytes per pixel.

Definition at line 233 of file fb_gfx.h.

unsigned char* FBGFX::color_association

Palette color index associations for CGA/EGA emulation.

Definition at line 237 of file fb_gfx.h.

int FBGFX::color_mask

Color bit mask for colordepth emulation.

Definition at line 240 of file fb_gfx.h.

GFX_CHAR_CELL** FBGFX::con_pages

Character information for all pages.

Definition at line 249 of file fb_gfx.h.

int FBGFX::cursor_x

Definition at line 243 of file fb_gfx.h.

int FBGFX::cursor_y

Current graphical text cursor position (in chars, 0 based)

Definition at line 243 of file fb_gfx.h.

struct PALETTE* FBGFX::default_palette

Default palette for current mode.

Definition at line 241 of file fb_gfx.h.

int FBGFX::depth

Current mode depth in bits per pixel.

Definition at line 232 of file fb_gfx.h.

unsigned int* FBGFX::device_palette

Current RGB color values of visible device palette.

Definition at line 236 of file fb_gfx.h.

char* FBGFX::dirty

Dirty lines buffer.

Definition at line 238 of file fb_gfx.h.

struct GFXDRIVER* FBGFX::driver

Gfx driver in use.

Definition at line 239 of file fb_gfx.h.

int FBGFX::event_head

Definition at line 251 of file fb_gfx.h.

FBMUTEX* FBGFX::event_mutex

Mutex lock for accessing the events queue.

Definition at line 252 of file fb_gfx.h.

EVENT* FBGFX::event_queue

The OS events queue array.

Definition at line 250 of file fb_gfx.h.

int FBGFX::event_tail

Indices for the head and tail event in the array.

Definition at line 251 of file fb_gfx.h.

volatile int FBGFX::flags

Status flags.

Definition at line 253 of file fb_gfx.h.

struct FONT* FBGFX::font

Current font.

Definition at line 244 of file fb_gfx.h.

unsigned char* FBGFX::framebuffer

Our current visible framebuffer.

Definition at line 230 of file fb_gfx.h.

int FBGFX::h

Current mode width and height.

Definition at line 231 of file fb_gfx.h.

int FBGFX::id

Mode id number for contexts identification.

Definition at line 225 of file fb_gfx.h.

char* FBGFX::key

Keyboard states.

Definition at line 247 of file fb_gfx.h.

int FBGFX::lock_count

Reference count for SCREENLOCK/UNLOCK.

Definition at line 254 of file fb_gfx.h.

int FBGFX::mode_num

Current mode number.

Definition at line 226 of file fb_gfx.h.

int FBGFX::num_pages

Number of requested pages.

Definition at line 228 of file fb_gfx.h.

unsigned char** FBGFX::page

Pages memory.

Definition at line 227 of file fb_gfx.h.

unsigned int* FBGFX::palette

Current RGB color values for each palette index.

Definition at line 235 of file fb_gfx.h.

int FBGFX::pitch

Width of a framebuffer line in bytes.

Definition at line 234 of file fb_gfx.h.

int FBGFX::refresh_rate

Driver refresh rate.

Definition at line 248 of file fb_gfx.h.

int FBGFX::scanline_size

Vertical size of a single scanline in pixels.

Definition at line 242 of file fb_gfx.h.

int FBGFX::text_h

Graphical text console size in characters.

Definition at line 245 of file fb_gfx.h.

int FBGFX::text_w

Definition at line 245 of file fb_gfx.h.

int FBGFX::visible_page

Current visible page number.

Definition at line 229 of file fb_gfx.h.

int FBGFX::w

Definition at line 231 of file fb_gfx.h.


The documentation for this struct was generated from the following file: