krankzinnig 0 Newbie Poster

Hello, I am writing an OOP wrapper for the SDL libraries and am coming across an issue. I am trying to make a GLUT like call back system for the render loop and etc and getting strange results. Here is my code for my draw function that uses the call back.

void Engine::Draw(void (*Function)(void))
    {
        while(bRun)
        {
            while(SDL_PollEvent(&objEvent))
            {
                if(objEvent.type == SDL_QUIT)
                {
                    Destroy();
                }
            }

            ClearScreen();

            void (*Function)(void);

            SwapBuffers();
        }
    }

I compile the library fine and here is my main.cpp using the library:

#include <novalis.h>

using namespace Novalis;
Engine* objEngine;

void RenderScene()
{
}

int main(int argc, char* argv[])
{
    objEngine->Initialize("Novalis", 640, 480, 32);
    objEngine->Draw(&RenderScene);

    return 0;
}

I am using Code::Blocks and I get an exit status of 3. If you need more information let me know. Thanks.