Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

tr_public.h File Reference

#include "../cgame/tr_types.h"

Include dependency graph for tr_public.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  refexport_t
struct  refimport_t

Defines

#define REF_API_VERSION   8

Functions

refexport_tGetRefAPI (int apiVersion, refimport_t *rimp)


Define Documentation

#define REF_API_VERSION   8
 

Definition at line 27 of file tr_public.h.

Referenced by CL_InitRef(), and GetRefAPI().


Function Documentation

refexport_t* GetRefAPI int  apiVersion,
refimport_t rimp
 

Definition at line 1165 of file tr_init.c.

References refexport_t::AddAdditiveLightToScene, refexport_t::AddLightToScene, refexport_t::AddPolyToScene, refexport_t::AddRefEntityToScene, refexport_t::BeginFrame, refexport_t::BeginRegistration, refexport_t::ClearScene, Com_Memset(), refexport_t::DrawStretchPic, refexport_t::DrawStretchRaw, refexport_t::EndFrame, refexport_t::EndRegistration, refexport_t::GetEntityToken, refexport_t::inPVS, refexport_t::LerpTag, refexport_t::LightForPoint, refexport_t::LoadWorld, refexport_t::MarkFragments, refexport_t::ModelBounds, PRINT_ALL, re, REF_API_VERSION, refexport_t::RegisterFont, refexport_t::RegisterModel, refexport_t::RegisterShader, refexport_t::RegisterShaderNoMip, refexport_t::RegisterSkin, refexport_t::RemapShader, refexport_t::RenderScene, ri, refexport_t::SetColor, refexport_t::SetWorldVisData, refexport_t::Shutdown, and refexport_t::UploadCinematic.

Referenced by CL_InitRef().

01165                                                              {
01166     static refexport_t  re;
01167 
01168     ri = *rimp;
01169 
01170     Com_Memset( &re, 0, sizeof( re ) );
01171 
01172     if ( apiVersion != REF_API_VERSION ) {
01173         ri.Printf(PRINT_ALL, "Mismatched REF_API_VERSION: expected %i, got %i\n", 
01174             REF_API_VERSION, apiVersion );
01175         return NULL;
01176     }
01177 
01178     // the RE_ functions are Renderer Entry points
01179 
01180     re.Shutdown = RE_Shutdown;
01181 
01182     re.BeginRegistration = RE_BeginRegistration;
01183     re.RegisterModel = RE_RegisterModel;
01184     re.RegisterSkin = RE_RegisterSkin;
01185     re.RegisterShader = RE_RegisterShader;
01186     re.RegisterShaderNoMip = RE_RegisterShaderNoMip;
01187     re.LoadWorld = RE_LoadWorldMap;
01188     re.SetWorldVisData = RE_SetWorldVisData;
01189     re.EndRegistration = RE_EndRegistration;
01190 
01191     re.BeginFrame = RE_BeginFrame;
01192     re.EndFrame = RE_EndFrame;
01193 
01194     re.MarkFragments = R_MarkFragments;
01195     re.LerpTag = R_LerpTag;
01196     re.ModelBounds = R_ModelBounds;
01197 
01198     re.ClearScene = RE_ClearScene;
01199     re.AddRefEntityToScene = RE_AddRefEntityToScene;
01200     re.AddPolyToScene = RE_AddPolyToScene;
01201     re.LightForPoint = R_LightForPoint;
01202     re.AddLightToScene = RE_AddLightToScene;
01203     re.AddAdditiveLightToScene = RE_AddAdditiveLightToScene;
01204     re.RenderScene = RE_RenderScene;
01205 
01206     re.SetColor = RE_SetColor;
01207     re.DrawStretchPic = RE_StretchPic;
01208     re.DrawStretchRaw = RE_StretchRaw;
01209     re.UploadCinematic = RE_UploadCinematic;
01210 
01211     re.RegisterFont = RE_RegisterFont;
01212     re.RemapShader = R_RemapShader;
01213     re.GetEntityToken = R_GetEntityToken;
01214     re.inPVS = R_inPVS;
01215 
01216     return &re;
01217 }

Here is the call graph for this function:


Generated on Thu Aug 25 15:18:49 2005 for Quake III Arena by  doxygen 1.3.9.1