fix ve headers
This commit is contained in:
@@ -21,6 +21,9 @@ namespace sandbox
|
|||||||
|
|
||||||
namespace VE
|
namespace VE
|
||||||
{
|
{
|
||||||
|
// HERE
|
||||||
|
// перенести в VE.hpp
|
||||||
|
// и сделать варитивными параметрами !!!
|
||||||
inline application& create()
|
inline application& create()
|
||||||
{
|
{
|
||||||
static sandbox::test_app app{ "vertex_engine_sandbox" };
|
static sandbox::test_app app{ "vertex_engine_sandbox" };
|
||||||
|
|||||||
21
src/VE.hpp
21
src/VE.hpp
@@ -1,14 +1,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "utils/utils.hpp"
|
#include "utils/utils.hpp" // IWYU pragma: keep
|
||||||
|
#include "application/application.hpp" // IWYU pragma: keep
|
||||||
#include "application/application.hpp"
|
#include "event/event.hpp" // IWYU pragma: keep
|
||||||
#include "event/event.hpp"
|
#include "layer/layer.hpp" // IWYU pragma: keep
|
||||||
#include "layer/layer.hpp"
|
#include "glfw/glfw.hpp" // IWYU pragma: keep
|
||||||
#include "glfw/glfw.hpp"
|
#include "gui/gui.hpp" // IWYU pragma: keep
|
||||||
#include "gui/gui.hpp"
|
#include "gui/style/icons.hpp" // IWYU pragma: keep
|
||||||
|
#include "gui/style/fonts.hpp" // IWYU pragma: keep
|
||||||
#include "gui/style/icons.hpp"
|
#include "opengl/opengl.hpp" // IWYU pragma: keep
|
||||||
#include "gui/style/fonts.hpp"
|
|
||||||
|
|
||||||
#include "opengl/opengl.hpp"
|
|
||||||
|
|||||||
@@ -43,9 +43,6 @@ namespace VE
|
|||||||
|
|
||||||
void gui::end_frame()
|
void gui::end_frame()
|
||||||
{
|
{
|
||||||
// ImGuiIO& io = ImGui::GetIO();
|
|
||||||
// io.DisplaySize = ImVec2((float)m_glfw->width(), (float)m_glfw->height());
|
|
||||||
|
|
||||||
ImGui::Render();
|
ImGui::Render();
|
||||||
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
|
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,4 +16,3 @@
|
|||||||
#define VE_PUSH_FONT(def_font, def_size)\
|
#define VE_PUSH_FONT(def_font, def_size)\
|
||||||
ImGui::PushFont(VE::style::fonts::get_font(VE::style::fonts::font_type::def_font, def_size))
|
ImGui::PushFont(VE::style::fonts::get_font(VE::style::fonts::font_type::def_font, def_size))
|
||||||
#define VE_POP_FONT() ImGui::PopFont()
|
#define VE_POP_FONT() ImGui::PopFont()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user