I'm currently working on a game in OpenGL ES 2.0 (Android) and I've ran into a bit of an issue:
I have 2 meshes, both have their own shader object (code below). During initialization I upload the vertexdata (setPositionAttribute & setTextureAttribute). When it's time to draw though, I can only see the 2nd object. So I'm assuming the vertexdata from the 2nd object has replaced the vertexdata from the 1st.
Is this assumption (vertexdata is being shared by all program objects) correct?
Is there a way to separate the vertexdata or do I have to upload it each frame?
Edit: problem solved. I forgot to use VBOs. More info here
link102Member Since 25 Nov 2009
Offline Last Active Dec 03 2013 02:16 PM
- Group Members
- Active Posts 17
- Profile Views 500
- Submitted Links 0
- Member Title Member
- Age 25 years old
- Birthday May 1, 1988
link102 hasn't added any contacts yet.