#import <FlowTexture.h>
Public Member Functions | |
(BOOL) | - loadTextureFromResources: |
Protected Attributes | |
GLenum | internalFormat |
Properties | |
GLenum | textureFormat |
unsigned char * | textureData |
int | width |
int | height |
This class can load textures from an image file (png, jpg, tiff, ...)
- (BOOL) loadTextureFromResources: | (NSString*) | fileName |
Loads the texture
fileName | The filename of the texture |
- (GLenum) internalFormat [protected] |
- (int) height [read, write, assign] |
The height of the texture
- (unsigned char *) textureData [read, write, assign] |
An array holding raw texture data
- (GLenum) textureFormat [read, write, assign] |
The texture format
- (int) width [read, write, assign] |
The width of the texture