View Full Version : Rendering without Vertex Buffers
chenbin_osu
07-13-2003, 02:45 PM
Is there a way to render a set of vertices without using vertex buffers (similar to how OpenGL does it)?
davepermen
07-13-2003, 03:49 PM
you can fake it by creating an (arbitary sized) vertexbuffer, and then just write all the glVertex calls to it (and the others, of course, too..).. and when ever it get filled, just draw it on screen.. and start at the front again..
works rather well.. seen some classes doing it floating around in the web..
Snape
08-15-2003, 06:54 AM
Use the function DrawPrimitiveUP().
davepermen
08-15-2003, 07:09 AM
really? thought they where ment to send pretransformed vertices.. i possibly mixed something up now..
Snape
08-15-2003, 08:26 AM
Yeah, it's like DrawPrimitive but instead of a vertex buffer you can use an array of vertices.
DirectX9 DSK:
This method is intended for use in applications that are unable to store their vertex data in vertex buffers.
davepermen
08-15-2003, 09:04 AM
ah, okay.. thanks for clarification..
baldurk
08-15-2003, 11:15 AM
wow! a DirectX post!
vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.