Sign in to follow this  
lomateron

function that creates index or vertex buffer problem

Recommended Posts

lomateron    491
i have something like this:

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

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

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