Reputation: 59
I'm learning to program in OpenGL ES
My questions are:
I want to draw two pictures, each with its texture.
To do this I create two Opengl ES Program?
You can use the same Opengl ES Program for each texture?
Upvotes: 0
Views: 44
Reputation: 2832
Are you using OpenGL ES 2.0 or 1.1? With 2.0, at least one pair of shader programs (vertex and fragment) is required, which can render any number of textures. To change to a different texture, just use glBindTexture(). With 1.1, you can do the same, but there are no shader programs.
Upvotes: 1