mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 06:25:54 +01:00
DrawList: increase detailed line textures from 3px to 4px to better hide the texture change.
+ amend: align #defines.
This commit is contained in:
parent
f2055fe160
commit
ec510539c7
17
imgui.h
17
imgui.h
@ -3202,27 +3202,22 @@ struct ImGuiSelectionExternalStorage
|
|||||||
// Hold a series of drawing commands. The user provides a renderer for ImDrawData which essentially contains an array of ImDrawList.
|
// Hold a series of drawing commands. The user provides a renderer for ImDrawData which essentially contains an array of ImDrawList.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
// The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking.
|
|
||||||
#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX
|
#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX
|
||||||
#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (32)
|
#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (32) // The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH
|
#ifndef IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH
|
||||||
#define IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH (3) // Calculate detailed textures for width [1..IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH]
|
#define IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH (4) // Calculate detailed textures for width [1..IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef IM_DRAWLIST_TEX_LINES_SAMPLE_COUNT
|
#ifndef IM_DRAWLIST_TEX_LINES_SAMPLE_COUNT
|
||||||
#define IM_DRAWLIST_TEX_LINES_SAMPLE_COUNT (4) // How many samples per integer thickness level.
|
#define IM_DRAWLIST_TEX_LINES_SAMPLE_COUNT (4) // How many samples per integer thickness level.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH_MAX (IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH * IM_DRAWLIST_TEX_LINES_SAMPLE_COUNT)
|
|
||||||
|
|
||||||
#ifndef IM_DRAWLIST_TEX_CORNERS_ROUNDING_MAX
|
#ifndef IM_DRAWLIST_TEX_CORNERS_ROUNDING_MAX
|
||||||
#define IM_DRAWLIST_TEX_CORNERS_ROUNDING_MAX (16)
|
#define IM_DRAWLIST_TEX_CORNERS_ROUNDING_MAX (16)
|
||||||
#endif
|
#endif
|
||||||
#ifndef IM_DRAWLIST_TEX_CORNERS_THICKNESS_MAX
|
#ifndef IM_DRAWLIST_TEX_CORNERS_THICKNESS_MAX
|
||||||
#define IM_DRAWLIST_TEX_CORNERS_THICKNESS_MAX (4) // 0: fill, 1-3: strokes thickness
|
#define IM_DRAWLIST_TEX_CORNERS_THICKNESS_MAX (4) // 0: fill, 1-3: strokes thickness
|
||||||
#endif
|
#endif
|
||||||
|
#define IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH_MAX (IM_DRAWLIST_TEX_LINES_DETAILED_WIDTH * IM_DRAWLIST_TEX_LINES_SAMPLE_COUNT)
|
||||||
|
|
||||||
// ImDrawIdx: vertex index. [Compile-time configurable type]
|
// ImDrawIdx: vertex index. [Compile-time configurable type]
|
||||||
// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended).
|
// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user