gglsurface Struct Reference

A surface (bitmap) that can be drawn upon using GGL. More...

#include <ggl.h>


Data Fields

int * addr
int width
 Word-aligned address of the surface buffer.
int x
 Width (in pixels) of the buffer.
int y


Detailed Description

A surface (bitmap) that can be drawn upon using GGL.

All GGL operations are performed on surfaces. Each surface is an instance of this data structure. The LCD screen is a surface as well. Surfaces can be copied, scrolled, etc. To create a surface, the user should allocate a memory block of enough size to accomodate the desired bitmap. The size in bytes is (width*height)/2.

Definition at line 112 of file ggl.h.


Field Documentation

int* gglsurface::addr

Definition at line 113 of file ggl.h.

int gglsurface::width

Word-aligned address of the surface buffer.

Definition at line 114 of file ggl.h.

int gglsurface::x

Width (in pixels) of the buffer.

Definition at line 115 of file ggl.h.

int gglsurface::y

Definition at line 115 of file ggl.h.


The documentation for this struct was generated from the following file:
Generated on Sat Feb 17 00:05:27 2007 for GGL by  doxygen 1.5.0