Jump to content
  • Advertisement
Sign in to follow this  
leonard2012

OpenGL Does Direct3D10/11 have immediate mode?

This topic is 2365 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I wonder if Direct3D10 or 11 has something similar to OpenGL immediate mode. I want to draw some simple geometric shapes (lines, simple convex polygons) without going into the trouble of creating vertex/index buffer, specifying input layout, topology etc.

Share this post


Link to post
Share on other sites
Advertisement
No, it doesn't. Neither does the OpenGL Core Profile.

It sounds like you might want to use the Direct2d API. It's immediate mode and can be used to draw lines and convex polygons. Edited by Chris_F

Share this post


Link to post
Share on other sites
Thank you for your quick response Chris_F. My task is to implement rubberbanding with D3D in my application, that is, to draw some simple geometric shapes corresponding to the mouse movement. The geometric shape is changed so often that using the canonical way (creating vertex/index buffer, specifying input layout, topology for the shape) may not be a good idea. So what's the recommended method to do this?

Share this post


Link to post
Share on other sites
You can create a single dynamic vertex + index buffer, and fill up their contents each frame. In fact it's pretty easy to wrap this up in an immediate mode-like API if you're so inclined. Edited by MJP

Share this post


Link to post
Share on other sites

You can create a single dynamic vertex + index buffer, and fill up their contents each frame. In fact it's pretty easy to wrap this up in an immediate mode-like API if you're so inclined.

Thanks, I'll try this method.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!