Archived

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

billybob

arrggh...brain farting on this type cast prob

Recommended Posts

inline void CD3DDrv::FlipAdvanced()
{
	if(m_CurViewport->IsDevice)
	{
//		(IDirect3DDevice8*)m_CurViewport->Interface->Present(NULL, NULL, NULL, NULL);
	}
	else
	{
//		(IDirect3DSwapChain8*)m_CurViewport->Interface->Present(NULL, NULL, NULL, NULL);
	}
}
 
Interface is a void*, that is cast when the viewport is created by the renderer (d3d or opengl). they are commented because whats there currently causes a syntax error, and i can''t figure out how to make it know that interface is a device or a swap chain. what am i doing wrong?

Share this post


Link to post
Share on other sites