I've begun fiddling about making a GUI interface, and I thought it would be a good idea to make it so that SDL_Events went to the GUI first, and then could be passed through to the current UI Event handling code. This, however, required calling a newly written function in SpringApp, which in turn required including "Main.cpp" which caused link errors. So I moved SpringApp to SpringApp.h and SpringApp.cpp.
As this is a rather large change to the very core of the program, I felt I should get opinions of others.
I also thought I should get feedback on having a SpringApp function called by something other than main().
Location of SpringApp class definition.
Moderator: Moderators
Ok, I made an event handler class. In the main loop in SpringApp::Run(), once it gets the event, it just passes it to the event handler. However, because of the way the code was written, I also needed to move UpdateSDLKeys(), SetSDLVideoMode(), SetVSync(), and InitOpenGL() into the new class. I do think, however, this is about the minimum change I can make to get access to the event management external to SpringApp.
Before I get SVN commit access, however, I want to make sure I can load up the Cegui libraries.
Also, I am mostly going to be working on the API. It sounds like Word my be doing the actual Gui coding. I'll have to get in contact with him.
@Argh Jokingly, I half decided to do this to guarantee getting a job.
Before I get SVN commit access, however, I want to make sure I can load up the Cegui libraries.
Also, I am mostly going to be working on the API. It sounds like Word my be doing the actual Gui coding. I'll have to get in contact with him.
@Argh Jokingly, I half decided to do this to guarantee getting a job.