Original Post
In an application that I'm working on I'm implementing a screenshot function using SDL. The function is as follows: My surface is defined as: I don't seem to able to spot any problems with either pieces of that code, but whenever I try to compile the code I receive the following errors:
void SDLScreen::captureScreen() {
SDL_SaveBMP(SDL_Surface* m_screen, char* File);
}
SDLScreen::SDLScreen(SDL_Surface* screen) : m_screen(screen), m_gcn_graph(new gcn::SDLGraphics()) {
m_gcn_graph->setTarget(m_screen);
error: expected primary-expression before '*' token.
error: expected exeression before 'char'. The errors occur within the definition of the captureScreen() function. Any help is greatly appreciated. Thank you very much :-).