diff --git a/Editor/Runtime.cpp b/Editor/Runtime.cpp new file mode 100644 index 00000000..a716c275 --- /dev/null +++ b/Editor/Runtime.cpp @@ -0,0 +1,41 @@ +#include +#include + +#include +#include + +#include +#include + +void CheckError() +{ + GLenum err; + while ((err = glGetError()) != GL_NO_ERROR) + { + // Process/log the error. + std::cout << "OPENGL ERROR: " << err << std::endl; + } +} + +void main(int argc, char* argv[]) +{ + using namespace Nuake; + Engine::Init(); + + auto window = Nuake::Engine::GetCurrentWindow(); + window->SetTitle("asdasd"); + + while (!window->ShouldClose()) + { + Nuake::Engine::Tick(); + + + const auto& WindowSize = window->GetSize(); + glViewport(0, 0, WindowSize.x, WindowSize.y); + + RenderCommand::SetClearColor({ 0.1, 0.1 ,0.1, 1.0 }); + RenderCommand::Clear(); + + Nuake::Engine::EndDraw(); + } +} \ No newline at end of file