doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
idRenderSystemLocal Class Reference

#include <tr_local.h>

Inheritance diagram for idRenderSystemLocal:
idRenderSystem

Public Member Functions

virtual void Init (void)
 
virtual void Shutdown (void)
 
virtual void InitOpenGL (void)
 
virtual void ShutdownOpenGL (void)
 
virtual bool IsOpenGLRunning (void) const
 
virtual bool IsFullScreen (void) const
 
virtual int GetScreenWidth (void) const
 
virtual int GetScreenHeight (void) const
 
virtual idRenderWorldAllocRenderWorld (void)
 
virtual void FreeRenderWorld (idRenderWorld *rw)
 
virtual void BeginLevelLoad (void)
 
virtual void EndLevelLoad (void)
 
virtual bool RegisterFont (const char *fontName, fontInfoEx_t &font)
 
virtual void SetColor (const idVec4 &rgba)
 
virtual void SetColor4 (float r, float g, float b, float a)
 
virtual void DrawStretchPic (const idDrawVert *verts, const glIndex_t *indexes, int vertCount, int indexCount, const idMaterial *material, bool clip=true, float x=0.0f, float y=0.0f, float w=640.0f, float h=0.0f)
 
virtual void DrawStretchPic (float x, float y, float w, float h, float s1, float t1, float s2, float t2, const idMaterial *material)
 
virtual void DrawStretchTri (idVec2 p1, idVec2 p2, idVec2 p3, idVec2 t1, idVec2 t2, idVec2 t3, const idMaterial *material)
 
virtual void GlobalToNormalizedDeviceCoordinates (const idVec3 &global, idVec3 &ndc)
 
virtual void GetGLSettings (int &width, int &height)
 
virtual void PrintMemInfo (MemInfo_t *mi)
 
virtual void DrawSmallChar (int x, int y, int ch, const idMaterial *material)
 
virtual void DrawSmallStringExt (int x, int y, const char *string, const idVec4 &setColor, bool forceColor, const idMaterial *material)
 
virtual void DrawBigChar (int x, int y, int ch, const idMaterial *material)
 
virtual void DrawBigStringExt (int x, int y, const char *string, const idVec4 &setColor, bool forceColor, const idMaterial *material)
 
virtual void WriteDemoPics ()
 
virtual void DrawDemoPics ()
 
virtual void BeginFrame (int windowWidth, int windowHeight)
 
virtual void EndFrame (int *frontEndMsec, int *backEndMsec)
 
virtual void TakeScreenshot (int width, int height, const char *fileName, int downSample, renderView_t *ref)
 
virtual void CropRenderSize (int width, int height, bool makePowerOfTwo=false, bool forceDimensions=false)
 
virtual void CaptureRenderToImage (const char *imageName)
 
virtual void CaptureRenderToFile (const char *fileName, bool fixAlpha)
 
virtual void UnCrop ()
 
virtual void GetCardCaps (bool &oldCard, bool &nv10or20)
 
virtual bool UploadImage (const char *imageName, const byte *data, int width, int height)
 
 idRenderSystemLocal (void)
 
 ~idRenderSystemLocal (void)
 
void Clear (void)
 
void SetBackEndRenderer ()
 
void RenderViewToViewport (const renderView_t *renderView, idScreenRect *viewport)
 
- Public Member Functions inherited from idRenderSystem
virtual ~idRenderSystem ()
 

Public Attributes

bool registered
 
bool takingScreenshot
 
int frameCount
 
int viewCount
 
int staticAllocCount
 
float frameShaderTime
 
int viewportOffset [2]
 
int tiledViewport [2]
 
backEndName_t backEndRenderer
 
bool backEndRendererHasVertexPrograms
 
float backEndRendererMaxLight
 
idVec4 ambientLightVector
 
float sortOffset
 
idList< idRenderWorldLocal * > worlds
 
idRenderWorldLocalprimaryWorld
 
renderView_t primaryRenderView
 
viewDef_tprimaryView
 
const idMaterialdefaultMaterial
 
idImagetestImage
 
idCinematictestVideo
 
float testVideoStartTime
 
idImageambientCubeImage
 
