DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
texture_t Struct Reference

#include <model_shared.h>

+ Collaboration diagram for texture_t:

Data Fields

struct texture_s * anim_frames [2][10]
 
int anim_total [2]
 
int animated
 
struct rtexture_s * backgroundbasetexture
 
struct skinframe_s * backgroundcurrentskinframe
 
struct rtexture_s * backgroundglosstexture
 
struct rtexture_s * backgroundglowtexture
 
struct rtexture_s * backgroundnmaptexture
 
texture_shaderpass_tbackgroundshaderpass
 
float basealpha
 
int basematerialflags
 
struct rtexture_s * basetexture
 
float biaspolygonfactor
 
float biaspolygonoffset
 
int camera_entity
 
qbool colormapping
 
float currentalpha
 
matrix4x4_t currentbackgroundtexmatrix
 
int currentblendfunc [2]
 
struct texture_s * currentframe
 
int currentmaterialflags
 
struct skinframe_s * currentskinframe
 
matrix4x4_t currenttexmatrix
 
int customblendfunc [2]
 
q3shaderinfo_deform_t deforms [Q3MAXDEFORMS]
 
unsigned char endpostshaderpass
 
unsigned char endpreshaderpass
 
struct rtexture_s * fogtexture
 
struct rtexture_s * glosstexture
 
struct rtexture_s * glowtexture
 
unsigned int height
 
texture_shaderpass_tmaterialshaderpass
 
int mesh_defaultmaterialflags
 
int mesh_defaulttexflags
 
int mesh_drawflag
 
char name [64]
 
struct rtexture_s * nmaptexture
 
float offsetbias
 
dpoffsetmapping_technique_t offsetmapping
 
float offsetscale
 
struct rtexture_s * pantstexture
 
int q2contents
 
int q2flags
 
int q2value
 
float r_water_wateralpha
 
float r_water_waterscroll [2]
 
vec4_t reflectcolor4f
 
struct rtexture_s * reflectcubetexture
 
float reflectfactor
 
struct rtexture_s * reflectmasktexture
 
float reflectmax
 
float reflectmin
 
vec4_t refractcolor4f
 
float refractfactor
 
float refractive_index
 
float render_colormap_pants [3]
 
float render_colormap_shirt [3]
 
float render_glowmod [3]
 
float render_lightmap_ambient [3]
 
float render_lightmap_diffuse [3]
 
float render_lightmap_specular [3]
 
float render_modellight_ambient [3]
 
float render_modellight_diffuse [3]
 
float render_modellight_lightdir_local [3]
 
float render_modellight_lightdir_world [3]
 
float render_modellight_specular [3]
 
float render_rtlight_diffuse [3]
 
float render_rtlight_specular [3]
 
float rtlightambient
 
texture_shaderpass_tshaderpasses [Q3SHADER_MAXLAYERS]
 
struct rtexture_s * shirttexture
 
struct texture_s * skynoshadowtexture
 this points to a variant of the sky texture that has MATERIALFLAG_NOSHADOW, for the e1m5 logo shadow trick.
 
float specularpower
 
float specularpowermod
 
float specularscalemod
 
unsigned char startpostshaderpass
 
unsigned char startpreshaderpass
 
int supercontents
 
int surfaceflags
 
dptransparentsortcategory_t transparentsort
 
voidupdate_lastrenderentity
 
int update_lastrenderframe
 
unsigned int width
 

Detailed Description

Definition at line 187 of file model_shared.h.

Field Documentation

◆ anim_frames

struct texture_s* texture_t::anim_frames[2][10]

◆ anim_total

int texture_t::anim_total[2]

◆ animated

int texture_t::animated

◆ backgroundbasetexture

struct rtexture_s* texture_t::backgroundbasetexture

Definition at line 261 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ backgroundcurrentskinframe

struct skinframe_s* texture_t::backgroundcurrentskinframe

Definition at line 213 of file model_shared.h.

Referenced by R_GetCurrentTexture().

◆ backgroundglosstexture

struct rtexture_s* texture_t::backgroundglosstexture

Definition at line 263 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ backgroundglowtexture

struct rtexture_s* texture_t::backgroundglowtexture

Definition at line 264 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ backgroundnmaptexture

struct rtexture_s* texture_t::backgroundnmaptexture

Definition at line 262 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ backgroundshaderpass

texture_shaderpass_t* texture_t::backgroundshaderpass

Definition at line 245 of file model_shared.h.

Referenced by R_GetCurrentTexture().

◆ basealpha

float texture_t::basealpha

◆ basematerialflags

◆ basetexture

struct rtexture_s* texture_t::basetexture

Definition at line 252 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ biaspolygonfactor

float texture_t::biaspolygonfactor

Definition at line 207 of file model_shared.h.

Referenced by RSurf_SetupDepthAndCulling().

◆ biaspolygonoffset

float texture_t::biaspolygonoffset

Definition at line 208 of file model_shared.h.

Referenced by RSurf_SetupDepthAndCulling().

◆ camera_entity

int texture_t::camera_entity

◆ colormapping

qbool texture_t::colormapping

Definition at line 251 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ currentalpha

float texture_t::currentalpha

◆ currentbackgroundtexmatrix

matrix4x4_t texture_t::currentbackgroundtexmatrix

Definition at line 239 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ currentblendfunc

int texture_t::currentblendfunc[2]

Definition at line 234 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ currentframe

◆ currentmaterialflags

◆ currentskinframe

◆ currenttexmatrix

matrix4x4_t texture_t::currenttexmatrix

Definition at line 238 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ customblendfunc

int texture_t::customblendfunc[2]

Definition at line 291 of file model_shared.h.

Referenced by Mod_Mesh_GetTexture(), and R_GetCurrentTexture().

◆ deforms

q3shaderinfo_deform_t texture_t::deforms[Q3MAXDEFORMS]

Definition at line 242 of file model_shared.h.

Referenced by RSurf_PrepareVerticesForBatch().

◆ endpostshaderpass

unsigned char texture_t::endpostshaderpass

Definition at line 249 of file model_shared.h.

◆ endpreshaderpass

unsigned char texture_t::endpreshaderpass

Definition at line 247 of file model_shared.h.

◆ fogtexture

struct rtexture_s* texture_t::fogtexture

Definition at line 258 of file model_shared.h.

Referenced by R_GetCurrentTexture().

◆ glosstexture

struct rtexture_s* texture_t::glosstexture

Definition at line 256 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ glowtexture

struct rtexture_s* texture_t::glowtexture

Definition at line 257 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ height

unsigned int texture_t::height

◆ materialshaderpass

◆ mesh_defaultmaterialflags

int texture_t::mesh_defaultmaterialflags

Definition at line 338 of file model_shared.h.

Referenced by Mod_Mesh_GetTexture().

◆ mesh_defaulttexflags

int texture_t::mesh_defaulttexflags

Definition at line 337 of file model_shared.h.

Referenced by Mod_Mesh_GetTexture().

◆ mesh_drawflag

int texture_t::mesh_drawflag

Definition at line 336 of file model_shared.h.

Referenced by Mod_Mesh_GetTexture().

◆ name

◆ nmaptexture

struct rtexture_s* texture_t::nmaptexture

Definition at line 255 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ offsetbias

float texture_t::offsetbias

Definition at line 323 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ offsetmapping

dpoffsetmapping_technique_t texture_t::offsetmapping

Definition at line 321 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ offsetscale

float texture_t::offsetscale

Definition at line 322 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ pantstexture

struct rtexture_s* texture_t::pantstexture

◆ q2contents

int texture_t::q2contents

Definition at line 302 of file model_shared.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ q2flags

int texture_t::q2flags

Definition at line 300 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadFaces(), Mod_Q2BSP_LoadTexinfo(), and Mod_VBSP_LoadFaces().

◆ q2value

int texture_t::q2value

Definition at line 301 of file model_shared.h.

Referenced by Mod_Q2BSP_LoadTexinfo().

◆ r_water_wateralpha

float texture_t::r_water_wateralpha

Definition at line 315 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ r_water_waterscroll

float texture_t::r_water_waterscroll[2]

Definition at line 316 of file model_shared.h.

Referenced by R_SetupShader_Surface().

◆ reflectcolor4f

vec4_t texture_t::reflectcolor4f

Definition at line 314 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ reflectcubetexture

struct rtexture_s* texture_t::reflectcubetexture

Definition at line 260 of file model_shared.h.

Referenced by R_SetupShader_Surface().

◆ reflectfactor

float texture_t::reflectfactor

Definition at line 313 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ reflectmasktexture

struct rtexture_s* texture_t::reflectmasktexture

Definition at line 259 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ reflectmax

float texture_t::reflectmax

Definition at line 310 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ reflectmin

float texture_t::reflectmin

Definition at line 309 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ refractcolor4f

vec4_t texture_t::refractcolor4f

Definition at line 312 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ refractfactor

float texture_t::refractfactor

Definition at line 311 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_SetupShader_Surface().

◆ refractive_index

float texture_t::refractive_index

Definition at line 317 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures().

◆ render_colormap_pants

float texture_t::render_colormap_pants[3]

◆ render_colormap_shirt

float texture_t::render_colormap_shirt[3]

◆ render_glowmod

float texture_t::render_glowmod[3]

Definition at line 271 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ render_lightmap_ambient

float texture_t::render_lightmap_ambient[3]

Definition at line 279 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ render_lightmap_diffuse

float texture_t::render_lightmap_diffuse[3]

Definition at line 280 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ render_lightmap_specular

float texture_t::render_lightmap_specular[3]

Definition at line 281 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ render_modellight_ambient

float texture_t::render_modellight_ambient[3]

Definition at line 273 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ render_modellight_diffuse

float texture_t::render_modellight_diffuse[3]

Definition at line 274 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ render_modellight_lightdir_local

float texture_t::render_modellight_lightdir_local[3]

Definition at line 276 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ render_modellight_lightdir_world

float texture_t::render_modellight_lightdir_world[3]

Definition at line 275 of file model_shared.h.

Referenced by R_GetCurrentTexture().

◆ render_modellight_specular

float texture_t::render_modellight_specular[3]

Definition at line 277 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ render_rtlight_diffuse

float texture_t::render_rtlight_diffuse[3]

◆ render_rtlight_specular

float texture_t::render_rtlight_specular[3]

◆ rtlightambient

float texture_t::rtlightambient

Definition at line 333 of file model_shared.h.

Referenced by R_Shadow_RenderLighting().

◆ shaderpasses

texture_shaderpass_t* texture_t::shaderpasses[Q3SHADER_MAXLAYERS]

Definition at line 243 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures().

◆ shirttexture

struct rtexture_s* texture_t::shirttexture

◆ skynoshadowtexture

struct texture_s* texture_t::skynoshadowtexture

this points to a variant of the sky texture that has MATERIALFLAG_NOSHADOW, for the e1m5 logo shadow trick.

Definition at line 306 of file model_shared.h.

Referenced by Mod_Q1BSP_AssignNoShadowSkySurfaces(), and Mod_Q1BSP_LoadTextures().

◆ specularpower

float texture_t::specularpower

Definition at line 265 of file model_shared.h.

Referenced by R_GetCurrentTexture(), and R_SetupShader_Surface().

◆ specularpowermod

float texture_t::specularpowermod

Definition at line 330 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_GetCurrentTexture().

◆ specularscalemod

float texture_t::specularscalemod

Definition at line 329 of file model_shared.h.

Referenced by Mod_Q1BSP_LoadTextures(), and R_GetCurrentTexture().

◆ startpostshaderpass

unsigned char texture_t::startpostshaderpass

Definition at line 248 of file model_shared.h.

◆ startpreshaderpass

unsigned char texture_t::startpreshaderpass

Definition at line 246 of file model_shared.h.

◆ supercontents

◆ surfaceflags

◆ transparentsort

◆ update_lastrenderentity

void* texture_t::update_lastrenderentity

Definition at line 226 of file model_shared.h.

Referenced by R_GetCurrentTexture().

◆ update_lastrenderframe

int texture_t::update_lastrenderframe

Definition at line 225 of file model_shared.h.

Referenced by R_GetCurrentTexture().

◆ width

unsigned int texture_t::width

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