smh
This commit is contained in:
@@ -41,8 +41,10 @@ bool InfernoEngine::InitWindow(int xRes, int yRes) {
|
||||
|
||||
void InfernoEngine::Ready() {
|
||||
if (!m_initialized) m_initialized = true;
|
||||
}
|
||||
|
||||
while (m_display->WindowOpen) {
|
||||
void InfernoEngine::Render() {
|
||||
while (m_display->WindowOpen) {
|
||||
SDL_Event e;
|
||||
while (SDL_PollEvent(&e) == SDL_TRUE)
|
||||
if (e.type == SDL_QUIT) m_display->CloseDisplay();
|
||||
|
||||
@@ -30,6 +30,7 @@ public:
|
||||
bool InitWindow(int xRes, int yRes);
|
||||
|
||||
void Ready();
|
||||
void Render();
|
||||
|
||||
// Queries the modules, if one of them errored it finds their error string
|
||||
// and returns it to the main execution code, the same happens for warnings
|
||||
|
||||
@@ -11,6 +11,6 @@ int main(int argc, char** argv) {
|
||||
std::cout << "Error initializing window: " << inferno.LastError() << std::endl;
|
||||
}
|
||||
|
||||
|
||||
inferno.Ready();
|
||||
inferno.Render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user