Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Represents a Wavefront OBJ texture. See also ObjMaterial and ObjLoader. More...
#include <ioOBJ.hpp>
Public Member Functions | |
ObjTexture () | |
const ObjTexture & | parseLine (const String &line, const String &file) |
bool | valid () const |
void | print () |
Prints the content of the material. Used for debugging purposes. | |
const String & | path () const |
Texture file name. | |
bool | blendU () const |
-blendu on | off | |
bool | blendV () const |
-blendv on | off | |
bool | cc () const |
-cc on | off | |
bool | clamp () const |
-clamp on | off | |
float | mm_Base () const |
-mm base gain | |
float | mm_Gain () const |
-mm base gain | |
const fvec3 & | o_UVW () const |
-o u v w | |
const fvec3 & | s_UVW () const |
-s u v w | |
const fvec3 & | t_UVW () const |
-t u v w | |
float | texres_Value () const |
-texres value | |
char | imfchan () const |
-imfchan r | g | b | m | l | z | |
float | bm () const |
-bm mult | |
void | setPath (const String &filename) |
Texture file name. | |
void | setBlendU (bool on) |
-blendu on | off | |
void | setBlendV (bool on) |
-blendv on | off | |
void | setCC (bool on) |
-cc on | off | |
void | setClamp (bool on) |
-clamp on | off | |
void | setMM_Base (float base) |
-mm base gain | |
void | setMM_Gain (float gain) |
-mm base gain | |
void | setO_UVW (const fvec3 &o_uvw) |
-o u v w | |
void | setS_UVW (const fvec3 &s_uvw) |
-s u v w | |
void | setT_UVW (const fvec3 &t_uvw) |
-t u v w | |
void | setTexres_Value (float value) |
-texres value | |
void | setImfchan (char val) |
-imfchan r | g | b | m | l | z | |
void | setBM (float bm) |
-bm mult | |
Protected Attributes | |
String | mFileName |
Texture file name. | |
bool | mBlendU |
-blendu on | off | |
bool | mBlendV |
-blendv on | off | |
bool | mCC |
-cc on | off | |
bool | mClamp |
-clamp on | off | |
float | mMM_Base |
-mm base gain | |
float | mMM_Gain |
-mm base gain | |
fvec3 | mO_UVW |
-o u v w | |
fvec3 | mS_UVW |
-s u v w | |
fvec3 | mT_UVW |
-t u v w | |
float | mTexres_Value |
-texres value | |
char | mImfchan |
-imfchan r | g | b | m | l | z | |
float | mBM |
-bm mult |
Represents a Wavefront OBJ texture. See also ObjMaterial and ObjLoader.
Definition at line 92 of file ioOBJ.hpp.
ObjTexture::ObjTexture | ( | ) |
const ObjTexture & ObjTexture::parseLine | ( | const String & | line, |
const String & | file | ||
) |
void ObjTexture::print | ( | ) |
const String& vl::ObjTexture::path | ( | ) | const [inline] |
bool vl::ObjTexture::blendU | ( | ) | const [inline] |
bool vl::ObjTexture::blendV | ( | ) | const [inline] |
bool vl::ObjTexture::clamp | ( | ) | const [inline] |
float vl::ObjTexture::mm_Base | ( | ) | const [inline] |
float vl::ObjTexture::mm_Gain | ( | ) | const [inline] |
const fvec3& vl::ObjTexture::o_UVW | ( | ) | const [inline] |
const fvec3& vl::ObjTexture::s_UVW | ( | ) | const [inline] |
const fvec3& vl::ObjTexture::t_UVW | ( | ) | const [inline] |
float vl::ObjTexture::texres_Value | ( | ) | const [inline] |
char vl::ObjTexture::imfchan | ( | ) | const [inline] |
void vl::ObjTexture::setPath | ( | const String & | filename ) | [inline] |
void vl::ObjTexture::setBlendU | ( | bool | on ) | [inline] |
void vl::ObjTexture::setBlendV | ( | bool | on ) | [inline] |
void vl::ObjTexture::setCC | ( | bool | on ) | [inline] |
void vl::ObjTexture::setClamp | ( | bool | on ) | [inline] |
void vl::ObjTexture::setMM_Base | ( | float | base ) | [inline] |
void vl::ObjTexture::setMM_Gain | ( | float | gain ) | [inline] |
void vl::ObjTexture::setO_UVW | ( | const fvec3 & | o_uvw ) | [inline] |
void vl::ObjTexture::setS_UVW | ( | const fvec3 & | s_uvw ) | [inline] |
void vl::ObjTexture::setT_UVW | ( | const fvec3 & | t_uvw ) | [inline] |
void vl::ObjTexture::setTexres_Value | ( | float | value ) | [inline] |
void vl::ObjTexture::setImfchan | ( | char | val ) | [inline] |
String vl::ObjTexture::mFileName [protected] |
Texture file name.
Definition at line 157 of file ioOBJ.hpp.
Referenced by parseLine(), and print().
bool vl::ObjTexture::mBlendU [protected] |
-blendu on | off
Definition at line 159 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
bool vl::ObjTexture::mBlendV [protected] |
-blendv on | off
Definition at line 161 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
bool vl::ObjTexture::mCC [protected] |
-cc on | off
Definition at line 163 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
bool vl::ObjTexture::mClamp [protected] |
-clamp on | off
Definition at line 165 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
float vl::ObjTexture::mMM_Base [protected] |
-mm base gain
Definition at line 167 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
float vl::ObjTexture::mMM_Gain [protected] |
-mm base gain
Definition at line 169 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
fvec3 vl::ObjTexture::mO_UVW [protected] |
-o u v w
Definition at line 171 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
fvec3 vl::ObjTexture::mS_UVW [protected] |
-s u v w
Definition at line 173 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
fvec3 vl::ObjTexture::mT_UVW [protected] |
-t u v w
Definition at line 175 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
float vl::ObjTexture::mTexres_Value [protected] |
-texres value
Definition at line 177 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
char vl::ObjTexture::mImfchan [protected] |
-imfchan r | g | b | m | l | z
Definition at line 179 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().
float vl::ObjTexture::mBM [protected] |
-bm mult
Definition at line 181 of file ioOBJ.hpp.
Referenced by ObjTexture(), parseLine(), and print().