viewDef_tviewDef
 
performanceCounters_t pc
 
drawSurfsCommand_t lockSurfacesCmd
 
viewEntity_t identitySpace
 
FILE * logFile
 
int stencilIncr
 
int stencilDecr
 
renderCrop_t renderCrops [MAX_RENDER_CROPS]
 
int currentRenderCrop
 
int guiRecursionLevel
 
class idGuiModelguiModel
 
class idGuiModeldemoGuiModel
 
unsigned short gammaTable [256]
 

Detailed Description

Definition at line 692 of file tr_local.h.

Constructor & Destructor Documentation

idRenderSystemLocal::idRenderSystemLocal ( void  )

Definition at line 293 of file RenderSystem.cpp.

idRenderSystemLocal::~idRenderSystemLocal ( void  )

Definition at line 302 of file RenderSystem.cpp.

Member Function Documentation

idRenderWorld * idRenderSystemLocal::AllocRenderWorld ( void  )
virtual

Implements idRenderSystem.

Definition at line 992 of file RenderSystem.cpp.

void idRenderSystemLocal::BeginFrame ( int  windowWidth,
int  windowHeight 
)
virtual

Implements idRenderSystem.

Definition at line 627 of file RenderSystem.cpp.

void idRenderSystemLocal::BeginLevelLoad ( void  )
virtual

Implements idRenderSystem.

Definition at line 2225 of file RenderSystem_init.cpp.

void idRenderSystemLocal::CaptureRenderToFile ( const char *  fileName,
bool  fixAlpha 
)
virtual

Implements idRenderSystem.

Definition at line 952 of file RenderSystem.cpp.

void idRenderSystemLocal::CaptureRenderToImage ( const char *  imageName)
virtual

Implements idRenderSystem.

Definition at line 912 of file RenderSystem.cpp.

void idRenderSystemLocal::Clear ( void  )

Definition at line 2080 of file RenderSystem_init.cpp.

void idRenderSystemLocal::CropRenderSize ( int  width,
int  height,
bool  makePowerOfTwo = false,
bool  forceDimensions = false 
)
virtual

Implements idRenderSystem.

Definition at line 802 of file RenderSystem.cpp.

void idRenderSystemLocal::DrawBigChar ( int  x,
int  y,
int  ch,
const idMaterial material 
)
virtual

Implements idRenderSystem.

Definition at line 459 of file RenderSystem.cpp.

void idRenderSystemLocal::DrawBigStringExt ( int  x,
int  y,
const char *  string,
const idVec4 setColor,
bool  forceColor,
const idMaterial material 
)
virtual

Implements idRenderSystem.

Definition at line 497 of file RenderSystem.cpp.

void idRenderSystemLocal::DrawDemoPics ( )
virtual

Implements idRenderSystem.

Definition at line 697 of file RenderSystem.cpp.

void idRenderSystemLocal::DrawSmallChar ( int  x,
int  y,
int  ch,
const idMaterial material 
)
virtual

Implements idRenderSystem.

Definition at line 386 of file RenderSystem.cpp.

void idRenderSystemLocal::DrawSmallStringExt ( int  x,
int  y,
const char *  string,
const idVec4 setColor,
bool  forceColor,
const idMaterial material 
)
virtual

Implements idRenderSystem.

Definition at line 424 of file RenderSystem.cpp.

void idRenderSystemLocal::DrawStretchPic ( const idDrawVert verts,
const glIndex_t indexes,
int  vertCount,
int  indexCount,
const idMaterial material,
bool  clip = true,
float  x = 0.0f,
float  y = 0.0f,
float  w = 640.0f,
float  h = 0.0f 
)
virtual

Implements idRenderSystem.

Definition at line 332 of file RenderSystem.cpp.

void idRenderSystemLocal::DrawStretchPic ( float  x,
float  y,
float  w,
float  h,
float  s1,
float  t1,
float  s2,
float  t2,
const idMaterial material 
)
virtual

Implements idRenderSystem.

Definition at line 345 of file RenderSystem.cpp.

