|
Inherits Service.
Inherited by TextureImpl.
List of all members.
Detailed Description
Wraps a texture image and rendering settings.
Member Function Documentation
| virtual int Texture::getComponents |
( |
|
) |
const [pure virtual] |
|
|
|
Get the number of color components. -
Scripted as:
-
[r/o int] components
|
| virtual int Texture::getComponentSize |
( |
|
) |
const [pure virtual] |
|
|
|
Get the size of a color component in bytes. -
Scripted as:
-
[r/o int] componentSize
|
| virtual int Texture::getHeight |
( |
|
) |
const [pure virtual] |
|
|
|
Get the height of the texture in texels. -
Scripted as:
-
[r/o int] height
|
| virtual void* Texture::getPixels |
( |
|
) |
[pure virtual] |
|
|
|
Get a pointer to the raw pixel data. -
Scripted as:
-
[r/o ptr] pixels
|
| virtual int Texture::getWidth |
( |
|
) |
const [pure virtual] |
|
|
|
Get the width of the texture in texels. -
Scripted as:
-
[r/o int] width
|
| virtual int Texture::getWrap |
( |
|
) |
const [pure virtual] |
|
|
|
Get the texture wrapping mode. -
Scripted as:
-
[r/w int] wrap
|
| virtual bool Texture::hasAlpha |
( |
|
) |
const [pure virtual] |
|
|
|
Returns true if the texture contains an alpha channel. -
Scripted as:
-
[r/o bool] hasAlpha
|
| virtual bool Texture::initialize |
( |
int |
width, |
|
|
int |
height, |
|
|
int |
num, |
|
|
int |
size, |
|
|
void * |
pixels |
|
) |
[pure virtual] |
|
|
|
Prepare a new texture object. -
Parameters:
-
| width |
The width of the texture in texels. |
| height |
The height of the texture in texels. |
| num |
The number of color components. |
| size |
The size of a single color component in bytes. |
| pixels |
The texture bitmap. |
-
Scripted as:
-
[method]
|
| virtual void Texture::setWrap |
( |
int |
mode |
) |
[pure virtual] |
|
|
|
Set the texture wrapping mode. The default is CLAMP. -
Scripted as:
-
[r/w int] wrap
|
The documentation for this struct was generated from the following file:
Flat Four Engine
Copyright (C) 2001 by 379, Inc.
|
This page generated by Doxygen
|
|