Jump to content
  • Advertisement
Sign in to follow this  

VertexBuffers Copy piece

This topic is 4870 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 GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!