VB Code:
<System.Runtime.InteropServices.DllImport("DX8VB.DLL", _
EntryPoint:="D3DVertexBuffer8SetData", _
SetLastError:=True, _
CharSet:=System.Runtime.InteropServices.CharSet.Unicode, _
ExactSpelling:=True, _
CallingConvention:=System.Runtime.InteropServices.CallingConvention.StdCall)> _
Public Shared Function D3DVertexBuffer8SetData(ByRef VBuffer As DxVBLibA.Direct3DVertexBuffer8, ByRef Offset As Long, ByRef Size As Long, ByRef Flags As Long, ByRef Data As System.IntPtr) As Long
End Function
VB Code:
D3DAUX.D3DVertexBuffer8SetData(VBuffer, 0, Len(Cube2(0)) * 36, 0, System.IntPtr(Cube2(0)))