void idRenderSystemLocal::DrawStretchTri ( idVec2  p1,
idVec2  p2,
idVec2  p3,
idVec2  t1,
idVec2  t2,
idVec2  t3,
const idMaterial material 
)
virtual

Implements idRenderSystem.

Definition at line 356 of file RenderSystem.cpp.

void idRenderSystemLocal::EndFrame ( int frontEndMsec,
int backEndMsec 
)
virtual

Implements idRenderSystem.

Definition at line 708 of file RenderSystem.cpp.

void idRenderSystemLocal::EndLevelLoad ( void  )
virtual

Implements idRenderSystem.

Definition at line 2235 of file RenderSystem_init.cpp.

void idRenderSystemLocal::FreeRenderWorld ( idRenderWorld rw)
virtual

Implements idRenderSystem.

Definition at line 1004 of file RenderSystem.cpp.

void idRenderSystemLocal::GetCardCaps ( bool oldCard,
bool nv10or20 
)
virtual

Implements idRenderSystem.

Definition at line 2320 of file RenderSystem_init.cpp.

void idRenderSystemLocal::GetGLSettings ( int width,
int height 
)
virtual

Implements idRenderSystem.

Definition at line 374 of file RenderSystem.cpp.

int idRenderSystemLocal::GetScreenHeight ( void  ) const
virtual

Implements idRenderSystem.

Definition at line 2311 of file RenderSystem_init.cpp.

int idRenderSystemLocal::GetScreenWidth ( void  ) const
virtual

Implements idRenderSystem.

Definition at line 2302 of file RenderSystem_init.cpp.

void idRenderSystemLocal::GlobalToNormalizedDeviceCoordinates ( const idVec3 global,
idVec3 ndc 
)
virtual

Implements idRenderSystem.

Definition at line 365 of file RenderSystem.cpp.

void idRenderSystemLocal::Init ( void  )
virtual

Implements idRenderSystem.

Definition at line 2123 of file RenderSystem_init.cpp.

void idRenderSystemLocal::InitOpenGL ( void  )
virtual

Implements idRenderSystem.

Definition at line 2248 of file RenderSystem_init.cpp.

bool idRenderSystemLocal::IsFullScreen ( void  ) const
virtual

Implements idRenderSystem.

Definition at line 2293 of file RenderSystem_init.cpp.

bool idRenderSystemLocal::IsOpenGLRunning ( void  ) const
virtual

Implements idRenderSystem.

Definition at line 2281 of file RenderSystem_init.cpp.

void idRenderSystemLocal::PrintMemInfo ( MemInfo_t mi)
virtual

Implements idRenderSystem.

Definition at line 1017 of file RenderSystem.cpp.

bool idRenderSystemLocal::RegisterFont ( const char *  fontName,
fontInfoEx_t font 
)
virtual

Implements idRenderSystem.

Definition at line 283 of file tr_font.cpp.

void idRenderSystemLocal::RenderViewToViewport ( const renderView_t renderView,
idScreenRect viewport 
)

Definition at line 767 of file RenderSystem.cpp.

void idRenderSystemLocal::SetBackEndRenderer ( )

Definition at line 536 of file RenderSystem.cpp.

void idRenderSystemLocal::SetColor ( const idVec4 rgba)
virtual

Implements idRenderSystem.

Definition at line 313 of file RenderSystem.cpp.

void idRenderSystemLocal::SetColor4 ( float  r,
float  g,
float  b,
float  a 
)
virtual

Implements idRenderSystem.

Definition at line 323 of file RenderSystem.cpp.

void idRenderSystemLocal::Shutdown ( void  )
virtual

Implements idRenderSystem.

Definition at line 2180 of file RenderSystem_init.cpp.

void idRenderSystemLocal::ShutdownOpenGL ( void  )
virtual

Implements idRenderSystem.

Definition at line 2269 of file RenderSystem_init.cpp.

void idRenderSystemLocal::TakeScreenshot ( int  width,
int  height,
const char *  fileName,
int  downSample,
renderView_t ref 
)
virtual

Implements idRenderSystem.

Definition at line 1226 of file RenderSystem_init.cpp.

void idRenderSystemLocal::UnCrop ( )
virtual

Implements idRenderSystem.

