OpenGl modules are broken

Monkey Forums/Monkey Bug Reports/OpenGl modules are broken

MikeHart(Posted 2012) [#1]
With the introduction of databuffers, the opengl modules and the example script complain about duplicated databuffer identifier.


marksibly(Posted 2012) [#2]
Hi,

Indeed they are!

Quick fix: remove 'import brl.databuffer' from top of modules/brl/asyncevent.monkey, and add a 'monkey://data/' prefix to filepaths in samples.

I was worried about switching the GL stuff to new databuffers as I didn't want to break minib3d.

brl.databuffer doesn't support 'direct' data buffers, which are necessary in Android for old style glVertexPointer /glVertexAttribPointer with a 'buffer' param instead of 'offset into VBO'.

I'd be quite happy to kill off this function and switch to brl.databffers, although I'm not sure everyone would agree.


MikeHart(Posted 2012) [#3]
Thanks Mark for the quick info!