Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Someone Else

Direct3D 8

This topic is 6228 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''m just wondering if Direct3D has something in the lines of glBegin and glEnd of OpenGL. I know there are functions called BeginStateBlock and EndStateBlock in Direct3D, but they aren''t really the thing I''m looking for. Or is this already what BeginScene and EndScene in Direct3D is doing?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
I only know the basics of opengl, and im pretty sure g_pd3ddevice->BeginScene() and g_pd3ddevice->EndScene() serve the same function as glBegin() and glEnd()

Share this post


Link to post
Share on other sites
Nope... BeginScene and EndScene is not the same. With glBegin and glEnd you can stack the states with multiple glBegins and then release the stacks one by one with glEnd. That''s what I was trying to achieve.

I found out that you can do something like that in D3D with CreateStateBlock(DST_ALL) but it slows down the entire program by a few FPS though when I used it...

Share this post


Link to post
Share on other sites

  • 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!