WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ModelRenderPass Class Reference

Represents a single render pass (material + geometry) for an M2 model geoset. More...

#include <ModelRenderPass.h>

Collaboration diagram for ModelRenderPass:
[legend]

Public Member Functions

 ModelRenderPass (WoWModel *, int geo)
 
bool init ()
 Initialise render state from the model's material data.
 
void render (bool animated)
 Execute the render pass.
 
void deinit ()
 Clean up render state after drawing.
 

Public Attributes

bool useTex2
 
bool useEnvMap
 
bool cull
 
bool trans
 
bool unlit
 
bool noZWrite
 
bool billboard
 Render state flags.
 
int16 texanim
 
int16 color
 
int16 opacity
 
int16 blendmode
 
int16 specialTex
 Material property indices.
 
uint16 tex
 Texture index.
 
bool swrap
 
bool twrap
 Texture wrapping modes (S and T).
 
glm::vec4 ocol
 
glm::vec4 ecol
 Output and emissive colours.
 
WoWModelmodel
 Owning model.
 
int geoIndex
 Geoset index this pass draws.
 

Static Public Attributes

static const uint16 INVALID_TEX = 50000
 Sentinel value for an unset texture.
 

Detailed Description

Represents a single render pass (material + geometry) for an M2 model geoset.

Definition at line 10 of file ModelRenderPass.h.

Constructor & Destructor Documentation

◆ ModelRenderPass()

ModelRenderPass::ModelRenderPass ( WoWModel m,
int  geo 
)

Definition at line 14 of file ModelRenderPass.cpp.

Member Function Documentation

◆ deinit()

void ModelRenderPass::deinit ( )

Clean up render state after drawing.

Definition at line 23 of file ModelRenderPass.cpp.

◆ init()

bool ModelRenderPass::init ( )

Initialise render state from the model's material data.

Definition at line 79 of file ModelRenderPass.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ render()

void ModelRenderPass::render ( bool  animated)

Execute the render pass.

Definition at line 229 of file ModelRenderPass.cpp.

Member Data Documentation

◆ billboard

bool ModelRenderPass::billboard

Render state flags.

Definition at line 15 of file ModelRenderPass.h.

◆ blendmode

int16 ModelRenderPass::blendmode

Definition at line 17 of file ModelRenderPass.h.

◆ color

int16 ModelRenderPass::color

Definition at line 17 of file ModelRenderPass.h.

◆ cull

bool ModelRenderPass::cull

Definition at line 15 of file ModelRenderPass.h.

◆ ecol

glm::vec4 ModelRenderPass::ecol

Output and emissive colours.

Definition at line 22 of file ModelRenderPass.h.

◆ geoIndex

int ModelRenderPass::geoIndex

Geoset index this pass draws.

Definition at line 26 of file ModelRenderPass.h.

◆ INVALID_TEX

const uint16 ModelRenderPass::INVALID_TEX = 50000
static

Sentinel value for an unset texture.

Definition at line 37 of file ModelRenderPass.h.

◆ model

WoWModel* ModelRenderPass::model

Owning model.

Definition at line 24 of file ModelRenderPass.h.

◆ noZWrite

bool ModelRenderPass::noZWrite

Definition at line 15 of file ModelRenderPass.h.

◆ ocol

glm::vec4 ModelRenderPass::ocol

Definition at line 22 of file ModelRenderPass.h.

◆ opacity

int16 ModelRenderPass::opacity

Definition at line 17 of file ModelRenderPass.h.

◆ specialTex

int16 ModelRenderPass::specialTex

Material property indices.

Definition at line 17 of file ModelRenderPass.h.

◆ swrap

bool ModelRenderPass::swrap

Definition at line 20 of file ModelRenderPass.h.

◆ tex

uint16 ModelRenderPass::tex

Texture index.

Definition at line 18 of file ModelRenderPass.h.

◆ texanim

int16 ModelRenderPass::texanim

Definition at line 17 of file ModelRenderPass.h.

◆ trans

bool ModelRenderPass::trans

Definition at line 15 of file ModelRenderPass.h.

◆ twrap

bool ModelRenderPass::twrap

Texture wrapping modes (S and T).

Definition at line 20 of file ModelRenderPass.h.

◆ unlit

bool ModelRenderPass::unlit

Definition at line 15 of file ModelRenderPass.h.

◆ useEnvMap

bool ModelRenderPass::useEnvMap

Definition at line 15 of file ModelRenderPass.h.

◆ useTex2

bool ModelRenderPass::useTex2

Definition at line 15 of file ModelRenderPass.h.


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