Add Vapp
This commit is contained in:
43
view/src/Vapp.cpp
Normal file
43
view/src/Vapp.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
#include <cinttypes>
|
||||
|
||||
#include "Vapp.hpp"
|
||||
#include "values/Dna.hpp"
|
||||
|
||||
#include <rlImGui.h>
|
||||
#include <imgui.h>
|
||||
#include <raylib.h>
|
||||
|
||||
void Vapp::init()
|
||||
{
|
||||
// TraceLog(LOG_INFO, "%d / %d = %d", sizeof(Dna), sizeof(int64_t), sizeof(Dna) / sizeof(int64_t));
|
||||
}
|
||||
|
||||
void Vapp::update()
|
||||
{
|
||||
}
|
||||
|
||||
void Vapp::draw()
|
||||
{
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
ImGui::DockSpaceOverViewport(0, NULL, ImGuiDockNodeFlags_PassthruCentralNode);
|
||||
|
||||
if (ImGui::BeginMainMenuBar())
|
||||
{
|
||||
if (ImGui::BeginMenu("Window"))
|
||||
{
|
||||
if (ImGui::MenuItem("Demo Window", nullptr, showDemoWindow))
|
||||
showDemoWindow = !showDemoWindow;
|
||||
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
ImGui::EndMainMenuBar();
|
||||
}
|
||||
|
||||
if (showDemoWindow)
|
||||
ImGui::ShowDemoWindow(&showDemoWindow);
|
||||
}
|
||||
|
||||
void Vapp::deinit()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user