how to specify point sprite texture coordinates in OpenGL ES 1.1?
问题 I'm writing a particle system that uses point sprites in OpenGL ES 1.1 on iOS. Everything works great until I try to texture the point sprites... when I render, each sprite is colored by the top left pixel of the texture I'm loading (rather than displaying the image). I've tried different images and different sizes and always get the same result. setup code (taken from GLPaint example): CGImageRef brushImage; CGContextRef brushContext; size_t width, height; GLubyte *brushData; brushImage =