Modules/Graphics/examples/Example.cpp
2024-11-24 22:36:45 +03:00

25 lines
483 B
C++

#include "Graphics.hpp"
int main() {
tp::ModuleManifest* deps[] = { &tp::gModuleAllocators, nullptr };
tp::ModuleManifest testModule("Example", nullptr, nullptr, deps);
if (!testModule.initialize()) {
return 1;
}
{
tp::HeapAllocGlobal::startIgnore();
auto window = tp::Window::createWindow(800, 600, "Window 1");
tp::HeapAllocGlobal::stopIgnore();
if (window) {
window->renderLoop();
}
tp::Window::destroyWindow(window);
}
testModule.deinitialize();
}