UFO: Alien Invasion
entity_t Struct Reference

#include <r_entity.h>

Collaboration diagram for entity_t:
Collaboration graph

Public Member Functions

 entity_s (int flag=RF_NONE)
 
void setScale (const vec3_t scale_)
 
vec_t getScaleX () const
 

Data Fields

struct model_s * model
 
vec3_t angles
 
vec3_t scale
 
vec3_t color
 
vec3_t origin
 
vec3_t oldorigin
 
AABB eBox
 
struct entity_stagent
 
const char * tagname
 
int skinnum
 
float alpha
 
int flags
 
float distanceFromViewOrigin
 
bool isOriginBrushModel
 
animState_t as
 
transform_t transform
 
vec4_t shell
 
const image_ttexture
 
lighting_tlighting
 
struct entity_snext
 
int firstbrush
 
int numbrushes
 
epair_tepairs
 
bool skip
 

Detailed Description

See also
epair_t

Definition at line 96 of file r_entity.h.

Member Function Documentation

◆ entity_s()

entity_t::entity_s ( int  flag = RF_NONE)
inline

Definition at line 130 of file r_entity.h.

References scale, Vector4Clear, and VectorClear.

◆ getScaleX()

vec_t entity_t::getScaleX ( ) const
inline

Definition at line 159 of file r_entity.h.

References scale.

Referenced by R_TransformForEntity().

◆ setScale()

void entity_t::setScale ( const vec3_t  scale_)
inline

Definition at line 154 of file r_entity.h.

References scale, and VectorCopy.

Referenced by LM_AddToSceneOrder().

Field Documentation

◆ alpha

◆ angles

◆ as

◆ color

◆ distanceFromViewOrigin

float entity_t::distanceFromViewOrigin

Definition at line 113 of file r_entity.h.

Referenced by R_CalcTransform(), and R_MergeSortMerge().

◆ eBox

AABB entity_t::eBox

◆ epairs

epair_t* entity_t::epairs

the entity parameters (key, value)

Definition at line 50 of file bspfile.h.

Referenced by CheckEntities(), EpairCheckForDuplicate(), ParseEntity(), ParseMapEntity(), ProcessSubModel(), SetKeyValue(), UnparseEntities(), ValueForKey(), and WriteMapFile().

◆ firstbrush

int entity_t::firstbrush

the index of the first brush in mapbrushes in case of a bmodel

Definition at line 48 of file bspfile.h.

Referenced by AdjustBrushesForOrigin(), BeginModel(), Check_ExtraBrushesForWorldspawn(), MoveBrushesToWorld(), ParseBrush(), ParseMapEntity(), ProcessSubModel(), ProcessWorldModel(), and WriteMapFile().

◆ flags

◆ isOriginBrushModel

bool entity_t::isOriginBrushModel

true for bmodels that have an origin set

Definition at line 115 of file r_entity.h.

Referenced by LE_AddToScene(), and R_CullBspModel().

◆ lighting

lighting_t* entity_t::lighting

cached static light source information

Definition at line 125 of file r_entity.h.

Referenced by LE_AddToScene(), LM_AddToSceneOrder(), R_DrawAliasModel(), R_DrawMeshShadow(), R_RotateForMeshShadow(), R_UpdateLightList(), and R_UpdateShadowOrigin().

◆ model

◆ next

struct entity_s* entity_t::next

◆ numbrushes

◆ oldorigin

◆ origin

◆ scale

vec3_t entity_t::scale

Definition at line 99 of file r_entity.h.

Referenced by R_CullMeshModel(), and R_DrawAliasModel().

◆ shell

vec4_t entity_t::shell

shell color

Definition at line 121 of file r_entity.h.

Referenced by R_DrawAliasModel(), and R_DrawAliasModelBuffer().

◆ skinnum

◆ skip

bool entity_t::skip

skip this entity in case the check functions have found an error and it should not get written back into the fixed map file

Definition at line 51 of file bspfile.h.

Referenced by Check_EntityWithBrushes(), and WriteMapFile().

◆ tagent

struct entity_s* entity_t::tagent

pointer to the parent entity

Definition at line 106 of file r_entity.h.

Referenced by CL_AddActor(), CL_AddUGV(), LM_AddToSceneOrder(), R_CalcTransform(), R_CullMeshModel(), R_UpdateLightList(), and SEQ_Render3D().

◆ tagname

const char* entity_t::tagname

name of the tag

Definition at line 107 of file r_entity.h.

Referenced by CL_AddActor(), CL_AddUGV(), LM_AddToSceneOrder(), R_CalcTransform(), and SEQ_Render3D().

◆ texture

const image_t* entity_t::texture

Definition at line 123 of file r_entity.h.

Referenced by CL_AddActor(), LE_BrushModelAction(), R_DrawBox(), and R_DrawEntityEffects().

◆ transform

transform_t entity_t::transform

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