Skip to content

Instantly share code, notes, and snippets.

// Test helper for imgui_freetype
#include "misc/freetype/imgui_freetype.h"
struct FreeTypeTest
{
enum FontBuildMode { FontBuildMode_FreeType, FontBuildMode_Stb };
FontBuildMode BuildMode = FontBuildMode_FreeType;
bool WantRebuild = true;
Wonder Boy: The Dragon's Trap
-----------------------------
Quick Guide for programmers
Last updated October 2018
Contact: Omar Cornut <XXXXXX
===============================================
INDEX
===============================================
// Small hack for a resizable InputTextMultiline()
ImVec2 SetInputTextMultilineResizableY(const char* label, const ImVec2& base_size)
{
ImVec2 pos = ImGui::GetCursorScreenPos();
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, { 0.0f, 0.0f });
ImGui::BeginChild(label, base_size, ImGuiChildFlags_ResizeY | ImGuiChildFlags_FrameStyle | ImGuiChildFlags_Borders);
ImVec2 actual_size = ImGui::GetWindowSize();
ImGui::EndChild();
ImGui::PopStyleVar();
ImGui::SetCursorScreenPos(pos);