Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
SilhouetteRenderer.cpp File Reference
#include "precompiled.h"
#include "SilhouetteRenderer.h"
#include "graphics/Camera.h"
#include "graphics/HFTracer.h"
#include "graphics/Model.h"
#include "graphics/Patch.h"
#include "graphics/ShaderManager.h"
#include "maths/MathUtil.h"
#include "ps/CStrInternStatic.h"
#include "ps/Profile.h"
#include "renderer/DebugRenderer.h"
#include "renderer/Renderer.h"
#include "renderer/Scene.h"
#include <cfloat>
Include dependency graph for SilhouetteRenderer.cpp:

Classes

struct  Occluder
 
struct  Caster
 
struct  ActiveList
 

Typedefs

typedef uint32_t Entry
 

Enumerations

enum  { EDGE_IN , EDGE_OUT , POINT }
 

Functions

static Entry EntryCreate (int type, u16 id, u16 x)
 
static int EntryGetId (Entry e)
 
static int EntryGetType (Entry e)
 
static void ComputeScreenBounds (Occluder &occluder, const CBoundingBoxAligned &bounds, CMatrix3D &proj)
 
static void ComputeScreenPos (Caster &caster, const CVector3D &pos, CMatrix3D &proj)
 

Variables

int g_xres
 
int g_yres
 
static const bool g_DisablePreciseIntersections = false
 
static const u16 g_MaxCoord = 1 << 14
 
static const u16 g_HalfMaxCoord = g_MaxCoord / 2
 

Typedef Documentation

◆ Entry

typedef uint32_t Entry

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
EDGE_IN 
EDGE_OUT 
POINT 

Function Documentation

◆ ComputeScreenBounds()

static void ComputeScreenBounds ( Occluder occluder,
const CBoundingBoxAligned bounds,
CMatrix3D proj 
)
static

◆ ComputeScreenPos()

static void ComputeScreenPos ( Caster caster,
const CVector3D pos,
CMatrix3D proj 
)
static

◆ EntryCreate()

static Entry EntryCreate ( int  type,
u16  id,
u16  x 
)
static

◆ EntryGetId()

static int EntryGetId ( Entry  e)
static

◆ EntryGetType()

static int EntryGetType ( Entry  e)
static

Variable Documentation

◆ g_DisablePreciseIntersections

const bool g_DisablePreciseIntersections = false
static

◆ g_HalfMaxCoord

const u16 g_HalfMaxCoord = g_MaxCoord / 2
static

◆ g_MaxCoord

const u16 g_MaxCoord = 1 << 14
static

◆ g_xres

int g_xres
extern

◆ g_yres

int g_yres