CUGL 4.0
Cornell University Game Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cugl::scene3::TextureInfo Class Reference

#include <CUMaterial.h>

Public Member Functions

 TextureInfo ()
 

Public Attributes

std::string name
 
std::string path
 
graphics::TextureFilter minflt
 
graphics::TextureFilter magflt
 
graphics::TextureWrap wrapS
 
graphics::TextureWrap wrapT
 
bool mipmaps
 

Detailed Description

This class is a reference to a (potentially loaded) texture.

This class contains enough information to load a texture from a file (either via graphics::TextureLoader or directly via the graphics::Texture interface). It is used to support textures referenced in an MTL file that may or may not have been loaded previously by an AssetManager.

Constructor & Destructor Documentation

◆ TextureInfo()

cugl::scene3::TextureInfo::TextureInfo ( )
inline

Creates a default TextureInfo.

By default, material textures are repeated and use linear scaling. Mipmaps are not supported by default.

Member Data Documentation

◆ magflt

graphics::TextureFilter cugl::scene3::TextureInfo::magflt

The maximization algorithm

◆ minflt

graphics::TextureFilter cugl::scene3::TextureInfo::minflt

The minimization algorithm

◆ mipmaps

bool cugl::scene3::TextureInfo::mipmaps

Whether or not the texture has mip maps

◆ name

std::string cugl::scene3::TextureInfo::name

The key for this TextureInfo in an AssetManager

◆ path

std::string cugl::scene3::TextureInfo::path

The path to the texture file

◆ wrapS

graphics::TextureWrap cugl::scene3::TextureInfo::wrapS

The wrap-style for the horizontal texture coordinate

◆ wrapT

graphics::TextureWrap cugl::scene3::TextureInfo::wrapT

The wrap-style for the vertical texture coordinate


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