42 lines
529 B
C++
42 lines
529 B
C++
#include <ReWindow/types/Window.h>
|
|
|
|
#include "ReWindow/Logger.h"
|
|
|
|
class TestGameAppWindow : public ReWindow::OpenGLWindow
|
|
{
|
|
public:
|
|
TestGameAppWindow() : ReWindow::OpenGLWindow("TestGameAppWindow", 1024, 768, 2, 1)
|
|
{
|
|
|
|
}
|
|
~TestGameAppWindow() override
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
int main()
|
|
{
|
|
ReWindow::Logger::Debug.EnableConsole(false);
|
|
|
|
TestGameAppWindow* app = new TestGameAppWindow();
|
|
|
|
bool success = app->Open();
|
|
|
|
if (!success)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
|
|
while (app->IsOpen())
|
|
{
|
|
app->ManagedRefresh();
|
|
}
|
|
|
|
|
|
app->Close();
|
|
|
|
return 0;
|
|
|
|
} |