ADC Home > Reference Library > Reference > Apple Applications > Final Cut Pro/Final Cut Express > FxPlug Reference
|
FxTexture |
Superclass: | |
Declared In: |
VRAM-based image used for hardware-accelerated rendering.
This subclass of FxImage is defined by an FxImageInfo structure.
NOTE: The designated initializers of the FxTexture class are -initWithInfo:,
-initWithInfo:andData:, and -initWithInfo:andTextureId:. Sending -init to an
FxTexture raises an exception.
bind |
Binds the texture object.
- (void)bind;
createData:withType: |
Copies the FxImage's pixels into a new pixel buffer. The sender owns this buffer and is responsible for deallocating it.
- (void *)createData:(GLenum)format withType:(GLenum)type;
format
type
The pointer to the new pixel buffer.
disable |
Disables the texture for rendering.
- (void)disable;
draw |
Draws the texture to the GL Context.
- (void)draw;
enable |
Enables the texture for rendering.
- (void)enable;
getTextureCoords:right:bottom:top: |
Gets the texture bounds.
- (void)getTextureCoords:(double *)left right:(double *)right bottom:(double *)bottom top:(double *)top;
left
right
bottom
top
The sender can set any of the pointers to NULL if the value of a particular coordinate is not of interest.
initWithInfo: |
Initializes with the given FxImageInfo structure.
- (id)initWithInfo:(FxImageInfo)imageInfo;
imageInfo
The initialized FxTexture.
This is one of the designated initializers for the FxTexture class.
initWithInfo:andData: |
Initializes with the given FxImageInfo structure and the given pixel buffer.
- (id)initWithInfo:(FxImageInfo)imageInfo andData:(void *)data;
imageInfo
The initialized FxTexture.
The sender owns the buffer and is responsible for deallocating it.
initWithInfo:andTextureId: |
Initializes using the given FxImageInfo structure and texture ID.
- (id)initWithInfo:(FxImageInfo)imageInfo andTextureId:(GLuint)textureId;
imageInfo
The initialized FxTexture.
The sender owns the GLtexture passed to this method and is responsible for deallocating it.
setAsActiveTexture |
Sets the texture as the active texture.
- (void)setAsActiveTexture;
setData: |
Sets the pixel buffer to the given data pointer.
- (void)setData:(void *)data;
data
setTarget: |
Sets the target of the FxTexture.
- (void)setTarget:(GLenum)target;
setTextureCoords:right:bottom:top: |
Sets the texture bounds.
- (void)setTextureCoords:(double)left right:(double)right bottom:(double)bottom top:(double)top;
left
right
bottom
top
setTextureId: |
Assigns the GLtexture with the given ID to the FxTexture.
- (void)setTextureId:(GLuint)textureId;
textureId
target |
Returns the target of the FxTexture.
- (GLenum)target;
GL texture target ID.
textureId |
The ID of the GLtexture wrapped by the FxTexture.
- (GLuint)textureId;
The GLtexture ID.
|