@@ -1159,7 +1159,7 @@ impl Gl for GlesFns {
1159
1159
1160
1160
fn draw_arrays ( & self , mode : GLenum , first : GLint , count : GLsizei ) {
1161
1161
unsafe {
1162
- return self . ffi_gl_ . DrawArrays ( mode, first, count) ;
1162
+ self . ffi_gl_ . DrawArrays ( mode, first, count) ;
1163
1163
}
1164
1164
}
1165
1165
@@ -1171,12 +1171,36 @@ impl Gl for GlesFns {
1171
1171
primcount : GLsizei ,
1172
1172
) {
1173
1173
unsafe {
1174
- return self
1175
- . ffi_gl_
1174
+ self . ffi_gl_
1176
1175
. DrawArraysInstanced ( mode, first, count, primcount) ;
1177
1176
}
1178
1177
}
1179
1178
1179
+ fn draw_arrays_instanced_base_instance (
1180
+ & self ,
1181
+ mode : GLenum ,
1182
+ first : GLint ,
1183
+ count : GLsizei ,
1184
+ instance_count : GLsizei ,
1185
+ base_instance : GLuint ,
1186
+ ) {
1187
+ self . draw_arrays_instanced_base_instance_angle ( mode, first, count, instance_count, base_instance)
1188
+ }
1189
+
1190
+ fn draw_arrays_instanced_base_instance_angle (
1191
+ & self ,
1192
+ mode : GLenum ,
1193
+ first : GLint ,
1194
+ count : GLsizei ,
1195
+ instance_count : GLsizei ,
1196
+ base_instance : GLuint ,
1197
+ ) {
1198
+ unsafe {
1199
+ self . ffi_gl_
1200
+ . DrawArraysInstancedBaseInstanceANGLE ( mode, first, count, instance_count, base_instance) ;
1201
+ }
1202
+ }
1203
+
1180
1204
fn draw_elements (
1181
1205
& self ,
1182
1206
mode : GLenum ,
@@ -1185,7 +1209,7 @@ impl Gl for GlesFns {
1185
1209
indices_offset : GLuint ,
1186
1210
) {
1187
1211
unsafe {
1188
- return self . ffi_gl_ . DrawElements (
1212
+ self . ffi_gl_ . DrawElements (
1189
1213
mode,
1190
1214
count,
1191
1215
element_type,
@@ -1203,7 +1227,7 @@ impl Gl for GlesFns {
1203
1227
primcount : GLsizei ,
1204
1228
) {
1205
1229
unsafe {
1206
- return self . ffi_gl_ . DrawElementsInstanced (
1230
+ self . ffi_gl_ . DrawElementsInstanced (
1207
1231
mode,
1208
1232
count,
1209
1233
element_type,
@@ -1213,6 +1237,49 @@ impl Gl for GlesFns {
1213
1237
}
1214
1238
}
1215
1239
1240
+ fn draw_elements_instanced_base_instance (
1241
+ & self ,
1242
+ mode : GLenum ,
1243
+ count : GLsizei ,
1244
+ element_type : GLenum ,
1245
+ indices_offset : GLuint ,
1246
+ instance_count : GLsizei ,
1247
+ base_instance : GLuint ,
1248
+ ) {
1249
+ self . draw_elements_instanced_base_vertex_base_instance_angle (
1250
+ mode,
1251
+ count,
1252
+ element_type,
1253
+ indices_offset,
1254
+ instance_count,
1255
+ 0 ,
1256
+ base_instance,
1257
+ )
1258
+ }
1259
+
1260
+ fn draw_elements_instanced_base_vertex_base_instance_angle (
1261
+ & self ,
1262
+ mode : GLenum ,
1263
+ count : GLsizei ,
1264
+ element_type : GLenum ,
1265
+ indices_offset : GLuint ,
1266
+ instance_count : GLsizei ,
1267
+ base_vertex : GLsizei ,
1268
+ base_instance : GLuint ,
1269
+ ) {
1270
+ unsafe {
1271
+ self . ffi_gl_ . DrawElementsInstancedBaseVertexBaseInstanceANGLE (
1272
+ mode,
1273
+ count,
1274
+ element_type,
1275
+ indices_offset as * const c_void ,
1276
+ instance_count,
1277
+ base_vertex,
1278
+ base_instance,
1279
+ ) ;
1280
+ }
1281
+ }
1282
+
1216
1283
fn blend_color ( & self , r : f32 , g : f32 , b : f32 , a : f32 ) {
1217
1284
unsafe {
1218
1285
self . ffi_gl_ . BlendColor ( r, g, b, a) ;
0 commit comments