@@ -15,12 +15,12 @@ public final class ImDrawData implements ImDestroyable {
15
15
public static final int SIZEOF_IM_DRAW_IDX = 2 ;
16
16
public static final int SIZEOF_IM_DRAW_VERT = (4 + 1 ) * 4 ;
17
17
18
- private static final int COUNT_FACTOR = 5_000 ;
18
+ private static final int FACTOR = 5_000 ;
19
19
20
20
final long ptr ;
21
21
22
- private ByteBuffer idxBuffer = ByteBuffer .allocateDirect (SIZEOF_IM_DRAW_IDX * COUNT_FACTOR ).order (ByteOrder .nativeOrder ());
23
- private ByteBuffer vtxBuffer = ByteBuffer .allocateDirect (SIZEOF_IM_DRAW_VERT * COUNT_FACTOR ).order (ByteOrder .nativeOrder ());
22
+ private ByteBuffer idxBuffer = ByteBuffer .allocateDirect (SIZEOF_IM_DRAW_IDX * FACTOR ).order (ByteOrder .nativeOrder ());
23
+ private ByteBuffer vtxBuffer = ByteBuffer .allocateDirect (SIZEOF_IM_DRAW_VERT * FACTOR ).order (ByteOrder .nativeOrder ());
24
24
25
25
/**
26
26
* This class will create a native structure.
@@ -121,7 +121,7 @@ public void destroy() {
121
121
public ByteBuffer getCmdListIdxBufferData (final int cmdListIdx ) {
122
122
final int idxBufferCapacity = getCmdListIdxBufferSize (cmdListIdx ) * SIZEOF_IM_DRAW_IDX ;
123
123
if (idxBuffer .capacity () < idxBufferCapacity ) {
124
- idxBuffer = ByteBuffer .allocateDirect (idxBufferCapacity + COUNT_FACTOR ).order (ByteOrder .nativeOrder ());
124
+ idxBuffer = ByteBuffer .allocateDirect (idxBufferCapacity + FACTOR ).order (ByteOrder .nativeOrder ());
125
125
}
126
126
127
127
nGetCmdListIdxBufferData (cmdListIdx , idxBuffer , idxBufferCapacity );
@@ -146,7 +146,7 @@ public ByteBuffer getCmdListIdxBufferData(final int cmdListIdx) {
146
146
public ByteBuffer getCmdListVtxBufferData (final int cmdListIdx ) {
147
147
final int vtxBufferCapacity = getCmdListVtxBufferSize (cmdListIdx ) * SIZEOF_IM_DRAW_VERT ;
148
148
if (vtxBuffer .capacity () < vtxBufferCapacity ) {
149
- vtxBuffer = ByteBuffer .allocateDirect (vtxBufferCapacity + COUNT_FACTOR ).order (ByteOrder .nativeOrder ());
149
+ vtxBuffer = ByteBuffer .allocateDirect (vtxBufferCapacity + FACTOR ).order (ByteOrder .nativeOrder ());
150
150
}
151
151
152
152
nGetCmdListVtxBufferData (cmdListIdx , vtxBuffer , vtxBufferCapacity );
0 commit comments