tmp
This commit is contained in:
parent
59b1d0b89a
commit
e41714c2bb
6 changed files with 140 additions and 42 deletions
|
|
@ -135,11 +135,11 @@ void Canvas::deleteImageHandle(ImageHandle image) {
|
|||
}
|
||||
}
|
||||
|
||||
void Canvas::proc() {
|
||||
void Canvas::drawBegin() {
|
||||
const auto size = mContext->window->getSize();
|
||||
nvgBeginFrame(mContext->vg, size.x, size.y, 1.0);
|
||||
}
|
||||
|
||||
void Canvas::draw() {
|
||||
void Canvas::drawEnd() {
|
||||
nvgEndFrame(mContext->vg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ DebugGUI::~DebugGUI() {
|
|||
delete mContext;
|
||||
}
|
||||
|
||||
void DebugGUI::proc() {
|
||||
void DebugGUI::drawBegin() {
|
||||
tp::HeapAllocGlobal::startIgnore();
|
||||
|
||||
ImGui_ImplOpenGL3_NewFrame();
|
||||
|
|
@ -57,7 +57,7 @@ void DebugGUI::proc() {
|
|||
tp::HeapAllocGlobal::stopIgnore();
|
||||
}
|
||||
|
||||
void DebugGUI::draw() {
|
||||
void DebugGUI::drawEnd() {
|
||||
ImGui::Render();
|
||||
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "Window.hpp"
|
||||
|
||||
class GLFWwindow;
|
||||
struct GLFWwindow;
|
||||
|
||||
namespace tp {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue