FTEQW
Documentation of the FTE engine source tree.
ltface.c File Reference

Typedefs

typedef struct mentity_s mentity_t
 
typedef struct llightinfo_s llightinfo_t
 

Functions

void LightShutdown (struct relight_ctx_s *ctx)
 
struct relight_ctx_s * LightStartup (struct relight_ctx_s *ctx, model_t *model, qboolean shadows, qboolean skiplit)
 
void LightReloadEntities (struct relight_ctx_s *ctx, const char *entstring, qboolean ignorestyles)
 
void LightPlane (struct relight_ctx_s *ctx, struct llightinfo_s *l, lightstyleindex_t surf_styles[MAXCPULIGHTMAPS], unsigned int *surf_expsamples, qbyte *surf_rgbsamples, qbyte *surf_deluxesamples, vec4_t surf_plane, vec4_t surf_texplanes[2], vec2_t exactmins, vec2_t exactmaxs, int texmins[2], int texsize[2], float lmscale)
 
void RelightTerminate (model_t *mod)
 
qboolean RelightSetup (model_t *model, size_t lightsamples, qboolean generatelit)
 
const char * RelightGetProgress (float *progress)
 
void RelightThink (void)
 

Variables

const size_t lightthreadctxsize = sizeof(llightinfo_t)
 

Typedef Documentation

◆ llightinfo_t

typedef struct llightinfo_s llightinfo_t

◆ mentity_t

typedef struct mentity_s mentity_t

Function Documentation

◆ LightPlane()

void LightPlane ( struct relight_ctx_s *  ctx,
struct llightinfo_s *  l,
lightstyleindex_t  surf_styles[MAXCPULIGHTMAPS],
unsigned int surf_expsamples,
qbyte surf_rgbsamples,
qbyte surf_deluxesamples,
vec4_t  surf_plane,
vec4_t  surf_texplanes[2],
vec2_t  exactmins,
vec2_t  exactmaxs,
int  texmins[2],
int  texsize[2],
float  lmscale 
)

◆ LightReloadEntities()

void LightReloadEntities ( struct relight_ctx_s *  ctx,
const char *  entstring,
qboolean  ignorestyles 
)

◆ LightShutdown()

void LightShutdown ( struct relight_ctx_s *  ctx)

◆ LightStartup()

struct relight_ctx_s * LightStartup ( struct relight_ctx_s *  ctx,
model_t model,
qboolean  shadows,
qboolean  skiplit 
)

◆ RelightGetProgress()

const char * RelightGetProgress ( float *  progress)

◆ RelightSetup()

qboolean RelightSetup ( model_t model,
size_t  lightsamples,
qboolean  generatelit 
)

◆ RelightTerminate()

void RelightTerminate ( model_t mod)

◆ RelightThink()

void RelightThink ( void  )

Variable Documentation

◆ lightthreadctxsize

const size_t lightthreadctxsize = sizeof(llightinfo_t)