Adding objects GUI initial. Changing TODO. Some fixes along side

This commit is contained in:
IlushaShurupov 2023-08-03 22:04:42 +03:00
parent f9d62c324d
commit 112fea2f04
18 changed files with 1345 additions and 56 deletions

View file

@ -1,6 +1,8 @@
#include "Window.hpp"
#include "imgui.h"
int main() {
tp::ModuleManifest* deps[] = { &tp::gModuleGraphics, nullptr };
tp::ModuleManifest testModule("Example", nullptr, nullptr, deps);
@ -10,12 +12,16 @@ int main() {
}
{
tp::HeapAllocGlobal::startIgnore();
auto window = tp::Window::createWindow(800, 600, "Window 1");
tp::HeapAllocGlobal::stopIgnore();
if (window) {
window->renderLoop();
while (!window->shouldClose()) {
window->processEvents();
ImGui::Text("Hello!");
window->draw();
}
}
tp::Window::destroyWindow(window);