Go to the source code of this file.
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusImageCreateTga (GLUStgaimage *tgaimage, GLUSint width, GLUSint height, GLUSint depth, GLUSenum format) |
| Creates a TGA image. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusImageLoadTga (const GLUSchar *filename, GLUStgaimage *tgaimage) |
| Loads a TGA file. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusImageSaveTga (const GLUSchar *filename, const GLUStgaimage *tgaimage) |
| Saves a TGA file. More...
|
|
GLUSAPI GLUSvoid GLUSAPIENTRY | glusImageDestroyTga (GLUStgaimage *tgaimage) |
| Destroys the content of a TGA structure. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusImageSampleTga2D (GLUSubyte rgba[4], const GLUStgaimage *tgaimage, const GLUSfloat st[2]) |
| Samples a RGBA color value from a TGA 2D image. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusImageConvertTga (GLUStgaimage *targetImage, const GLUStgaimage *sourceImage, const GLUSenum targetFormat) |
| Converts a TGA image into another color format. More...
|
|
Converts a TGA image into another color format.
Source and target can not be the same.
- Parameters
-
targetImage | The TGA image structure, containing the converted image. |
sourceImage | The TGA image structure, which will be converted. |
targetFormat | The target format of the image. |
- Returns
- GLUS_TRUE, if conversion succeeded.
Creates a TGA image.
- Parameters
-
tgaimage | The structure to fill the TGA data. |
width | Width of the image. |
height | Height of the image. |
depth | Depth of the image. |
format | Format of the image. |
- Returns
- GLUS_TRUE, if creating succeeded.
Destroys the content of a TGA structure.
Has to be called for freeing the resources.
- Parameters
-
tgaimage | The TGA file structure. |
Loads a TGA file.
- Parameters
-
filename | The name of the file to load. |
tgaimage | The structure to fill the TGA data. |
- Returns
- GLUS_TRUE, if loading succeeded.
Samples a RGBA color value from a TGA 2D image.
Sampling uses a bilinear filter.
- Parameters
-
rgba | The resulting, sampled RGBA color value. |
tgaimage | The TGA image structure, containing the 2D texel data. |
st | Texture coordinate, where to sample the 2D texture. |
- Returns
- GLUS_TRUE, if sampling succeeded.
Saves a TGA file.
- Parameters
-
filename | The name of the file to save. |
tgaimage | The structure with the TGA data. |
- Returns
- GLUS_TRUE, if saving succeeded.