GA_buffer
Declaration
typedef struct {
N_uint32 dwSize;
N_int32 Offset;
N_int32 Stride;
N_int32 Width;
N_int32 Height;
} GA_buffer
Prototype In
snap/graphics.h
Description
Generic graphics buffer parameter block. This structure defines a generic buffer in offscreen video memory, and is passed to the driver to make such buffers active rendering operations. The Offset member is the offset of the start of the buffer in video memory. The Stride member defines the stride of the buffer in bytes, while the Width and Height members define the dimensions of the buffer in logical pixel units.
Note: All buffers are in packed pixel format, and the values of the Offset and Stride members must adhere to the format restrictions defined in the GA_modeInfo structure for the buffer type being enabled.
Note: The dwSize member is intended for future compatibility, and should be set to the size of the structure as defined in this header file. Future drivers will be compatible with older software by examiming this value.
Members
dwSize |
Set to size of structure in bytes |
Offset |
Buffer starting address in bytes |
Stride |
Stride of the buffer in bytes (bytes for a line of data) |
Width |
Width of buffer in pixels |
Height |
Height of the buffer in pixels |
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com