Archived

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

Someone Else

Direct3D 8

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