Jump to content


Rendering without Vertex Buffers


6 replies to this topic

#1 chenbin_osu

    New Member

  • Members
  • PipPip
  • 10 posts

Posted 13 July 2003 - 08:45 PM

Is there a way to render a set of vertices without using vertex buffers (similar to how OpenGL does it)?

#2 davepermen

    Senior Member

  • Members
  • PipPipPipPip
  • 1306 posts

Posted 13 July 2003 - 09: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..
davepermen.net
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....

#3 Snape

    New Member

  • Members
  • PipPip
  • 19 posts

Posted 15 August 2003 - 12:54 PM

Use the function DrawPrimitiveUP().

#4 davepermen

    Senior Member

  • Members
  • PipPipPipPip
  • 1306 posts

Posted 15 August 2003 - 01:09 PM

really? thought they where ment to send pretransformed vertices.. i possibly mixed something up now..
davepermen.net
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....

#5 Snape

    New Member

  • Members
  • PipPip
  • 19 posts

Posted 15 August 2003 - 02:26 PM

Yeah, it's like DrawPrimitive but instead of a vertex buffer you can use an array of vertices.

DirectX9 DSK:

Quote

This method is intended for use in applications that are unable to store their vertex data in vertex buffers.


#6 davepermen

    Senior Member

  • Members
  • PipPipPipPip
  • 1306 posts

Posted 15 August 2003 - 03:04 PM

ah, okay.. thanks for clarification..
davepermen.net
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....

#7 baldurk

    Senior Member

  • Members
  • PipPipPipPip
  • 1057 posts

Posted 15 August 2003 - 05:15 PM

wow! a DirectX post!
baldurk
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users