Scaled up the UI.
This commit is contained in:
parent
791bf36b90
commit
79c878a8e5
10441
src/embedded_fonts.h
Normal file
10441
src/embedded_fonts.h
Normal file
File diff suppressed because it is too large
Load Diff
26
src/main.cc
26
src/main.cc
@ -17,9 +17,10 @@
|
||||
#include "Camera.h"
|
||||
#include "SkinnedMesh.h"
|
||||
#include "GLFW/glfw3.h"
|
||||
#include "embedded_fonts.h"
|
||||
|
||||
const int Width = 1024;
|
||||
const int Height = 768;
|
||||
const int Width = 2420;
|
||||
const int Height = 1480;
|
||||
const int MaxVertices = (1 << 16);
|
||||
const int MaxIndices = MaxVertices * 3;
|
||||
|
||||
@ -233,7 +234,6 @@ int main() {
|
||||
|
||||
AnimationController animation_controller (&skinned_mesh);
|
||||
|
||||
// state.ozz = std::make_unique<ozz_t>();
|
||||
state.time.factor = 1.0f;
|
||||
|
||||
Camera_Init(&state.camera);
|
||||
@ -242,8 +242,24 @@ int main() {
|
||||
ImGui::CreateContext();
|
||||
ImGui::StyleColorsDark();
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
io.IniFilename = nullptr;
|
||||
io.Fonts->AddFontDefault();
|
||||
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
|
||||
io.IniFilename = "ATPImgui.ini";
|
||||
|
||||
ImGui::GetStyle().ScaleAllSizes(2.0);
|
||||
|
||||
//io.Fonts->AddFontDefault();
|
||||
ImFontConfig font_config;
|
||||
font_config.OversampleH = 4;
|
||||
font_config.OversampleV = 4;
|
||||
font_config.GlyphExtraSpacing.x = 1.0f;
|
||||
io.Fonts->AddFontFromMemoryCompressedTTF(
|
||||
// roboto_medium_ttf_compressed_data,
|
||||
// roboto_medium_ttf_compressed_size,
|
||||
droid_sans_ttf_compressed_data,
|
||||
droid_sans_ttf_compressed_size,
|
||||
28,
|
||||
&font_config);
|
||||
|
||||
io.KeyMap[ImGuiKey_Tab] = GLFW_KEY_TAB;
|
||||
io.KeyMap[ImGuiKey_LeftArrow] = GLFW_KEY_LEFT;
|
||||
io.KeyMap[ImGuiKey_RightArrow] = GLFW_KEY_RIGHT;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user