Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Graphics::TextureBuilder Class Reference

#include <TextureBuilder.h>

Public Member Functions

 TextureBuilder (const SDLSurfacePtr &surface, TextureSampleMode sampleMode=LINEAR_CLAMP, bool generateMipmaps=false, bool potExtend=false, bool forceRGBA=true, bool compressTextures=true, bool anisoFiltering=true)
 
 TextureBuilder (const std::string &filename, TextureSampleMode sampleMode=LINEAR_CLAMP, bool generateMipmaps=false, bool potExtend=false, bool forceRGBA=true, bool compressTextures=true, bool anisoFiltering=true, TextureType textureType=TEXTURE_2D, const size_t layers=1)
 
 TextureBuilder (const std::vector< std::string > &filenames, TextureSampleMode sampleMode=LINEAR_CLAMP, bool generateMipmaps=false, bool potExtend=false, bool forceRGBA=true, bool compressTextures=true, bool anisoFiltering=true, TextureType textureType=TEXTURE_2D, const size_t layers=1)
 
 ~TextureBuilder ()
 
const TextureDescriptorGetDescriptor ()
 
TextureGetOrCreateTexture (Renderer *r, const std::string &type)
 

Static Public Member Functions

static void Init ()
 
static TextureBuilder Model (const std::string &filename)
 
static TextureBuilder Normal (const std::string &filename)
 
static TextureBuilder Billboard (const std::string &filename)
 
static TextureBuilder UI (const std::string &filename)
 
static TextureBuilder Decal (const std::string &filename)
 
static TextureBuilder Raw (const std::string &filename)
 
static TextureBuilder Cube (const std::string &filename)
 
static TextureBuilder LookUpTable (const std::string &filename)
 
static TextureBuilder Array (const std::vector< std::string > &filenames, const size_t layers)
 
static TextureGetWhiteTexture (Renderer *)
 
static TextureGetTransparentTexture (Renderer *)
 

Constructor & Destructor Documentation

◆ TextureBuilder() [1/3]

Graphics::TextureBuilder::TextureBuilder ( const SDLSurfacePtr surface,
TextureSampleMode  sampleMode = LINEAR_CLAMP,
bool  generateMipmaps = false,
bool  potExtend = false,
bool  forceRGBA = true,
bool  compressTextures = true,
bool  anisoFiltering = true 
)

◆ TextureBuilder() [2/3]

Graphics::TextureBuilder::TextureBuilder ( const std::string &  filename,
TextureSampleMode  sampleMode = LINEAR_CLAMP,
bool  generateMipmaps = false,
bool  potExtend = false,
bool  forceRGBA = true,
bool  compressTextures = true,
bool  anisoFiltering = true,
TextureType  textureType = TEXTURE_2D,
const size_t  layers = 1 
)

◆ TextureBuilder() [3/3]

Graphics::TextureBuilder::TextureBuilder ( const std::vector< std::string > &  filenames,
TextureSampleMode  sampleMode = LINEAR_CLAMP,
bool  generateMipmaps = false,
bool  potExtend = false,
bool  forceRGBA = true,
bool  compressTextures = true,
bool  anisoFiltering = true,
TextureType  textureType = TEXTURE_2D,
const size_t  layers = 1 
)

◆ ~TextureBuilder()

Graphics::TextureBuilder::~TextureBuilder ( )

Member Function Documentation

◆ Array()

static TextureBuilder Graphics::TextureBuilder::Array ( const std::vector< std::string > &  filenames,
const size_t  layers 
)
inlinestatic

◆ Billboard()

static TextureBuilder Graphics::TextureBuilder::Billboard ( const std::string &  filename)
inlinestatic

◆ Cube()

static TextureBuilder Graphics::TextureBuilder::Cube ( const std::string &  filename)
inlinestatic

◆ Decal()

static TextureBuilder Graphics::TextureBuilder::Decal ( const std::string &  filename)
inlinestatic

◆ GetDescriptor()

const TextureDescriptor & Graphics::TextureBuilder::GetDescriptor ( )
inline

◆ GetOrCreateTexture()

Texture * Graphics::TextureBuilder::GetOrCreateTexture ( Renderer r,
const std::string &  type 
)
inline
Here is the call graph for this function:

◆ GetTransparentTexture()

Texture * Graphics::TextureBuilder::GetTransparentTexture ( Renderer r)
static
Here is the call graph for this function:

◆ GetWhiteTexture()

Texture * Graphics::TextureBuilder::GetWhiteTexture ( Renderer r)
static
Here is the call graph for this function:

◆ Init()

void Graphics::TextureBuilder::Init ( )
static

◆ LookUpTable()

static TextureBuilder Graphics::TextureBuilder::LookUpTable ( const std::string &  filename)
inlinestatic

◆ Model()

static TextureBuilder Graphics::TextureBuilder::Model ( const std::string &  filename)
inlinestatic

◆ Normal()

static TextureBuilder Graphics::TextureBuilder::Normal ( const std::string &  filename)
inlinestatic

◆ Raw()

static TextureBuilder Graphics::TextureBuilder::Raw ( const std::string &  filename)
inlinestatic

◆ UI()

static TextureBuilder Graphics::TextureBuilder::UI ( const std::string &  filename)
inlinestatic

The documentation for this class was generated from the following files: