Sign in to follow this  

function that creates index or vertex buffer problem

Recommended Posts

i have something like this:

[source lang="java"]void createBuferfunction(...some other parameters...,DWORD array[])
...some other code...

iD.pSysMem = array; //here is the problem
hr = g_pd3dDevice->CreateBuffer( &bd, &iD, &Buffer);

but as you can see that doesnt work because the array will be read as having only 1 element.
Is there any other easy way to do this?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this