1
function glMultiDrawElementsBaseVertex( mode, count, type, indices, drawcount, basevertex )
3
% glMultiDrawElementsBaseVertex Interface to OpenGL function glMultiDrawElementsBaseVertex
5
% usage: glMultiDrawElementsBaseVertex( mode, count, type, indices, drawcount, basevertex )
7
% Note: indices must be a cell array whose cells contain uint32() type
8
% vectors with the indices!
10
% C function: void glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei* count, GLenum type, const GLvoid** indices, GLsizei drawcount, const GLint* basevertex)
12
% 30-Aug-2012 -- created (generated automatically from header files)
17
error('invalid number of arguments');
20
% Ok, the moglcore() implementation doesn't work due to the double-indirect
21
% pointer, indices[] being an array of pointers to actual separate arrays
22
% of indices -- Difficult to handle / to pass from Matlab API to C API.
24
% Therefore this call is disabled:
25
% moglcore( 'glMultiDrawElementsBaseVertex', mode, int32(count), type, const, drawcount, int32(basevertex) );
27
% Instead, we reimplement the behaviour of the function by iterative use of
28
% glDrawElementsBaseVertex(), following the specification from the official
29
% spec of glMultiDrawElementsBaseVertex(), which says exactly how to do
30
% this / defines the function in terms of iterating:
33
glDrawElementsBaseVertex(mode, count(i), type, uint32(indices{i}), basevertex(i));