chenbin_osu at July 13th, 2003 16:45 — #1
Is there a way to render a set of vertices without using vertex buffers (similar to how OpenGL does it)?
davepermen at July 13th, 2003 17:49 — #2
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 at August 15th, 2003 08:54 — #3
Use the function DrawPrimitiveUP().
davepermen at August 15th, 2003 09:09 — #4
really? thought they where ment to send pretransformed vertices.. i possibly mixed something up now..
snape at August 15th, 2003 10:26 — #5
Yeah, it's like DrawPrimitive but instead of a vertex buffer you can use an array of vertices.
This method is intended for use in applications that are unable to store their vertex data in vertex buffers.
davepermen at August 15th, 2003 11:04 — #6
ah, okay.. thanks for clarification..
baldurk at August 15th, 2003 13:15 — #7