see ya later allocator

This commit is contained in:
IlyaShurupov 2024-03-22 14:05:03 +03:00
parent d7bc7e10ab
commit aa53a4addb
44 changed files with 32 additions and 1693 deletions

View file

@ -1,8 +1,6 @@
#include "Window.hpp"
#include "WindowContext.hpp"
#include "Allocators.hpp"
#include "Graphics.hpp"
// -------- Debug UI -------- //
@ -50,13 +48,9 @@ DebugGUI::~DebugGUI() {
}
void DebugGUI::drawBegin() {
tp::HeapAllocGlobal::startIgnore();
ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();
tp::HeapAllocGlobal::stopIgnore();
}
void DebugGUI::drawEnd() {

View file

@ -1,7 +1,6 @@
#include "Window.hpp"
#include "WindowContext.hpp"
#include "Allocators.hpp"
#include "Rect.hpp"
@ -18,11 +17,6 @@
#include <GLFW/glfw3.h>
#include <cstdio>
namespace tp {
static ModuleManifest* deps[] = { &gModuleAllocators, nullptr };
ModuleManifest gModuleGraphics = ModuleManifest("Graphics", nullptr, nullptr, deps);
}
using namespace tp;
static void keyCallback(GLFWwindow* window, int key, int scancode, int action, int mods);
@ -62,8 +56,6 @@ Window::~Window() {
}
Window* Window::createWindow(Vec2F size, const char* title) {
HeapAllocGlobal::startIgnore();
static int count = 1;
if (!count) {
printf("Window class is a singleton\n");
@ -82,7 +74,6 @@ Window* Window::createWindow(Vec2F size, const char* title) {
auto out = new Window(size, title);
HeapAllocGlobal::stopIgnore();
return out;
}