Nuclide
Software Development Kit for id Tech
materials.h File Reference

Go to the source code of this file.

Macros

#define SURF_NODAMAGE   0x1i
 never give falling damage More...
 
#define SURF_SLICK   0x2i
 effects game physics More...
 
#define SURF_SKY   0x4i
 lighting from environment map More...
 
#define SURF_LADDER   0x8i
 climb this surface More...
 
#define SURF_NOIMPACT   0x10i
 don't make missile explosions More...
 
#define SURF_NOMARKS   0x20i
 don't leave missile marks More...
 
#define SURF_Q3FLESH   0x40i
 make flesh sounds and effects More...
 
#define SURF_NODRAW   0x80i
 don't generate a drawsurface at all More...
 
#define SURF_HINT   0x100i
 make a primary bsp splitter More...
 
#define SURF_SKIP   0x200i
 completely ignore, allowing non-closed brushes More...
 
#define SURF_NOLIGHTMAP   0x400i
 surface doesn't need a lightmap More...
 
#define SURF_POINTLIGHT   0x800i
 generate lighting info at vertexes More...
 
#define SURF_METALSTEPS   0x1000i
 clanking footsteps More...
 
#define SURF_NOSTEPS   0x2000i
 no footstep sounds More...
 
#define SURF_NONSOLID   0x4000i
 don't collide against curves with this set More...
 
#define SURF_LIGHTFILTER   0x8000i
 act as a light filter during q3map -light More...
 
#define SURF_ALPHASHADOW   0x10000i
 do per-pixel light shadow casting in q3map More...
 
#define SURF_NODLIGHT   0x20000i
 don't dlight even if solid (solid lava, skies) More...
 
#define SURF_DUST   0x40000i
 leave a dust trail when walking on this surface More...
 

Enumerations

enum  materialType_t {
  GSMATERIAL_GLASS , GSMATERIAL_WOOD , GSMATERIAL_METAL , GSMATERIAL_FLESH ,
  GSMATERIAL_CINDER , GSMATERIAL_TILE , GSMATERIAL_COMPUTER , GSMATERIAL_GLASS_UNBREAKABLE ,
  GSMATERIAL_ROCK , GSMATERIAL_NONE , GSMATERIAL_GLASS , GSMATERIAL_WOOD ,
  GSMATERIAL_METAL , GSMATERIAL_FLESH , GSMATERIAL_CINDER , GSMATERIAL_TILE ,
  GSMATERIAL_COMPUTER , GSMATERIAL_GLASS_UNBREAKABLE , GSMATERIAL_ROCK , GSMATERIAL_NONE
}
 

Functions

string Materials_SurfDataForTexture (string)
 Returns the SurfData assigned to the texture. More...
 
void Materials_Init (void)
 Initializes the material -> surfdata look-up table. More...
 

Variables

const int CONTENTBIT_NONE = 0x00000000i
 
const int CONTENTBIT_SOLID = 0x00000001i
 
const int CONTENTBIT_UNUSED1 = 0x00000002i
 
const int CONTENTBIT_UNUSED2 = 0x00000004i
 
const int CONTENTBIT_LAVA = 0x00000008i
 
const int CONTENTBIT_SLIME = 0x00000010i
 
const int CONTENTBIT_WATER = 0x00000020i
 
const int CONTENTBIT_UNUSED3 = 0x00000040i
 
const int CONTENTBIT_GRENADECLIP = 0x00000080i
 
const int CONTENTBIT_UNUSED4 = 0x00000100i
 
const int CONTENTBIT_UNUSED5 = 0x00000200i
 
const int CONTENTBIT_UNUSED6 = 0x00000400i
 
const int CONTENTBIT_UNUSED7 = 0x00000800i
 
const int CONTENTBIT_UNUSED8 = 0x00001000i
 
const int CONTENTBIT_UNUSED9 = 0x00002000i
 
const int CONTENTBIT_FTELADDER = 0x00004000i
 
const int CONTENTBIT_VEHICLECLIP = 0x00008000i
 
const int CONTENTBIT_PLAYERCLIP = 0x00010000i
 
