xoreos  0.0.5
Namespaces | Variables
model_kotor.cpp File Reference

Loading MDL files found in Star Wars: Knights of the Old Republic. More...

#include "src/common/error.h"
#include "src/common/maths.h"
#include "src/common/readstream.h"
#include "src/common/encoding.h"
#include "src/common/strutil.h"
#include "src/aurora/types.h"
#include "src/aurora/resman.h"
#include "src/graphics/aurora/model_kotor.h"
#include "src/graphics/aurora/animation.h"
#include "src/graphics/aurora/animnode.h"
#include "src/graphics/aurora/textureman.h"
#include "src/graphics/aurora/texture.h"
#include "src/graphics/shader/materialman.h"
#include "src/graphics/shader/surfaceman.h"
#include "src/graphics/images/decoder.h"
#include "src/common/uuid.h"
Include dependency graph for model_kotor.cpp:

Go to the source code of this file.

Namespaces

 Graphics
 
 Graphics::Aurora
 

Variables

static IGNORE_UNUSED_VARIABLES const int kNodeFlagHasHeader = 0x0001
 
static const int kNodeFlagHasLight = 0x0002
 
static const int kNodeFlagHasEmitter = 0x0004
 
static const int kNodeFlagHasReference = 0x0010
 
static const int kNodeFlagHasMesh = 0x0020
 
static const int kNodeFlagHasSkin = 0x0040
 
static const int kNodeFlagHasAnim = 0x0080
 
static const int kNodeFlagHasDangly = 0x0100
 
static const int kNodeFlagHasAABB = 0x0200
 
static const uint32 kControllerTypePosition = 8
 
static const uint32 kControllerTypeOrientation = 20
 
static const uint32 kControllerTypeScale = 36
 
static const uint32 kControllerTypeColor = 76
 
static const uint32 kControllerTypeRadius = 88
 
static const uint32 kControllerTypeShadowRadius = 96
 
static const uint32 kControllerTypeVerticalDisplacement = 100
 
static const uint32 kControllerTypeMultiplier = 140
 
static const uint32 kControllerTypeAlphaEnd = 80
 
static const uint32 kControllerTypeAlphaStart = 84
 
static const uint32 kControllerTypeBirthRate = 88
 
static const uint32 kControllerTypeBounce_Co = 92
 
static const uint32 kControllerTypeColorEnd = 96
 
static const uint32 kControllerTypeColorStart = 108
 
static const uint32 kControllerTypeCombineTime = 120
 
static const uint32 kControllerTypeDrag = 124
 
static const uint32 kControllerTypeFPS = 128
 
static const uint32 kControllerTypeFrameEnd = 132
 
static const uint32 kControllerTypeFrameStart = 136
 
static const uint32 kControllerTypeGrav = 140
 
static const uint32 kControllerTypeLifeExp = 144
 
static const uint32 kControllerTypeMass = 148
 
static const uint32 kControllerTypeP2P_Bezier2 = 152
 
static const uint32 kControllerTypeP2P_Bezier3 = 156
 
static const uint32 kControllerTypeParticleRot = 160
 
static const uint32 kControllerTypeRandVel = 164
 
static const uint32 kControllerTypeSizeStart = 168
 
static const uint32 kControllerTypeSizeEnd = 172
 
static const uint32 kControllerTypeSizeStart_Y = 176
 
static const uint32 kControllerTypeSizeEnd_Y = 180
 
static const uint32 kControllerTypeSpread = 184
 
static const uint32 kControllerTypeThreshold = 188
 
static const uint32 kControllerTypeVelocity = 192
 
static const uint32 kControllerTypeXSize = 196
 
static const uint32 kControllerTypeYSize = 200
 
static const uint32 kControllerTypeBlurLength = 204
 
static const uint32 kControllerTypeLightningDelay = 208
 
static const uint32 kControllerTypeLightningRadius = 212
 
static const uint32 kControllerTypeLightningScale = 216
 
static const uint32 kControllerTypeDetonate = 228
 
static const uint32 kControllerTypeAlphaMid = 464
 
static const uint32 kControllerTypeColorMid = 468
 
static const uint32 kControllerTypePercentStart = 480
 
static const uint32 kControllerTypePercentMid = 481
 
static const uint32 kControllerTypePercentEnd = 482
 
static const uint32 kControllerTypeSizeMid = 484
 
static const uint32 kControllerTypeSizeMid_Y = 488
 
static const uint32 kControllerTypeSelfIllumColor = 100
 
static const uint32 kControllerTypeAlpha = 128
 

Detailed Description

Loading MDL files found in Star Wars: Knights of the Old Republic.

Definition in file model_kotor.cpp.

Variable Documentation

◆ kControllerTypeAlpha

const uint32 kControllerTypeAlpha = 128
static

Definition at line 113 of file model_kotor.cpp.

◆ kControllerTypeAlphaEnd

const uint32 kControllerTypeAlphaEnd = 80
static

Definition at line 73 of file model_kotor.cpp.

◆ kControllerTypeAlphaMid

const uint32 kControllerTypeAlphaMid = 464
static

Definition at line 105 of file model_kotor.cpp.

◆ kControllerTypeAlphaStart

const uint32 kControllerTypeAlphaStart = 84
static

Definition at line 74 of file model_kotor.cpp.

◆ kControllerTypeBirthRate

const uint32 kControllerTypeBirthRate = 88
static

Definition at line 75 of file model_kotor.cpp.

◆ kControllerTypeBlurLength

const uint32 kControllerTypeBlurLength = 204
static

Definition at line 100 of file model_kotor.cpp.

◆ kControllerTypeBounce_Co

const uint32 kControllerTypeBounce_Co = 92
static

Definition at line 76 of file model_kotor.cpp.

◆ kControllerTypeColor

const uint32 kControllerTypeColor = 76
static

Definition at line 68 of file model_kotor.cpp.

◆ kControllerTypeColorEnd

const uint32 kControllerTypeColorEnd = 96
static

Definition at line 77 of file model_kotor.cpp.

◆ kControllerTypeColorMid

const uint32 kControllerTypeColorMid = 468
static

Definition at line 106 of file model_kotor.cpp.

◆ kControllerTypeColorStart

const uint32 kControllerTypeColorStart = 108
static

Definition at line 78 of file model_kotor.cpp.

◆ kControllerTypeCombineTime

const uint32 kControllerTypeCombineTime = 120
static

Definition at line 79 of file model_kotor.cpp.

◆ kControllerTypeDetonate

const uint32 kControllerTypeDetonate = 228
static

Definition at line 104 of file model_kotor.cpp.

◆ kControllerTypeDrag

const uint32 kControllerTypeDrag = 124
static

Definition at line 80 of file model_kotor.cpp.

◆ kControllerTypeFPS

const uint32 kControllerTypeFPS = 128
static

Definition at line 81 of file model_kotor.cpp.

◆ kControllerTypeFrameEnd

const uint32 kControllerTypeFrameEnd = 132
static

Definition at line 82 of file model_kotor.cpp.

◆ kControllerTypeFrameStart

const uint32 kControllerTypeFrameStart = 136
static

Definition at line 83 of file model_kotor.cpp.

◆ kControllerTypeGrav

const uint32 kControllerTypeGrav = 140
static

Definition at line 84 of file model_kotor.cpp.

◆ kControllerTypeLifeExp

const uint32 kControllerTypeLifeExp = 144
static

Definition at line 85 of file model_kotor.cpp.

◆ kControllerTypeLightningDelay

const uint32 kControllerTypeLightningDelay = 208
static

Definition at line 101 of file model_kotor.cpp.

◆ kControllerTypeLightningRadius

const uint32 kControllerTypeLightningRadius = 212
static

Definition at line 102 of file model_kotor.cpp.

◆ kControllerTypeLightningScale

const uint32 kControllerTypeLightningScale = 216
static

Definition at line 103 of file model_kotor.cpp.

◆ kControllerTypeMass

const uint32 kControllerTypeMass = 148
static

Definition at line 86 of file model_kotor.cpp.

◆ kControllerTypeMultiplier

const uint32 kControllerTypeMultiplier = 140
static

Definition at line 72 of file model_kotor.cpp.

◆ kControllerTypeOrientation

const uint32 kControllerTypeOrientation = 20
static

◆ kControllerTypeP2P_Bezier2

const uint32 kControllerTypeP2P_Bezier2 = 152
static

Definition at line 87 of file model_kotor.cpp.

◆ kControllerTypeP2P_Bezier3

const uint32 kControllerTypeP2P_Bezier3 = 156
static

Definition at line 88 of file model_kotor.cpp.

◆ kControllerTypeParticleRot

const uint32 kControllerTypeParticleRot = 160
static

Definition at line 89 of file model_kotor.cpp.

◆ kControllerTypePercentEnd

const uint32 kControllerTypePercentEnd = 482
static

Definition at line 109 of file model_kotor.cpp.

◆ kControllerTypePercentMid

const uint32 kControllerTypePercentMid = 481
static

Definition at line 108 of file model_kotor.cpp.

◆ kControllerTypePercentStart

const uint32 kControllerTypePercentStart = 480
static

Definition at line 107 of file model_kotor.cpp.

◆ kControllerTypePosition

const uint32 kControllerTypePosition = 8
static

◆ kControllerTypeRadius

const uint32 kControllerTypeRadius = 88
static

Definition at line 69 of file model_kotor.cpp.

◆ kControllerTypeRandVel

const uint32 kControllerTypeRandVel = 164
static

Definition at line 90 of file model_kotor.cpp.

◆ kControllerTypeScale

const uint32 kControllerTypeScale = 36
static

Definition at line 67 of file model_kotor.cpp.

◆ kControllerTypeSelfIllumColor

const uint32 kControllerTypeSelfIllumColor = 100
static

Definition at line 112 of file model_kotor.cpp.

◆ kControllerTypeShadowRadius

const uint32 kControllerTypeShadowRadius = 96
static

Definition at line 70 of file model_kotor.cpp.

◆ kControllerTypeSizeEnd

const uint32 kControllerTypeSizeEnd = 172
static

Definition at line 92 of file model_kotor.cpp.

◆ kControllerTypeSizeEnd_Y

const uint32 kControllerTypeSizeEnd_Y = 180
static

Definition at line 94 of file model_kotor.cpp.

◆ kControllerTypeSizeMid

const uint32 kControllerTypeSizeMid = 484
static

Definition at line 110 of file model_kotor.cpp.

◆ kControllerTypeSizeMid_Y

const uint32 kControllerTypeSizeMid_Y = 488
static

Definition at line 111 of file model_kotor.cpp.

◆ kControllerTypeSizeStart

const uint32 kControllerTypeSizeStart = 168
static

Definition at line 91 of file model_kotor.cpp.

◆ kControllerTypeSizeStart_Y

const uint32 kControllerTypeSizeStart_Y = 176
static

Definition at line 93 of file model_kotor.cpp.

◆ kControllerTypeSpread

const uint32 kControllerTypeSpread = 184
static

Definition at line 95 of file model_kotor.cpp.

◆ kControllerTypeThreshold

const uint32 kControllerTypeThreshold = 188
static

Definition at line 96 of file model_kotor.cpp.

◆ kControllerTypeVelocity

const uint32 kControllerTypeVelocity = 192
static

Definition at line 97 of file model_kotor.cpp.

◆ kControllerTypeVerticalDisplacement

const uint32 kControllerTypeVerticalDisplacement = 100
static

Definition at line 71 of file model_kotor.cpp.

◆ kControllerTypeXSize

const uint32 kControllerTypeXSize = 196
static

Definition at line 98 of file model_kotor.cpp.

◆ kControllerTypeYSize

const uint32 kControllerTypeYSize = 200
static

Definition at line 99 of file model_kotor.cpp.

◆ kNodeFlagHasAABB

const int kNodeFlagHasAABB = 0x0200
static

Definition at line 63 of file model_kotor.cpp.

Referenced by Graphics::Aurora::ModelNode_KotOR::load().

◆ kNodeFlagHasAnim

const int kNodeFlagHasAnim = 0x0080
static

Definition at line 61 of file model_kotor.cpp.

Referenced by Graphics::Aurora::ModelNode_KotOR::load().

◆ kNodeFlagHasDangly

const int kNodeFlagHasDangly = 0x0100
static

Definition at line 62 of file model_kotor.cpp.

Referenced by Graphics::Aurora::ModelNode_KotOR::load().

◆ kNodeFlagHasEmitter

const int kNodeFlagHasEmitter = 0x0004
static

Definition at line 57 of file model_kotor.cpp.

Referenced by Graphics::Aurora::ModelNode_KotOR::load().

◆ kNodeFlagHasHeader

IGNORE_UNUSED_VARIABLES const int kNodeFlagHasHeader = 0x0001
static

Definition at line 55 of file model_kotor.cpp.

◆ kNodeFlagHasLight

const int kNodeFlagHasLight = 0x0002
static

Definition at line 56 of file model_kotor.cpp.

Referenced by Graphics::Aurora::ModelNode_KotOR::load().

◆ kNodeFlagHasMesh

const int kNodeFlagHasMesh = 0x0020
static

Definition at line 59 of file model_kotor.cpp.

Referenced by Graphics::Aurora::ModelNode_KotOR::load().

◆ kNodeFlagHasReference

const int kNodeFlagHasReference = 0x0010
static

Definition at line 58 of file model_kotor.cpp.

Referenced by Graphics::Aurora::ModelNode_KotOR::load().

◆ kNodeFlagHasSkin

const int kNodeFlagHasSkin = 0x0040
static

Definition at line 60 of file model_kotor.cpp.

Referenced by Graphics::Aurora::ModelNode_KotOR::load().