Detailed Description
- See also:
- Class GBuffer,
Class GBufWriter,
Structure GBufData,
G-Buffer
Channel Indices.
- Description:
- This class is available in release 3.0 and later only.
This is the object returned by GBuffer::CreateReader().
Methods of this class allow the G-Buffer data to be read.
Here is an example of reading multiple layer data from the G-Buffer
using methods of this class.
All methods of this class are implemented by the System.
#include <gbuf.h>
List of all
members.
Member Function Documentation
virtual int StartLine |
( |
int |
y |
) |
[pure virtual] |
- Parameters:
- int y
The zero based index of the scan line to start.
- Returns:
- Returns -1 if there was no data for line, or the x value of
first non-empty pixel.
virtual BOOL StartPixel |
( |
int |
x |
) |
[pure virtual] |
- Parameters:
- int x
The zero based index of the pixel to start.
- Returns:
- Returns TRUE.
virtual BOOL StartPixel |
( |
int |
x, |
|
|
int |
y |
|
) |
|
[pure virtual] |
virtual BOOL StartNextLayer |
( |
|
) |
[pure virtual] |
- Returns:
- TRUE if more data to read; otherwise FALSE.
virtual int NextPixel |
( |
|
) |
[pure virtual] |
virtual BOOL ReadChannelData |
( |
int |
chan, |
|
|
void * |
data |
|
) |
|
[pure virtual] |
- Parameters:
- The channel to read. One of the items from: G-Buffer Channel
Indices.
void *data
Points to storage for the data.
- Returns:
- TRUE if data was available; otherwise FALSE.
virtual BOOL ReadAllData |
( |
GBufData * |
data |
) |
[pure virtual] |
- Parameters:
- GBufData
*data
Points to storage for the data. See Structure GBufData.
- Returns:
- TRUE if data was available; otherwise FALSE.
virtual BOOL ModifyChannelData |
( |
int |
chan, |
|
|
void * |
data |
|
) |
|
[pure virtual] |
- Parameters:
- int chan
Specifies the channel to write to.
void *data
Points to the data to write.
- Returns:
- TRUE indicates success; FALSE indicates failure.
virtual BOOL ModifyAllData |
( |
GBufData * |
data |
) |
[pure virtual] |
- Parameters:
- GBufData
*data
Points to the data to write.
- Returns:
- TRUE indicates success; FALSE indicates failure.
virtual void DeleteThis |
( |
|
) |
[pure virtual] |
virtual INT_PTR Execute |
( |
int |
cmd, |
|
|
ULONG_PTR |
arg1 = 0 , |
|
|
ULONG_PTR |
arg2 = 0 , |
|
|
ULONG_PTR |
arg3 = 0 |
|
) |
|
[inline, virtual] |
- Parameters:
- int cmd
The command to execute.
ULONG arg1=0
Optional argument 1 (defined uniquely for each cmd).
ULONG arg2=0
Optional argument 2.
ULONG arg3=0
Optional argument 3.
- Returns:
- An integer return value (defined uniquely for each
cmd).
- Default Implementation:
- { return 0; }
GBufReader GBufReader GBufReader
GBufReader GBufReader GBufReader GBufReader GBufReader GBufReader
GBufReader
GBufReader GBufReader GBufReader
GBufReader GBufReader GBufReader GBufReader GBufReader GBufReader
GBufReader