#include <ImGuiLayer.h>
ImGuiLayer.h 파일의 10 번째 라인에서 정의되었습니다.
◆ ImGuiLayer()
| Gear::ImGuiLayer::ImGuiLayer |
( |
| ) |
|
◆ ~ImGuiLayer()
| Gear::ImGuiLayer::~ImGuiLayer |
( |
| ) |
|
◆ Begin()
| void Gear::ImGuiLayer::Begin |
( |
| ) |
|
ImGuiLayer.cpp 파일의 69 번째 라인에서 정의되었습니다.
73 ImGui_ImplOpenGL3_NewFrame();
74 ImGui_ImplGlfw_NewFrame();
◆ End()
| void Gear::ImGuiLayer::End |
( |
| ) |
|
ImGuiLayer.cpp 파일의 78 번째 라인에서 정의되었습니다.
82 ImGuiIO& io = ImGui::GetIO();
84 io.DisplaySize = ImVec2((
float)app.GetWindow().GetWidth(), (
float)app.GetWindow().GetHeight());
88 ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
90 if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
92 GLFWwindow* backup_current_context = glfwGetCurrentContext();
93 ImGui::UpdatePlatformWindows();
94 ImGui::RenderPlatformWindowsDefault();
95 glfwMakeContextCurrent(backup_current_context);
◆ GetName()
| const std::string& Gear::Layer::GetName |
( |
| ) |
const |
|
inlineinherited |
◆ OnAttach()
| void Gear::ImGuiLayer::OnAttach |
( |
| ) |
|
|
overridevirtual |
Gear::Layer(으)로부터 재구현되었습니다.
ImGuiLayer.cpp 파일의 26 번째 라인에서 정의되었습니다.
32 ImGui::CreateContext();
33 ImGuiIO& io = ImGui::GetIO(); (void)io;
34 io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
36 io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
37 io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable;
42 ImGui::StyleColorsDark();
46 ImGuiStyle& style = ImGui::GetStyle();
47 if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
49 style.WindowRounding = 0.0f;
50 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
53 GLFWwindow* window =
static_cast<GLFWwindow*
>(app.GetWindow().GetNativeWindow());
56 ImGui_ImplGlfw_InitForOpenGL(window,
true);
57 ImGui_ImplOpenGL3_Init(
"#version 410");
◆ OnDetach()
| void Gear::ImGuiLayer::OnDetach |
( |
| ) |
|
|
overridevirtual |
Gear::Layer(으)로부터 재구현되었습니다.
ImGuiLayer.cpp 파일의 60 번째 라인에서 정의되었습니다.
64 ImGui_ImplOpenGL3_Shutdown();
65 ImGui_ImplGlfw_Shutdown();
66 ImGui::DestroyContext();
◆ OnEvent()
| virtual void Gear::Layer::OnEvent |
( |
Event & |
event | ) |
|
|
inlinevirtualinherited |
◆ OnImGuiRender()
| virtual void Gear::Layer::OnImGuiRender |
( |
| ) |
|
|
inlinevirtualinherited |
◆ OnUpdate()
| virtual void Gear::Layer::OnUpdate |
( |
Timestep |
ts | ) |
|
|
inlinevirtualinherited |
◆ m_DebugName
| std::string Gear::Layer::m_DebugName |
|
protectedinherited |
◆ m_Time
| float Gear::ImGuiLayer::m_Time = 0.0f |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: