VGA

getBasePointer()

Description

Gets the memory address for a given pixel.

Syntax

VGA.getBasePointer()
VGA.getBasePointer(x,y)

Parameters

x - x coordinate of the pixel
y - y coordinate of the pixel

Returns

Returns memory address

Example

typedef volatile unsigned int *vgaptr_t;
int width, count;
vgaptr_t vmem = getBasePointer(x,y);
width = VGA.getHSize();
for( count=0; count<width; count++ )
{

vmem++; //pixel traversal

}

See also

  

Share |