![]() |
CUGL 3.0
Cornell University Game Library
|
#include <CUMaterial.h>
Public Member Functions | |
TextureInfo () | |
Public Attributes | |
std::string | name |
std::string | path |
GLuint | minflt |
GLuint | magflt |
GLuint | wrapS |
GLuint | wrapT |
bool | mipmaps |
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
.
|
inline |
Creates a default TextureInfo.
By default, material textures are repeated and use linear scaling. Mipmaps are not supported by default.
GLuint cugl::scene3::TextureInfo::magflt |
The maximization algorithm
GLuint cugl::scene3::TextureInfo::minflt |
The minimization algorithm
bool cugl::scene3::TextureInfo::mipmaps |
Whether or not the texture has mip maps
std::string cugl::scene3::TextureInfo::name |
The key for this TextureInfo in an AssetManager
std::string cugl::scene3::TextureInfo::path |
The path to the texture file
GLuint cugl::scene3::TextureInfo::wrapS |
The wrap-style for the horizontal texture coordinate
GLuint cugl::scene3::TextureInfo::wrapT |
The wrap-style for the vertical texture coordinate