Stellarium  26.3
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, bool allowHttp2=true)
 

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...
 
bool allowHttp2
 Allow the use of HTTP/2 when loading this texture. More...
 

Detailed Description

Contains the parameters defining how a texture is created.

Field Documentation

◆ allowHttp2

bool StelTexture::StelTextureParams::allowHttp2

Allow the use of HTTP/2 when loading this texture.

If set to false, HTTP/1.1 will be used by Qt, limiting maximum concurrency of downloads to 6 and avoiding HTTP 420 error when we abort many downloads at once. The error is due to CVE-2023-44487, but our use case is when a HiPS is downloading many tiles that then go out of the viewport before the download is completed.

◆ 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)