const int CONTENTBIT_MONSTERCLIP = 0x00020000i
 
const int CONTENTBIT_PROJECTILE = 0x00040000i
 
const int CONTENTBIT_UNUSED12 = 0x00080000i
 
const int CONTENTBIT_CLUSTERPORTAL = 0x00100000i
 
const int CONTENTBIT_DONOTENTER = 0x00200000i
 
const int CONTENTBIT_BOTCLIP = 0x00400000i
 
const int CONTENTBIT_MOVER = 0x00800000i
 
const int CONTENTBIT_UNUSED13 = 0x01000000i
 
const int CONTENTBIT_BODY = 0x02000000i
 
const int CONTENTBIT_CORPSE = 0x04000000i
 
const int CONTENTBIT_UNUSED14 = 0x08000000i
 
const int CONTENTBIT_UNUSED15 = 0x10000000i
 
const int CONTENTBIT_Q2LADDER = 0x20000000i
 
const int CONTENTBIT_UNUSED16 = 0x40000000i
 
const int CONTENTBIT_SKY = 0x80000000i
 
const int CONTENTBITS_MONSTER = CONTENTBIT_SOLID|CONTENTBIT_BODY|CONTENTBIT_MONSTERCLIP|CONTENTBIT_BOTCLIP
 

Macro Definition Documentation

◆ SURF_ALPHASHADOW

#define SURF_ALPHASHADOW   0x10000i

do per-pixel light shadow casting in q3map

◆ SURF_DUST

#define SURF_DUST   0x40000i

leave a dust trail when walking on this surface

◆ SURF_HINT

#define SURF_HINT   0x100i

make a primary bsp splitter

◆ SURF_LADDER

#define SURF_LADDER   0x8i

climb this surface

◆ SURF_LIGHTFILTER

#define SURF_LIGHTFILTER   0x8000i

act as a light filter during q3map -light

◆ SURF_METALSTEPS

#define SURF_METALSTEPS   0x1000i

clanking footsteps

◆ SURF_NODAMAGE

#define SURF_NODAMAGE   0x1i

never give falling damage

◆ SURF_NODLIGHT

#define SURF_NODLIGHT   0x20000i

don't dlight even if solid (solid lava, skies)

◆ SURF_NODRAW

#define SURF_NODRAW   0x80i

don't generate a drawsurface at all

◆ SURF_NOIMPACT

#define SURF_NOIMPACT   0x10i

don't make missile explosions

◆ SURF_NOLIGHTMAP

#define SURF_NOLIGHTMAP   0x400i

surface doesn't need a lightmap

◆ SURF_NOMARKS

#define SURF_NOMARKS   0x20i

don't leave missile marks

◆ SURF_NONSOLID

#define SURF_NONSOLID   0x4000i

don't collide against curves with this set

◆ SURF_NOSTEPS

#define SURF_NOSTEPS   0x2000i

no footstep sounds

◆ SURF_POINTLIGHT

#define SURF_POINTLIGHT   0x800i

generate lighting info at vertexes

◆ SURF_Q3FLESH

#define SURF_Q3FLESH   0x40i

make flesh sounds and effects

◆ SURF_SKIP

#define SURF_SKIP   0x200i

completely ignore, allowing non-closed brushes

◆ SURF_SKY

#define SURF_SKY   0x4i

lighting from environment map

◆ SURF_SLICK

#define SURF_SLICK   0x2i

effects game physics

Enumeration Type Documentation

◆ materialType_t

Enumerator
GSMATERIAL_GLASS 
GSMATERIAL_WOOD 
GSMATERIAL_METAL 
GSMATERIAL_FLESH 
GSMATERIAL_CINDER 
GSMATERIAL_TILE 
GSMATERIAL_COMPUTER 
GSMATERIAL_GLASS_UNBREAKABLE 
GSMATERIAL_ROCK 
GSMATERIAL_NONE 
GSMATERIAL_GLASS 
GSMATERIAL_WOOD 
GSMATERIAL_METAL 
GSMATERIAL_FLESH 
GSMATERIAL_CINDER 
GSMATERIAL_TILE 
GSMATERIAL_COMPUTER 
GSMATERIAL_GLASS_UNBREAKABLE 
GSMATERIAL_ROCK 
GSMATERIAL_NONE 

Variable Documentation

◆ CONTENTBIT_BODY

const int CONTENTBIT_BODY = 0x02000000i

◆ CONTENTBIT_BOTCLIP

const int CONTENTBIT_BOTCLIP = 0x00400000i

◆ CONTENTBIT_CLUSTERPORTAL

const int CONTENTBIT_CLUSTERPORTAL = 0x00100000i

◆ CONTENTBIT_CORPSE

const int CONTENTBIT_CORPSE = 0x04000000i

◆ CONTENTBIT_DONOTENTER

const int CONTENTBIT_DONOTENTER = 0x00200000i

◆ CONTENTBIT_FTELADDER

const int CONTENTBIT_FTELADDER = 0x00004000i

◆ CONTENTBIT_GRENADECLIP

const int CONTENTBIT_GRENADECLIP = 0x00000080i

◆ CONTENTBIT_LAVA

const int CONTENTBIT_LAVA = 0x00000008i

◆ CONTENTBIT_MONSTERCLIP

const int CONTENTBIT_MONSTERCLIP = 0x00020000i

◆ CONTENTBIT_MOVER

const int CONTENTBIT_MOVER = 0x00800000i

◆ CONTENTBIT_NONE

const int CONTENTBIT_NONE = 0x00000000i

◆ CONTENTBIT_PLAYERCLIP

const int CONTENTBIT_PLAYERCLIP = 0x00010000i

◆ CONTENTBIT_PROJECTILE

const int CONTENTBIT_PROJECTILE = 0x00040000i

◆ CONTENTBIT_Q2LADDER

const int CONTENTBIT_Q2LADDER = 0x20000000i

◆ CONTENTBIT_SKY

const int CONTENTBIT_SKY = 0x80000000i

◆ CONTENTBIT_SLIME

const int CONTENTBIT_SLIME = 0x00000010i

◆ CONTENTBIT_SOLID

const int CONTENTBIT_SOLID = 0x00000001i

◆ CONTENTBIT_UNUSED1

const int CONTENTBIT_UNUSED1 = 0x00000002i

◆ CONTENTBIT_UNUSED12

const int CONTENTBIT_UNUSED12 = 0x00080000i

◆ CONTENTBIT_UNUSED13

const int CONTENTBIT_UNUSED13 = 0x01000000i

◆ CONTENTBIT_UNUSED14

const int CONTENTBIT_UNUSED14 = 0x08000000i

◆ CONTENTBIT_UNUSED15

const int CONTENTBIT_UNUSED15 = 0x10000000i

◆ CONTENTBIT_UNUSED16

const int CONTENTBIT_UNUSED16 = 0x40000000i

◆ CONTENTBIT_UNUSED2

const int CONTENTBIT_UNUSED2 = 0x00000004i

◆ CONTENTBIT_UNUSED3

const int CONTENTBIT_UNUSED3 = 0x00000040i

◆ CONTENTBIT_UNUSED4

const int CONTENTBIT_UNUSED4 = 0x00000100i

◆ CONTENTBIT_UNUSED5

const int CONTENTBIT_UNUSED5 = 0x00000200i

◆ CONTENTBIT_UNUSED6

const int CONTENTBIT_UNUSED6 = 0x00000400i

◆ CONTENTBIT_UNUSED7

const int CONTENTBIT_UNUSED7 = 0x00000800i

◆ CONTENTBIT_UNUSED8

const int CONTENTBIT_UNUSED8 = 0x00001000i

◆ CONTENTBIT_UNUSED9

const int CONTENTBIT_UNUSED9 = 0x00002000i

◆ CONTENTBIT_VEHICLECLIP

const int CONTENTBIT_VEHICLECLIP = 0x00008000i

◆ CONTENTBIT_WATER

const int CONTENTBIT_WATER = 0x00000020i

◆ CONTENTBITS_MONSTER