Assimp  v3.1.1 (June 2014)
Assimp::Q3Shader Namespace Reference

Classes

struct  ShaderData
 Tiny utility data structure to hold the data of a .shader file. More...
 
struct  ShaderDataBlock
 Tiny utility data structure to hold a .shader data block. More...
 
struct  ShaderMapBlock
 Tiny utility data structure to hold a .shader map data block. More...
 
struct  SkinData
 Tiny utility data structure to hold the data of a .skin file. More...
 

Enumerations

enum  AlphaTestFunc { AT_NONE, AT_GT0, AT_LT128, AT_GE128 }
 Specifies alpha test modi for Quake texture maps. More...
 
enum  BlendFunc {
  BLEND_NONE, BLEND_GL_ONE, BLEND_GL_ZERO, BLEND_GL_DST_COLOR,
  BLEND_GL_ONE_MINUS_DST_COLOR, BLEND_GL_SRC_ALPHA, BLEND_GL_ONE_MINUS_SRC_ALPHA
}
 Specifies alpha blend modi (src + dest) for Quake shader files. More...
 
enum  ShaderCullMode { CULL_NONE, CULL_CW, CULL_CCW }
 Specifies cull modi for Quake shader files. More...
 

Functions

void ConvertShaderToMaterial (aiMaterial *out, const ShaderDataBlock &shader)
 Convert a Q3Shader to an aiMaterial. More...
 
bool LoadShader (ShaderData &fill, const std::string &file, IOSystem *io)
 Load a shader file. More...
 
bool LoadSkin (SkinData &fill, const std::string &file, IOSystem *io)
 Load a skin file. More...
 

Enumeration Type Documentation

◆ AlphaTestFunc

Specifies alpha test modi for Quake texture maps.

Enumerator
AT_NONE 
AT_GT0 
AT_LT128 
AT_GE128 

◆ BlendFunc

Specifies alpha blend modi (src + dest) for Quake shader files.

Enumerator
BLEND_NONE 
BLEND_GL_ONE 
BLEND_GL_ZERO 
BLEND_GL_DST_COLOR 
BLEND_GL_ONE_MINUS_DST_COLOR 
BLEND_GL_SRC_ALPHA 
BLEND_GL_ONE_MINUS_SRC_ALPHA 

◆ ShaderCullMode

Specifies cull modi for Quake shader files.

Enumerator
CULL_NONE 
CULL_CW 
CULL_CCW 

Function Documentation

◆ ConvertShaderToMaterial()

void Assimp::Q3Shader::ConvertShaderToMaterial ( aiMaterial out,
const ShaderDataBlock shader 
)

Convert a Q3Shader to an aiMaterial.

Parameters
[out]outMaterial structure to be filled.
[in]shaderInput shader

◆ LoadShader()

bool Assimp::Q3Shader::LoadShader ( ShaderData fill,
const std::string &  file,
IOSystem io 
)

Load a shader file.

Generally, parsing is error tolerant. There's no failure.

Parameters
fillReceives output data
fileFile to be read.
ioIOSystem to be used for reading
Returns
false if file is not accessible

◆ LoadSkin()

bool Assimp::Q3Shader::LoadSkin ( SkinData fill,
const std::string &  file,
IOSystem io 
)

Load a skin file.

Generally, parsing is error tolerant. There's no failure.

Parameters
fillReceives output data
fileFile to be read.
ioIOSystem to be used for reading
Returns
false if file is not accessible