how to convert this dx9 stuff

BlitzMax Forums/BlitzMax Programming/how to convert this dx9 stuff

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.

Below is a literal translation into BlitzMAX code, but I suspect that there is more to it than that. Without knowing the syntax for g_pVB->Lock I'm not entirely sure what (void**)&pVertices does.


Byte Ptr vertices

if (Not vertexbuffer.Lock(0,SizeOf(vertexarray),vertices[0],0))
   'Code to handle errors
endif

MemCopy(vertices,vertexarray,sizeof(vertexarray))

vertexBuffer.Unlock()