• Create Account

### #ActualPoppit

Posted 12 March 2012 - 06:30 PM

Hello,

I am learning SDL atm and trying to make a very basic graphics engine to make a tetris clone. I have been able to fix every bug I have made except for this one: error: SDL_Surface does not name a type.

#ifndef GAMEEVENTS_H

#define GAMEEVENTS_H

#include "intergers.h"

class gameEvents

{

private:

bool gameRunning;

SDL_Surface screen(); //Right here

public:

gameEvents();

void gameInit();

void gameInput();

void gameDraw();

void gameUpdate();

void gameClean();

bool gameState();

};

#endif GAMEEVENTS_H



This little bug has had me stalled for at least 6 Hours. -.-
Any help is appreciated.

### #2Poppit

Posted 12 March 2012 - 06:30 PM

Hello,

I am learning SDL atm and trying to make a very basic graphics engine to make a tetris clone. I have been able to fix every bug I have made except for this one: error: SDL_Surface does not name a type.

#ifndef GAMEEVENTS_H

#define GAMEEVENTS_H

#include "intergers.h"

class gameEvents

{

private:

bool gameRunning;

SDL_Surface screen(); //Right here

public:

gameEvents();

void gameInit();

void gameInput();

void gameDraw();

void gameUpdate();

void gameClean();

bool gameState();

};

#endif GAMEEVENTS_H



This little bug has had me stalled for at least 6 Hours. -.-
Any help is appreciated.

### #1Poppit

Posted 12 March 2012 - 06:28 PM

Hello,

I am learning SDL atm and trying to make a very basic graphics engine to make a tetris clone. I have been able to fix every bug I have made except for this one: error: SDL_Surface does not have a name type.

#ifndef GAMEEVENTS_H

#define GAMEEVENTS_H

#include "intergers.h"

class gameEvents

{

private:

bool gameRunning;

SDL_Surface screen(); //Right here

public:

gameEvents();

void gameInit();

void gameInput();

void gameDraw();

void gameUpdate();

void gameClean();

bool gameState();

};

#endif GAMEEVENTS_H



This little bug has had me stalled for at least 6 Hours. -.-
Any help is appreciated.

PARTNERS