Inherits from CC3Texture : CC3Identifiable : NSObject
Declared in CC3PVRTexture.h
CC3PVRTexture.mm

Overview

The representation of a PVR texture that has been loaded into the GL engine.

This class is used for all 2D and cube-map textures loaded from a PVR file type.

This class is part of a class-cluster under the parent CC3Texture class. Although you can invoke an instance creation method on this class directly, you will more commonly invoke them on the CC3Texture class instead. The creation and initialization methods will ensure that the correct subclass for the texture type, and in some cases, the texture file type, is created and returned. Because of this class-cluster structure, be aware that the class of the instance returned by an instance creation or initialization method may be different than the receiver of that method.

Properties

shouldFlipHorizontallyOnLoad

PVR textures cannot be flipped after loading. This property is overridden so that changes are ignored, and to always return NO.

@property (nonatomic, assign) BOOL shouldFlipHorizontallyOnLoad

Declared In

CC3PVRTexture.h

shouldFlipVerticallyOnLoad

PVR textures cannot be flipped after loading. This property is overridden so that changes are ignored, and to always return NO.

@property (nonatomic, assign) BOOL shouldFlipVerticallyOnLoad

Declared In

CC3PVRTexture.h

Instance Methods

bindTextureContent:toTarget:

- (void)bindTextureContent:(CC3PVRTextureContent *)texContent toTarget:(GLenum)target

getTextureUnitFromVisitor:

- (GLuint)getTextureUnitFromVisitor:(CC3NodeDrawingVisitor *)visitor

incrementTextureUnitInVisitor:

- (void)incrementTextureUnitInVisitor:(CC3NodeDrawingVisitor *)visitor

initialAttachmentFace

Returns the GL face to use when initially attaching this texture to a framebuffer.

- (GLenum)initialAttachmentFace

Discussion

Returns GL_TEXTURE_2D if this is a 2D texture, or GL_TEXTURE_CUBE_MAP_POSITIVE_X if this is a cube map texture.

Declared In

CC3Texture.h

isTexture2D

Returns whether this texture is a standard two-dimentional texture.

- (BOOL)isTexture2D

Declared In

CC3Texture.h

replacePixels:inTarget:withContent:

Replacing pixels not supported in compressed PVR textures.

- (void)replacePixels:(CC3Viewport)rect inTarget:(GLenum)target withContent:(ccColor4B *)colorArray

Declared In

CC3PVRTexture.mm

samplerSemantic

Returns the GLSL uniform texture sampler semantic for this type of texture.

- (GLenum)samplerSemantic

Declared In

CC3Texture.h

textureContentClass

- (Class)textureContentClass

textureTarget

Returns the GL target of this texture.

- (GLenum)textureTarget

Discussion

Returns GL_TEXTURE_2D if this is a 2D texture, or GL_TEXTURE_CUBE_MAP if this is a cube map texture.

Declared In

CC3Texture.h