Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Engine::Data::TextureParameters Struct Reference

Describes the sampler and image of a texture. More...

#include <Engine/Data/Texture.hpp>

+ Collaboration diagram for Ra::Engine::Data::TextureParameters:

Public Attributes

std::string name {}
 
SamplerParameters sampler {}
 
ImageParameters image {}
 

Detailed Description

Describes the sampler and image of a texture.

These parameters describe the image data of the texture :

  • ImageParameters: target, width, height, depth, format, internalFormat, type and texels for describing image data
  • SampleParameters: wrapS, wrapT, wrapP, minFilter and magFilter for describing the sampler of the texture.

MipMap representation of the texture is automatically generated as soon as the minFilter parameter is something else than GL_LINEAR or GL_NEAREST.

Todo
allow to use another mipmap building function than glGenerateMipmap
Note
No coherence checking will be done on the content of this structure. User must ensure coherent data and parameters.

Definition at line 99 of file Texture.hpp.

Member Data Documentation

◆ image

ImageParameters Ra::Engine::Data::TextureParameters::image {}

Definition at line 102 of file Texture.hpp.

◆ name

std::string Ra::Engine::Data::TextureParameters::name {}

Definition at line 100 of file Texture.hpp.

◆ sampler

SamplerParameters Ra::Engine::Data::TextureParameters::sampler {}

Definition at line 101 of file Texture.hpp.


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