A idea on howto dx9 in blitz

Blitz3D Forums/Blitz3D Programming/A idea on howto dx9 in blitz

i started a dx9 engine for blitz... got it to the point where you could make meshes manually... and then the all the bmax stuff came so i stopped it tho im getting interested in starting to work on it again casually if there is interest. so far you can write the code like this
SetEnvironment 1

DirectGraphics3D 800,600,32,False
hMesh = DirectCreateMesh()
hSurface = DirectCreateSurface(hMesh)
DirectAddVertex hSurface,-1.0,-1.0,0.0,0.0,1.0
DirectAddVertex hSurface,1.0,-1.0,0.0,1.0,1.0
DirectAddVertex hSurface,1.0,1.0,0.0,1.0,0.0
DirectAddVertex hSurface,-1.0,-1.0,0.0,0.0,1.0
DirectAddVertex hSurface,1.0,1.0,0.0,1.0,0.0
DirectAddVertex hSurface,-1.0,1.0,0.0,0.0,0.0
DirectVertexColor hSurface,1,255,0,0
DirectVertexColor hSurface,2,0,255,0
DirectVertexColor hSurface,3,0,255,255
DirectVertexColor hSurface,4,255,0,0
DirectVertexColor hSurface,5,0,255,255
DirectVertexColor hSurface,6,255,255,0
DirectMeshStatic hMesh,False 

hTexture = DirectLoadTexture("Chorme-2.bmp")
DirectTextureSurface hSurface, hTexture


DirectClsColor 0,0,255
While Not KeyDown(1)
	DirectCls
	DirectBegin3D 
	DirectRenderWorld 
	DirectEnd3D
	DirectFlip
Wend

DebugLog RenderTime
DirectCleanUp
WaitKey

if anyone wants the C++ just e-mail me at schoenhs_at_yahoo_dot_com and i'll send it to you since i most likely wont finish