jonathandup
03-05-2010, 04:40 AM
Hi,
Two quick questions :
1 - Is the function drawRangeElements faster than drawElements ?(I read that it could be in some cases : http://www.spec.org/gwpg/gpc.static/vbo_whitepaper.html ), and so is it worth the effort to store pointers in the array and range information ?
(Here's what I do for a mesh : Got an Index Buffer Object of unsigned shorts, with range information and a vertex buffer object with offset information. So for the drawing I first bind the VBO at the good offset and then call drawRange with the corresponding range information + a good offset as well... I can give more details if I'm not making myself clear enough ;))
2 - Why is glMultiDrawRangeElments not implemented ? I could really use it to simplify my draw-calls from question 1 !
Chears
Two quick questions :
1 - Is the function drawRangeElements faster than drawElements ?(I read that it could be in some cases : http://www.spec.org/gwpg/gpc.static/vbo_whitepaper.html ), and so is it worth the effort to store pointers in the array and range information ?
(Here's what I do for a mesh : Got an Index Buffer Object of unsigned shorts, with range information and a vertex buffer object with offset information. So for the drawing I first bind the VBO at the good offset and then call drawRange with the corresponding range information + a good offset as well... I can give more details if I'm not making myself clear enough ;))
2 - Why is glMultiDrawRangeElments not implemented ? I could really use it to simplify my draw-calls from question 1 !
Chears