doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions
tr_shadowbounds.cpp File Reference
#include "../idlib/precompiled.h"
#include "tr_local.h"

Go to the source code of this file.

Classes

struct  MyArray< T, N >
 
struct  poly
 
struct  edge
 
struct  polyhedron
 

Typedefs

typedef MyArray< int, 4 > MyArrayInt
 
typedef MyArray< idVec4, 16 > MyArrayVec4
 
typedef MyArray< poly, 9 > MyArrayPoly
 
typedef MyArray< edge, 15 > MyArrayEdge
 
typedef MyArray< idVec4, 36 > MySegments
 

Functions

MyArrayInt four_ints (int a, int b, int c, int d)
 
idVec3 homogeneous_difference (idVec4 a, idVec4 b)
 
idVec4 compute_homogeneous_plane (idVec4 a, idVec4 b, idVec4 c)
 
polyhedron PolyhedronFromBounds (const idBounds &b)
 
polyhedron make_sv (const polyhedron &oc, idVec4 light)
 
void polyhedron_edges (polyhedron &a, MySegments &e)
 
void clip_segments (const polyhedron &ph, MySegments &is, MySegments &os)
 
idMat4 make_idMat4 (const float *m)
 
idVec3 v4to3 (const idVec4 &v)
 
void draw_polyhedron (const viewDef_t *viewDef, const polyhedron &p, idVec4 color)
 
void draw_segments (const viewDef_t *viewDef, const MySegments &s, idVec4 color)
 
void world_to_hclip (const viewDef_t *viewDef, const idVec4 &global, idVec4 &clip)
 
idScreenRect R_CalcIntersectionScissor (const idRenderLightLocal *lightDef, const idRenderEntityLocal *entityDef, const viewDef_t *viewDef)
 

Typedef Documentation

typedef MyArray<edge, 15> MyArrayEdge

Definition at line 101 of file tr_shadowbounds.cpp.

typedef MyArray<int, 4> MyArrayInt

Definition at line 80 of file tr_shadowbounds.cpp.

typedef MyArray<poly, 9> MyArrayPoly

Definition at line 92 of file tr_shadowbounds.cpp.

typedef MyArray<idVec4, 16> MyArrayVec4

Definition at line 82 of file tr_shadowbounds.cpp.

typedef MyArray<idVec4, 36> MySegments

Definition at line 399 of file tr_shadowbounds.cpp.

Function Documentation

void clip_segments ( const polyhedron ph,
MySegments is,
MySegments os 
)

Definition at line 417 of file tr_shadowbounds.cpp.

idVec4 compute_homogeneous_plane ( idVec4  a,
idVec4  b,
idVec4  c 
)

Definition at line 124 of file tr_shadowbounds.cpp.

void draw_polyhedron ( const viewDef_t viewDef,
const polyhedron p,
idVec4  color 
)

Definition at line 492 of file tr_shadowbounds.cpp.

void draw_segments ( const viewDef_t viewDef,
const MySegments s,
idVec4  color 
)

Definition at line 500 of file tr_shadowbounds.cpp.

MyArrayInt four_ints ( int  a,
int  b,
int  c,
int  d 
)

Definition at line 104 of file tr_shadowbounds.cpp.

idVec3 homogeneous_difference ( idVec4  a,
idVec4  b 
)

Definition at line 114 of file tr_shadowbounds.cpp.

idMat4 make_idMat4 ( const float m)

Definition at line 479 of file tr_shadowbounds.cpp.

polyhedron make_sv ( const polyhedron oc,
idVec4  light 
)

Definition at line 316 of file tr_shadowbounds.cpp.

void polyhedron_edges ( polyhedron a,
MySegments e 
)

Definition at line 402 of file tr_shadowbounds.cpp.

polyhedron PolyhedronFromBounds ( const idBounds b)

Definition at line 257 of file tr_shadowbounds.cpp.

idScreenRect R_CalcIntersectionScissor ( const idRenderLightLocal lightDef,
const idRenderEntityLocal entityDef,
const viewDef_t viewDef 
)

Definition at line 530 of file tr_shadowbounds.cpp.

idVec3 v4to3 ( const idVec4 v)

Definition at line 487 of file tr_shadowbounds.cpp.

void world_to_hclip ( const viewDef_t viewDef,
const idVec4 global,
idVec4 clip 
)

Definition at line 508 of file tr_shadowbounds.cpp.