Code:
typedef struct COLOR
{
int red, green, blue, alpha;
};
typedef struct RESOLUTION_DATA
{
int width, height;
COLOR color_size; // size per color channel in bits
COLOR accum_size; // for the accumulation buffer
int stencil, zbuffer, depth;
bool doublebuffer;
bool resizable;
bool fullscreen;
bool sdlblit;
};
So geht es irgendwie nicht:
Code:
RESOLUTION_DATA* sdpResolutiondata = {
640,480,
{8,8,8,8},
{0,0,0,0},
8,24,24,
true,true,false,true};
Ist ja irgendwie auch klar, schliesslich deklariere ich einen Zeiger auf RESOLUTION_DATA, aber wie kann ich dann die Wertzuweisung vornehmen?
Zuletzt bearbeitet: