Hello
A lil while a go, i posted something about loading the pixels for glDrawPixels.
So i got a source code from an engine to load it(XG-Engine).
No i finally got some time to start coding again.
So i created some variables from the type:
XGImage
The struct XGImage looks like this:
struct XGImage
{
int Width, Height, Depth;
byte *Data;
};
So after loading the pixels, i want to draw them with the following line(ImageLoad is a variable that i created):
glDrawPixels(&ImageLoad.Width, &ImageLoad.Height, GL_RGBA, GL_UNSIGNED_BYTE, ImageLoad->Data);
But it gives the following errors:
Quote:
teacherkiller.cpp:81: error: request for member `Width' in `ImageLoad', which
is of non-class type `XGEngine::XGImage*'
teacherkiller.cpp:81: error: request for member `Height' in `ImageLoad', which
is of non-class type `XGEngine::XGImage*'
So can somebody tell me what i did wrong?
Thanx Hylke