Colobot
Public Member Functions | Public Attributes | List of all members
Gfx::TextureCreateParams Struct Reference

Parameters for texture creation. More...

#include <texture.h>

Public Member Functions

void LoadDefault ()
 Loads the default values. More...
 

Public Attributes

bool mipmap = false
 Whether to generate mipmaps. More...
 
TexImgFormat format = TEX_IMG_RGB
 Format of source image data. More...
 
TexFilter filter = TEX_FILTER_NEAREST
 General texture filtering mode. More...
 
bool padToNearestPowerOfTwo = false
 Pad the image to nearest power of 2 dimensions. More...
 

Detailed Description

Parameters for texture creation.

These params define how particular texture is created and later displayed. They must be specified at texture creation time and cannot be changed later.

Member Function Documentation

void Gfx::TextureCreateParams::LoadDefault ( )
inline

Loads the default values.

Member Data Documentation

bool Gfx::TextureCreateParams::mipmap = false

Whether to generate mipmaps.

TexImgFormat Gfx::TextureCreateParams::format = TEX_IMG_RGB

Format of source image data.

TexFilter Gfx::TextureCreateParams::filter = TEX_FILTER_NEAREST

General texture filtering mode.

bool Gfx::TextureCreateParams::padToNearestPowerOfTwo = false

Pad the image to nearest power of 2 dimensions.


The documentation for this struct was generated from the following file: