You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backends/imgui_impl_opengl3.cpp
+2-1
Original file line number
Diff line number
Diff line change
@@ -164,6 +164,7 @@
164
164
// In the rest of your app/engine, you can use another loader of your choice (gl3w, glew, glad, glbinding, glext, glLoadGen, etc.).
165
165
// If you happen to be developing a new feature for this backend (imgui_impl_opengl3.cpp):
166
166
// - You may need to regenerate imgui_impl_opengl3_loader.h to add new symbols. See https://github.com/dearimgui/gl3w_stripped
167
+
// Typically you would run: python3 ./gl3w_gen.py --output ../imgui/backends/imgui_impl_opengl3_loader.h --ref ../imgui/backends/imgui_impl_opengl3.cpp ./extra_symbols.txt
167
168
// - You can temporarily use an unstripped version. See https://github.com/dearimgui/gl3w_stripped/releases
168
169
// Changes to this backend using new APIs should be accompanied by a regenerated stripped loader version.
// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
2312
2313
// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
2313
2314
constchar* BackendPlatformName; // = NULL
2314
2315
constchar* BackendRendererName; // = NULL
@@ -3064,10 +3065,11 @@ struct ImDrawList
3064
3065
float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content
3065
3066
constchar* _OwnerName; // Pointer to owner window's name for debugging
3066
3067
3067
-
// If you want to create ImDrawList instances, pass them ImGui::GetDrawListSharedData() or create and use your own ImDrawListSharedData (so you can use ImDrawList without ImGui)
IMGUI_API voidPushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling)
unsignedint GlyphID : 31; // Input // For custom font glyphs only (ID < 0x110000)
3283
3287
unsignedint GlyphColored : 1; // Input // For custom font glyphs only: glyph is colored, removed tinting.
3284
3288
float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance
3285
3289
ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset
3286
3290
ImFont* Font; // Input // For custom font glyphs only: target font
3287
-
ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphColored = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; }
3291
+
ImFontAtlasCustomRect() { X = Y = 0xFFFF; Width = Height = 0; GlyphID = 0; GlyphColored = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; }
3288
3292
boolIsPacked() const { return X != 0xFFFF; }
3289
3293
};
3290
3294
@@ -3431,8 +3435,9 @@ struct ImFont
3431
3435
const ImFontGlyph* FallbackGlyph; // 4-8 // out // = FindGlyph(FontFallbackChar)
3432
3436
3433
3437
// Members: Cold ~32/40 bytes
3438
+
// Conceptually ConfigData[] is the list of font sources merged to create this font.
3434
3439
ImFontAtlas* ContainerAtlas; // 4-8 // out // // What we has been loaded into
3435
-
const ImFontConfig* ConfigData; // 4-8 // in // // Pointer within ContainerAtlas->ConfigData
3440
+
const ImFontConfig* ConfigData; // 4-8 // in // // Pointer within ContainerAtlas->ConfigData to ConfigDataCount instances
3436
3441
short ConfigDataCount; // 2 // in // ~ 1 // Number of ImFontConfig involved in creating this font. Bigger than 1 when merging multiple font sources into one ImFont.
3437
3442
ImWchar FallbackChar; // 2 // out // = FFFD/'?' // Character used if a glyph isn't found.
3438
3443
ImWchar EllipsisChar; // 2 // out // = '...'/'.'// Character used for ellipsis rendering.
0 commit comments