Please help me check for DX the OGL

BlitzMax Forums/BlitzMax Programming/Please help me check for DX the OGL

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Global	ddraw:IDirectDraw7
Global 	d3d:IDirect3D7
Global	device:IDirect3DDevice7
Global guid Ptr

Local res
res=DirectDrawCreateEx( guid,Varptr ddraw,IID_IDirectDraw7,Null )
If res = Null 
	Print "DirectDraw Init succesful" + res
EndIf
res=DDraw.QueryInterface( IID_IDirect3D7,Byte Ptr Ptr(Varptr D3D) )

If Res = Null
	Print "d3D7 Init succesful" + res
EndIf


This is just a test, I don't really know if it works
It checks for directdraw and direct3d7