@@ -59,7 +59,7 @@ public void destroy() {
59
59
60
60
private native long nCreate (); /*
61
61
ImFontAtlas* imFontAtlas = new ImFontAtlas();
62
- return (long)imFontAtlas;
62
+ return (long)(intptr_t) imFontAtlas;
63
63
*/
64
64
65
65
private native void nDestroy (long ptr ); /*
@@ -71,55 +71,55 @@ public ImFont addFont(final ImFontConfig imFontConfig) {
71
71
}
72
72
73
73
private native long nAddFont (long imFontConfigPtr ); /*
74
- return (long)IM_FONT_ATLAS->AddFont((ImFontConfig*)imFontConfigPtr);
74
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFont((ImFontConfig*)imFontConfigPtr);
75
75
*/
76
76
77
77
public ImFont addFontDefault () {
78
78
return new ImFont (nAddFontDefault ());
79
79
}
80
80
81
81
private native long nAddFontDefault (); /*
82
- return (long)IM_FONT_ATLAS->AddFontDefault();
82
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontDefault();
83
83
*/
84
84
85
85
public ImFont addFontDefault (final ImFontConfig imFontConfig ) {
86
86
return new ImFont (nAddFontDefault (imFontConfig .ptr ));
87
87
}
88
88
89
89
private native long nAddFontDefault (long imFontConfigPtr ); /*
90
- return (long)IM_FONT_ATLAS->AddFontDefault((ImFontConfig*)imFontConfigPtr);
90
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontDefault((ImFontConfig*)imFontConfigPtr);
91
91
*/
92
92
93
93
public ImFont addFontFromFileTTF (final String filename , final float sizePixels ) {
94
94
return new ImFont (nAddFontFromFileTTF (filename , sizePixels ));
95
95
}
96
96
97
97
private native long nAddFontFromFileTTF (String filename , float sizePixels ); /*
98
- return (long)IM_FONT_ATLAS->AddFontFromFileTTF(filename, sizePixels);
98
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromFileTTF(filename, sizePixels);
99
99
*/
100
100
101
101
public ImFont addFontFromFileTTF (final String filename , final float sizePixels , final ImFontConfig imFontConfig ) {
102
102
return new ImFont (nAddFontFromFileTTF (filename , sizePixels , imFontConfig .ptr ));
103
103
}
104
104
105
105
private native long nAddFontFromFileTTF (String filename , float sizePixels , long imFontConfigPtr ); /*
106
- return (long)IM_FONT_ATLAS->AddFontFromFileTTF(filename, sizePixels, (ImFontConfig*)imFontConfigPtr);
106
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromFileTTF(filename, sizePixels, (ImFontConfig*)imFontConfigPtr);
107
107
*/
108
108
109
109
public ImFont addFontFromFileTTF (final String filename , final float sizePixels , final short [] glyphRanges ) {
110
110
return new ImFont (nAddFontFromFileTTF (filename , sizePixels , glyphRanges ));
111
111
}
112
112
113
113
private native long nAddFontFromFileTTF (String filename , float sizePixels , short [] glyphRanges ); /*
114
- return (long)IM_FONT_ATLAS->AddFontFromFileTTF(filename, sizePixels, NULL, (ImWchar*)&glyphRanges[0]);
114
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromFileTTF(filename, sizePixels, NULL, (ImWchar*)&glyphRanges[0]);
115
115
*/
116
116
117
117
public ImFont addFontFromFileTTF (final String filename , final float sizePixels , final ImFontConfig imFontConfig , final short [] glyphRanges ) {
118
118
return new ImFont (nAddFontFromFileTTF (filename , sizePixels , imFontConfig .ptr , glyphRanges ));
119
119
}
120
120
121
121
private native long nAddFontFromFileTTF (String filename , float sizePixels , long imFontConfigPtr , short [] glyphRanges ); /*
122
- return (long)IM_FONT_ATLAS->AddFontFromFileTTF(filename, sizePixels, (ImFontConfig*)imFontConfigPtr, (ImWchar*)&glyphRanges[0]);
122
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromFileTTF(filename, sizePixels, (ImFontConfig*)imFontConfigPtr, (ImWchar*)&glyphRanges[0]);
123
123
*/
124
124
125
125
/**
@@ -131,7 +131,7 @@ public ImFont addFontFromMemoryTTF(final byte[] fontData, final float sizePixels
131
131
}
132
132
133
133
private native long nAddFontFromMemoryTTF (byte [] fontData , int fontSize , float sizePixels ); /*
134
- return (long)IM_FONT_ATLAS->AddFontFromMemoryTTF(&fontData[0], fontSize, sizePixels);
134
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryTTF(&fontData[0], fontSize, sizePixels);
135
135
*/
136
136
137
137
@@ -144,7 +144,7 @@ public ImFont addFontFromMemoryTTF(final byte[] fontData, final float sizePixels
144
144
}
145
145
146
146
private native long nAddFontFromMemoryTTF (byte [] fontData , int fontSize , float sizePixels , long imFontConfigPtr ); /*
147
- return (long)IM_FONT_ATLAS->AddFontFromMemoryTTF(&fontData[0], fontSize, sizePixels, (ImFontConfig*)imFontConfigPtr);
147
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryTTF(&fontData[0], fontSize, sizePixels, (ImFontConfig*)imFontConfigPtr);
148
148
*/
149
149
150
150
/**
@@ -156,7 +156,7 @@ public ImFont addFontFromMemoryTTF(final byte[] fontData, final float sizePixels
156
156
}
157
157
158
158
private native long nAddFontFromMemoryTTF (byte [] fontData , int fontSize , float sizePixels , short [] glyphRanges ); /*
159
- return (long)IM_FONT_ATLAS->AddFontFromMemoryTTF(&fontData[0], fontSize, sizePixels, NULL, (ImWchar*)&glyphRanges[0]);
159
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryTTF(&fontData[0], fontSize, sizePixels, NULL, (ImWchar*)&glyphRanges[0]);
160
160
*/
161
161
162
162
/**
@@ -168,7 +168,7 @@ public ImFont addFontFromMemoryTTF(final byte[] fontData, final float sizePixels
168
168
}
169
169
170
170
private native long nAddFontFromMemoryTTF (byte [] fontData , int fontSize , float sizePixels , long imFontConfigPtr , short [] glyphRanges ); /*
171
- return (long)IM_FONT_ATLAS->AddFontFromMemoryTTF(&fontData[0], fontSize, sizePixels, (ImFontConfig*)imFontConfigPtr, (ImWchar*)&glyphRanges[0]);
171
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryTTF(&fontData[0], fontSize, sizePixels, (ImFontConfig*)imFontConfigPtr, (ImWchar*)&glyphRanges[0]);
172
172
*/
173
173
174
174
/**
@@ -179,7 +179,7 @@ public ImFont addFontFromMemoryCompressedTTF(final byte[] compressedFontData, fi
179
179
}
180
180
181
181
private native long nAddFontFromMemoryCompressedTTF (byte [] compressedFontData , int fontSize , float sizePixels ); /*
182
- return (long)IM_FONT_ATLAS->AddFontFromMemoryCompressedTTF(&compressedFontData[0], fontSize, sizePixels);
182
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryCompressedTTF(&compressedFontData[0], fontSize, sizePixels);
183
183
*/
184
184
185
185
/**
@@ -190,7 +190,7 @@ public ImFont addFontFromMemoryCompressedTTF(final byte[] compressedFontData, fi
190
190
}
191
191
192
192
private native long nAddFontFromMemoryCompressedTTF (byte [] compressedFontData , int fontSize , float sizePixels , long imFontConfigPtr ); /*
193
- return (long)IM_FONT_ATLAS->AddFontFromMemoryCompressedTTF(&compressedFontData[0], fontSize, sizePixels, (ImFontConfig*)imFontConfigPtr);
193
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryCompressedTTF(&compressedFontData[0], fontSize, sizePixels, (ImFontConfig*)imFontConfigPtr);
194
194
*/
195
195
196
196
/**
@@ -201,7 +201,7 @@ public ImFont addFontFromMemoryCompressedTTF(final byte[] compressedFontData, fi
201
201
}
202
202
203
203
private native long nAddFontFromMemoryCompressedTTF (byte [] compressedFontData , int fontSize , float sizePixels , short [] glyphRanges ); /*
204
- return (long)IM_FONT_ATLAS->AddFontFromMemoryCompressedTTF(&compressedFontData[0], fontSize, sizePixels, NULL, (ImWchar*)&glyphRanges[0]);
204
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryCompressedTTF(&compressedFontData[0], fontSize, sizePixels, NULL, (ImWchar*)&glyphRanges[0]);
205
205
*/
206
206
207
207
/**
@@ -212,7 +212,7 @@ public ImFont addFontFromMemoryCompressedTTF(final byte[] compressedFontData, fi
212
212
}
213
213
214
214
private native long nAddFontFromMemoryCompressedTTF (byte [] compressedFontData , int fontSize , float sizePixels , long imFontConfigPtr , short [] glyphRanges ); /*
215
- return (long)IM_FONT_ATLAS->AddFontFromMemoryCompressedTTF(&compressedFontData[0], fontSize, sizePixels, (ImFontConfig*)imFontConfigPtr, (ImWchar*)&glyphRanges[0]);
215
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryCompressedTTF(&compressedFontData[0], fontSize, sizePixels, (ImFontConfig*)imFontConfigPtr, (ImWchar*)&glyphRanges[0]);
216
216
*/
217
217
218
218
/**
@@ -223,7 +223,7 @@ public ImFont addFontFromMemoryCompressedBase85TTF(final String compressedFontDa
223
223
}
224
224
225
225
private native long nAddFontFromMemoryCompressedBase85TTF (String compressedFontDataBase85 , float sizePixels ); /*
226
- return (long)IM_FONT_ATLAS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels);
226
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels);
227
227
*/
228
228
229
229
/**
@@ -234,7 +234,7 @@ public ImFont addFontFromMemoryCompressedBase85TTF(final String compressedFontDa
234
234
}
235
235
236
236
private native long nAddFontFromMemoryCompressedBase85TTF (String compressedFontDataBase85 , float sizePixels , long imFontConfigPtr ); /*
237
- return (long)IM_FONT_ATLAS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels, (ImFontConfig*)imFontConfigPtr);
237
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels, (ImFontConfig*)imFontConfigPtr);
238
238
*/
239
239
240
240
/**
@@ -245,7 +245,7 @@ public ImFont addFontFromMemoryCompressedBase85TTF(final String compressedFontDa
245
245
}
246
246
247
247
private native long nAddFontFromMemoryCompressedBase85TTF (String compressedFontDataBase85 , float sizePixels , short [] glyphRanges ); /*
248
- return (long)IM_FONT_ATLAS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels, NULL, (ImWchar*)&glyphRanges[0]);
248
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels, NULL, (ImWchar*)&glyphRanges[0]);
249
249
*/
250
250
251
251
/**
@@ -256,7 +256,7 @@ public ImFont addFontFromMemoryCompressedBase85TTF(final String compressedFontDa
256
256
}
257
257
258
258
private native long nAddFontFromMemoryCompressedBase85TTF (String compressedFontDataBase85 , float sizePixels , long imFontConfigPtr , short [] glyphRanges ); /*
259
- return (long)IM_FONT_ATLAS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels, (ImFontConfig*)imFontConfigPtr, (ImWchar*)&glyphRanges[0]);
259
+ return (long)(intptr_t) IM_FONT_ATLAS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels, (ImFontConfig*)imFontConfigPtr, (ImWchar*)&glyphRanges[0]);
260
260
*/
261
261
262
262
/**
@@ -512,7 +512,7 @@ public int addCustomRectFontGlyph(final ImFont imFont, final short id, final int
512
512
* It is passed back to you during rendering via the ImDrawCmd structure.
513
513
*/
514
514
public native int getTexID (); /*
515
- return (int)(long)(void*)IM_FONT_ATLAS->TexID;
515
+ return (int)(long)(intptr_t)( void*)IM_FONT_ATLAS->TexID;
516
516
*/
517
517
518
518
/**
0 commit comments