lacas
lacas

Reputation: 14066

OpenGL ES texture cut from it

I have a big texture, 256*256 there is 64*64 pixel textures on it. How I can cut it, and use as a texture?

Upvotes: 0

Views: 516

Answers (1)

Dr. Snoopy
Dr. Snoopy

Reputation: 56357

Just draw with the correct texture coordinates, for example, to draw a quad from (0,0) to (64,64) from the texture, use texture coords (0,0) to (64 / 256.0, 64 / 256.0)

Upvotes: 4

Related Questions