Advertisement Jump to content
Sign in to follow this  

VertexBuffers Copy piece

This topic is 4936 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey i tried some stuff to only copy over pieces of an array into the vertexbuffer but it all end up with a FORBIDDEN ACTION here is the code i use for creating and copying

// VERTEX struct includes these  xyz and diffuse
Vertex is an array of 5000 of VERTEX struct

// create

// add a vertex to the array
// pos/Pos = D3DXVECTOR3
Vertex[vert].Pos = pos;
Vertex[vert].Diffuse = col;

// copy into buffer
// size is sizeof(VERTEX);

VERTEX *data;

when i start the application i get FORBIDDEN ACTION you the most common error : D thx hunter_ex

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!