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
@@ -148,7 +144,7 @@ public ByteBuffer getCmdListVtxBufferData(final int cmdListIdx) {
148
144
149
145
///////// End of Render Methods
150
146
151
-
/**
147
+
/**
152
148
* Only valid after Render() is called and before the next NewFrame() is called.
153
149
*/
154
150
publicbooleangetValid() {
@@ -159,7 +155,7 @@ public boolean getValid() {
159
155
return THIS->Valid;
160
156
*/
161
157
162
-
/**
158
+
/**
163
159
* Number of ImDrawList* to render
164
160
*/
165
161
publicintgetCmdListsCount() {
@@ -170,7 +166,7 @@ public int getCmdListsCount() {
170
166
return THIS->CmdListsCount;
171
167
*/
172
168
173
-
/**
169
+
/**
174
170
* For convenience, sum of all ImDrawList's IdxBuffer.Size
175
171
*/
176
172
publicintgetTotalIdxCount() {
@@ -181,7 +177,7 @@ public int getTotalIdxCount() {
181
177
return THIS->TotalIdxCount;
182
178
*/
183
179
184
-
/**
180
+
/**
185
181
* For convenience, sum of all ImDrawList's VtxBuffer.Size
186
182
*/
187
183
publicintgetTotalVtxCount() {
@@ -192,7 +188,7 @@ public int getTotalVtxCount() {
192
188
return THIS->TotalVtxCount;
193
189
*/
194
190
195
-
/**
191
+
/**
196
192
* Upper-left position of the viewport to render (== upper-left of the orthogonal projection matrix to use)
197
193
*/
198
194
publicImVec2getDisplayPos() {
@@ -234,7 +230,7 @@ public void getDisplayPos(final ImVec2 dst) {
234
230
return THIS->DisplayPos.y;
235
231
*/
236
232
237
-
/**
233
+
/**
238
234
* Size of the viewport to render (== io.DisplaySize for the main viewport)
239
235
* (DisplayPos + DisplaySize == lower-right of the orthogonal projection matrix to use)
240
236
*/
@@ -280,7 +276,7 @@ public void getDisplaySize(final ImVec2 dst) {
280
276
return THIS->DisplaySize.y;
281
277
*/
282
278
283
-
/**
279
+
/**
284
280
* Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display.
285
281
*/
286
282
publicImVec2getFramebufferScale() {
@@ -322,7 +318,7 @@ public void getFramebufferScale(final ImVec2 dst) {
322
318
return THIS->FramebufferScale.y;
323
319
*/
324
320
325
-
/**
321
+
/**
326
322
* Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not).
327
323
*/
328
324
publicImGuiViewportgetOwnerViewport() {
@@ -343,7 +339,7 @@ public void clear() {
343
339
THIS->Clear();
344
340
*/
345
341
346
-
/**
342
+
/**
347
343
* Helper to add an external draw list into an existing ImDrawData.
348
344
*/
349
345
publicvoidaddDrawList(finalImDrawListdrawList) {
@@ -354,7 +350,7 @@ public void addDrawList(final ImDrawList drawList) {
* Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources.
359
355
* Always prefer indexed rendering!
360
356
*/
@@ -366,7 +362,7 @@ public void deIndexAllBuffers() {
366
362
THIS->DeIndexAllBuffers();
367
363
*/
368
364
369
-
/**
365
+
/**
370
366
* Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects,
371
367
* or if there is a difference between your window resolution and framebuffer resolution.
* This is the low-level list of polygons that ImGui:: functions are filling. At the end of the frame,
@@ -18,7 +13,6 @@
18
13
* but you are totally free to apply whatever transformation matrix to want to the data (if you apply such transformation you'll want to apply it to ClipRect as well)
19
14
* Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects.
20
15
*/
21
-
22
16
publicfinalclassImDrawListextendsImGuiStruct {
23
17
publicImDrawList(finallongptr) {
24
18
super(ptr);
@@ -29,7 +23,7 @@ public ImDrawList(final long ptr) {
29
23
#define THIS ((ImDrawList*)STRUCT_PTR)
30
24
*/
31
25
32
-
/**
26
+
/**
33
27
* Flags, you may poke into these to adjust anti-aliasing settings per-primitive.
34
28
*/
35
29
publicintgetFlags() {
@@ -72,7 +66,7 @@ public boolean hasFlags(final int flags) {
72
66
THIS->Flags = value;
73
67
*/
74
68
75
-
/**
69
+
/**
76
70
* Render-level scissoring.
77
71
* This is passed down to your render function but not used for CPU-side coarse clipping.
78
72
* Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling)
@@ -612,6 +606,110 @@ public void addNgonFilled(final float centerX, final float centerY, final float
0 commit comments