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.

    VOID* pVertices;
    if( FAILED( g_pVB->Lock( 0, sizeof(vertexarray), (void**)&pVertices, 0 ) ) )
        return E_FAIL;
    memcpy( pVertices, vertexarray, sizeof(vertexarray) );
    g_pVB->Unlock();


any idea how to convert this, er the devices aint a prob and i have the vertexbuffer created already, (d3ddevice and d3dvbuffer)