SPSubTexture Class Reference
Inherits from | SPTexture : NSObject |
Declared in | SPSubTexture.h |
Overview
An SPSubTexture represents a section of another texture. This is achieved solely by manipulation of texture coordinates, making the class very efficient.
Note that it is OK to create subtextures of subtextures.
Tasks
Initializers
-
– initWithRegion:ofTexture:
Initializes a subtexture with a region (in points) of another texture.
-
+ textureWithRegion:ofTexture:
Factory method.
Properties
-
baseTexture
The texture which the subtexture is based on.
property -
clipping
The clipping rectangle, which is the region provided on initialization, scaled into [0.0, 1.0].
property