java - Opengl multiple glDrawArrays calls -


i have problem vertex array objects in opengl (java, lwjgl). program works, have object, can move around it. draw call simple:

gl11.gldrawarrays(drawmode, 0, 4); 

in shader have 1 uniform model, (called model ^^). tried following: (pseudo code)

update model   draw   update model   draw again   

this doesn't work. why? know there instancing, isn't aim here. want draw 2 things 2 draw calls. see first one.. have idea?

** edit **

i hate it. hate principe... again , again forget flip buffer before using in opengl. again. point... first time flipped second time not... can't brain flip buffers -.-


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -