OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
DecalBuilder Struct Reference

#include <DecalBuilder.h>

Public Member Functions

 DecalBuilder ()
 
virtual ~DecalBuilder ()
 
void AddBloodsplat (const Vec3f &pos, Color color, float radius)
 
void Reset (bool bPreserveBloodsplats)
 
char BuildAndApplyDecals (int light_level, LocationFlags locationFlags, const Planef &FacePlane, int NumFaceVerts, RenderVertexSoft *FaceVerts, char ClipFlags, int uSectorID)
 
bool Build_Decal_Geometry (int LightLevel, LocationFlags locationFlags, Bloodsplat *blood, float DecalRadius, Color uColorMultiplier, float DecalDotDist, stru314 *FacetNormals, int numfaceverts, RenderVertexSoft *faceverts, char uClipFlags)
 
bool ApplyBloodsplatDecals_IndoorFace (int uFaceID)
 
bool ApplyBloodSplat_OutdoorFace (ODMFace *pFace)
 
bool ApplyBloodSplatToTerrain (bool fading, const Vec3f &terrnorm, float *tridotdist, RenderVertexSoft *triverts, const int whichsplat)
 
void DrawDecals (float z_bias)
 
void DrawBloodsplats ()
 
void DrawDecalDebugOutlines ()
 

Public Attributes

std::array< Decal, 1024 > Decals
 
unsigned int DecalsCount
 
int uNumSplatsThisFace = 0
 
std::array< int, 1024 > WhichSplatsOnThisFace = {{}}
 
float field_30C010 = 0
 
float field_30C014 = 0
 
float field_30C018 = 0
 
float field_30C01C = 0
 
float field_30C020 = 0
 
float field_30C024 = 0
 
float field_30C028 = 0
 
float field_30C02C = 0
 
float flt_30C030 = 0
 
float field_30C034 = 0
 
BloodsplatContainerbloodsplat_container
 

Constructor & Destructor Documentation

◆ DecalBuilder()

DecalBuilder::DecalBuilder ( )

◆ ~DecalBuilder()

virtual DecalBuilder::~DecalBuilder ( )
inlinevirtual

Member Function Documentation

◆ AddBloodsplat()

void DecalBuilder::AddBloodsplat ( const Vec3f pos,
Color  color,
float  radius 
)

◆ ApplyBloodSplat_OutdoorFace()

bool DecalBuilder::ApplyBloodSplat_OutdoorFace ( ODMFace pFace)

◆ ApplyBloodsplatDecals_IndoorFace()

bool DecalBuilder::ApplyBloodsplatDecals_IndoorFace ( int  uFaceID)

◆ ApplyBloodSplatToTerrain()

bool DecalBuilder::ApplyBloodSplatToTerrain ( bool  fading,
const Vec3f terrnorm,
float *  tridotdist,
RenderVertexSoft triverts,
const int  whichsplat 
)
Original binary offset:
0x0049BE8A

Attemps to apply a certain bloodsplat onto the supplied terrain triangle.

Parameters
fadingWhether blood splat should be fading.
terrnormNormal vector of supplied triangle.
[out]tridotdistPlane dot distance of supplied vertices.
trivertsVertices of terrain triangle to apply splat onto.
whichsplatIndex of which bloodsplat in bloodsplat_container->pBloodsplats_to_apply[index] to use.
Returns
True if bloodsplat_container->uNumBloodsplats > 0, false otherwise.

◆ Build_Decal_Geometry()

bool DecalBuilder::Build_Decal_Geometry ( int  LightLevel,
LocationFlags  locationFlags,
Bloodsplat blood,
float  DecalRadius,
Color  uColorMultiplier,
float  DecalDotDist,
stru314 FacetNormals,
int  numfaceverts,
RenderVertexSoft faceverts,
char  uClipFlags 
)

◆ BuildAndApplyDecals()

char DecalBuilder::BuildAndApplyDecals ( int  light_level,
LocationFlags  locationFlags,
const Planef FacePlane,
int  NumFaceVerts,
RenderVertexSoft FaceVerts,
char  ClipFlags,
int  uSectorID 
)

◆ DrawBloodsplats()

void DecalBuilder::DrawBloodsplats ( )

◆ DrawDecalDebugOutlines()

void DecalBuilder::DrawDecalDebugOutlines ( )

◆ DrawDecals()

void DecalBuilder::DrawDecals ( float  z_bias)

◆ Reset()

void DecalBuilder::Reset ( bool  bPreserveBloodsplats)

Member Data Documentation

◆ bloodsplat_container

BloodsplatContainer* DecalBuilder::bloodsplat_container

◆ Decals

std::array<Decal, 1024> DecalBuilder::Decals

◆ DecalsCount

unsigned int DecalBuilder::DecalsCount

◆ field_30C010

float DecalBuilder::field_30C010 = 0

◆ field_30C014

float DecalBuilder::field_30C014 = 0

◆ field_30C018

float DecalBuilder::field_30C018 = 0

◆ field_30C01C

float DecalBuilder::field_30C01C = 0

◆ field_30C020

float DecalBuilder::field_30C020 = 0

◆ field_30C024

float DecalBuilder::field_30C024 = 0

◆ field_30C028

float DecalBuilder::field_30C028 = 0

◆ field_30C02C

float DecalBuilder::field_30C02C = 0

◆ field_30C034

float DecalBuilder::field_30C034 = 0

◆ flt_30C030

float DecalBuilder::flt_30C030 = 0

◆ uNumSplatsThisFace

int DecalBuilder::uNumSplatsThisFace = 0

◆ WhichSplatsOnThisFace

std::array<int, 1024> DecalBuilder::WhichSplatsOnThisFace = {{}}

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