Definition at line 882 of file RenderSystem.cpp.

bool idRenderSystemLocal::UploadImage ( const char *  imageName,
const byte data,
int  width,
int  height 
)
virtual

Implements idRenderSystem.

Definition at line 1033 of file RenderSystem.cpp.

void idRenderSystemLocal::WriteDemoPics ( )
virtual

Implements idRenderSystem.

Definition at line 691 of file RenderSystem.cpp.

Member Data Documentation

idImage* idRenderSystemLocal::ambientCubeImage

Definition at line 784 of file tr_local.h.

idVec4 idRenderSystemLocal::ambientLightVector

Definition at line 768 of file tr_local.h.

backEndName_t idRenderSystemLocal::backEndRenderer

Definition at line 762 of file tr_local.h.

bool idRenderSystemLocal::backEndRendererHasVertexPrograms

Definition at line 763 of file tr_local.h.

float idRenderSystemLocal::backEndRendererMaxLight

Definition at line 764 of file tr_local.h.

int idRenderSystemLocal::currentRenderCrop

Definition at line 798 of file tr_local.h.

const idMaterial* idRenderSystemLocal::defaultMaterial

Definition at line 779 of file tr_local.h.

class idGuiModel* idRenderSystemLocal::demoGuiModel

Definition at line 803 of file tr_local.h.

int idRenderSystemLocal::frameCount

Definition at line 750 of file tr_local.h.

float idRenderSystemLocal::frameShaderTime

Definition at line 756 of file tr_local.h.

unsigned short idRenderSystemLocal::gammaTable[256]

Definition at line 805 of file tr_local.h.

class idGuiModel* idRenderSystemLocal::guiModel

Definition at line 802 of file tr_local.h.

int idRenderSystemLocal::guiRecursionLevel

Definition at line 801 of file tr_local.h.

viewEntity_t idRenderSystemLocal::identitySpace

Definition at line 792 of file tr_local.h.

drawSurfsCommand_t idRenderSystemLocal::lockSurfacesCmd

Definition at line 790 of file tr_local.h.

FILE* idRenderSystemLocal::logFile

Definition at line 793 of file tr_local.h.

performanceCounters_t idRenderSystemLocal::pc

Definition at line 788 of file tr_local.h.

renderView_t idRenderSystemLocal::primaryRenderView

Definition at line 775 of file tr_local.h.

viewDef_t* idRenderSystemLocal::primaryView

Definition at line 776 of file tr_local.h.

idRenderWorldLocal* idRenderSystemLocal::primaryWorld

Definition at line 774 of file tr_local.h.

bool idRenderSystemLocal::registered

Definition at line 746 of file tr_local.h.

renderCrop_t idRenderSystemLocal::renderCrops[MAX_RENDER_CROPS]

Definition at line 797 of file tr_local.h.

float idRenderSystemLocal::sortOffset

Definition at line 770 of file tr_local.h.

int idRenderSystemLocal::staticAllocCount

Definition at line 754 of file tr_local.h.

int idRenderSystemLocal::stencilDecr

Definition at line 795 of file tr_local.h.

int idRenderSystemLocal::stencilIncr

Definition at line 795 of file tr_local.h.

bool idRenderSystemLocal::takingScreenshot

Definition at line 748 of file tr_local.h.

idImage* idRenderSystemLocal::testImage

Definition at line 780 of file tr_local.h.

idCinematic* idRenderSystemLocal::testVideo

Definition at line 781 of file tr_local.h.

float idRenderSystemLocal::testVideoStartTime

Definition at line 782 of file tr_local.h.

int idRenderSystemLocal::tiledViewport[2]

Definition at line 759 of file tr_local.h.

int idRenderSystemLocal::viewCount

Definition at line 751 of file tr_local.h.

viewDef_t* idRenderSystemLocal::viewDef

Definition at line 786 of file tr_local.h.

int idRenderSystemLocal::viewportOffset[2]

Definition at line 758 of file tr_local.h.

idList<idRenderWorldLocal*> idRenderSystemLocal::worlds

Definition at line 772 of file tr_local.h.


The documentation for this class was generated from the following files: