From e2792534bce3671f343a4d5ea73e6373425b162a Mon Sep 17 00:00:00 2001 From: omigamedev Date: Thu, 2 Feb 2017 23:10:05 +0000 Subject: [PATCH] edit the example layout to add more details --- data/layout.xml | 49 ++++++++++++++++++++++++++----------------------- engine/app.cpp | 2 +- engine/main.cpp | 2 +- 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/data/layout.xml b/data/layout.xml index 3e55d57..41fcced 100644 --- a/data/layout.xml +++ b/data/layout.xml @@ -14,6 +14,10 @@ + + + + @@ -22,13 +26,14 @@ - - - - - - + + + + + + + @@ -38,28 +43,26 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - - - + + - + diff --git a/engine/app.cpp b/engine/app.cpp index e0bd349..e821674 100644 --- a/engine/app.cpp +++ b/engine/app.cpp @@ -192,7 +192,7 @@ void App::update(float dt) ShaderManager::u_mat4(kShaderUniform::MVP, proj * tran); ShaderManager::u_vec2(kShaderUniform::Tof, tof); ShaderManager::u_vec2(kShaderUniform::Tsz, tsz); - plane.draw_fill(); + //plane.draw_fill(); font_tex.unbind(); sampler.unbind(); } diff --git a/engine/main.cpp b/engine/main.cpp index 3d363c2..5f19129 100644 --- a/engine/main.cpp +++ b/engine/main.cpp @@ -386,7 +386,7 @@ int main() wglDeleteContext(hRC); DestroyWindow(hWnd); - hWnd = CreateWindow(wc.lpszClassName, L"UI Layout Engine", WS_OVERLAPPEDWINDOW, + hWnd = CreateWindow(wc.lpszClassName, L"UI Layout Engine - OpenGL 3.1", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, clientRect.right - clientRect.left, clientRect.bottom - clientRect.top, 0, 0, hInst, 0);