|
Accessing contents of ALLEGRO_VERTEX_BUFFER |
BitCruncher
Member #11,279
August 2009
|
Hey, So after I create a vertex buffer with al_create_vertex_buffer(), assuming I've locked the buffer first, can I just access the verts in the buffer as if it was just an array of ALLEGRO_VERTEXs? EDIT #1:
|
MikiZX
Member #17,092
June 2019
|
I would think so (on both accounts), if you look at the example https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c |
SiegeLord
Member #7,827
October 2006
|
Yep, casting the return value of al_lock_vertex_buffer is correct. "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
BitCruncher
Member #11,279
August 2009
|
Thanks, guys.
|
|