Class

FxTexture

The FxTexture class defines the methods that allow VRAM-based images to be used for hardware-accelerated rendering.

Declaration

@interface FxTexture : FxImage

Overview

This subclass of the FxImage class is defined by an FxImageInfo structure.

Topics

Initializing Texture Objects

- initWithInfo:textureId:andTarget:

Initializes the allocated object with the texture ID and target.information and pixel bufferInitializes using the given FxImageInfo structure and texture ID.

Manipulating the Texture

- bind

Binds the texture object.

- enable

Enables the texture for rendering.

- disable

Disables the texture for rendering.

- draw

Draws the texture to the GL context.

- target

Returns the target of the texture.

- textureId

The ID of the OpenGL texture wrapped by the texture.

Getting Texture Coordinates

Relationships

Inherits From

Conforms To