Stellarium  HEAD
Public Member Functions | Data Fields
StelTexture::StelTextureParams Struct Reference

Contains the parameters defining how a texture is created. More...

#include <StelTexture.hpp>

Public Member Functions

 StelTextureParams (bool qgenerateMipmaps=false, GLint afiltering=GL_LINEAR, GLint awrapMode=GL_CLAMP_TO_EDGE, bool qfilterMipmaps=false, int decimateBy=1)
 

Data Fields

bool generateMipmaps
 Define if mipmaps must be created.
 
bool filterMipmaps
 If true, mipmapped textures are filtered with GL_LINEAR_MIPMAP_LINEAR instead of GL_LINEAR_MIPMAP_NEAREST (i.e. More...
 
GLint filtering
 Define the scaling filter to use. Must be one of GL_NEAREST or GL_LINEAR.
 
GLint wrapMode
 Define the wrapping mode to use. Must be one of GL_CLAMP_TO_EDGE, or GL_REPEAT.
 
int decimation
 Allow a reduction of the size of the texture image (useful for very limited hardware) The image size will be divided by this factor (e.g. More...
 

Detailed Description

Contains the parameters defining how a texture is created.

Field Documentation

◆ decimation

int StelTexture::StelTextureParams::decimation

Allow a reduction of the size of the texture image (useful for very limited hardware) The image size will be divided by this factor (e.g.

2, 3, 4, ...)

◆ filterMipmaps

bool StelTexture::StelTextureParams::filterMipmaps

If true, mipmapped textures are filtered with GL_LINEAR_MIPMAP_LINEAR instead of GL_LINEAR_MIPMAP_NEAREST (i.e.

enabling "trilinear" filtering)