mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-09 23:54:20 +00:00
Added PixelCenterOffset for OpenGL/DirectX compatibility.
This commit is contained in:
parent
680a5a9b54
commit
8ab2942716
4 changed files with 10 additions and 4 deletions
1
imgui.h
1
imgui.h
|
|
@ -373,6 +373,7 @@ struct ImGuiIO
|
|||
ImFont Font; // <auto> // Gets passed to text functions. Typedef ImFont to the type you want (ImBitmapFont* or your own font).
|
||||
float FontHeight; // <auto> // Default font height, must be the vertical distance between two lines of text, aka == CalcTextSize(" ").y
|
||||
bool FontAllowScaling; // = false // Set to allow scaling text with CTRL+Wheel.
|
||||
float PixelCenterOffset; // = 0.5f // Set to 0.0f for DirectX <= 9, 0.5f for Direct3D >= 10 and OpenGL.
|
||||
|
||||
// Settings - Functions (fill once)
|
||||
void (*RenderDrawListsFn)(ImDrawList** const draw_lists, int count); // Required
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue