103 void (*Printf)(
const char *fmt, ...);
104 void (*DPrintf)(
const char *fmt, ...);
105 void (*DebugPrintf)(
const char *fmt, ...);
108 void *(*Malloc)(
int size);
109 void (*Free)(
void *block);
112 void (*Error)(
int errorLevel,
const char *fmt, ...);
116 int (*Milliseconds)(void);
119 const char *(*LV_ConvertString)(
const char *string);
122 cvar_t *(*Cvar_Get)(
const char *var_name,
const char *value,
int flags);
123 cvar_t *(*Cvar_Find)(
const char *var_name);
124 void (*Cvar_Set)(
const char *var_name,
const char *value);
125 void (*Cvar_CheckRange)(cvar_t* var,
float min,
float max, qboolean integral);
129 char *(*Argv)(
int n);
131 void (*AddCommand)(
const char *cmd);
132 void (*Cmd_Stuff)(
const char *text);
133 void (*Cmd_Execute)(
int execWhen,
const char *text);
134 void (*Cmd_TokenizeString)(
const char *textIn);
138 long (*FS_ReadFile)(
const char *name,
void **buf, qboolean quiet);
139 void (*FS_FreeFile)(
void *buf);
140 int (*FS_WriteFile)(
const char *qpath,
const void *buffer,
int size);
141 void (*FS_WriteTextFile)(
const char *qpath,
const void *buffer,
int size);
142 char** (*FS_ListFilteredFiles)(
const char* path,
const char* extension,
const char* filter, qboolean wantSubs,
int* numfiles, qboolean allowNonPureFilesOnDisk);
143 void (*FS_FreeFileList)(
char **list);
148 void (*SendConsoleCommand)(
const char *text);
153 int (*MSG_ReadBits)(
int bits);
154 int (*MSG_ReadChar)();
155 int (*MSG_ReadByte)();
156 int (*MSG_ReadSVC)();
157 int (*MSG_ReadShort)();
158 int (*MSG_ReadLong)();
159 float (*MSG_ReadFloat)();
160 char *(*MSG_ReadString)();
161 char *(*MSG_ReadStringLine)();
162 float (*MSG_ReadAngle8)();
163 float (*MSG_ReadAngle16)();
164 void (*MSG_ReadData)(
void *data,
int len);
165 float (*MSG_ReadCoord)();
166 void (*MSG_ReadDir)(vec3_t dir);
167 void (*SendClientCommand)(
const char *s);
170 void (*CM_LoadMap)(
const char *name,
int* checksum);
171 clipHandle_t (*CM_InlineModel)(
int index);
172 int (*CM_NumInlineModels)(void);
173 int (*CM_PointContents)(
const vec3_t p,
int headnode);
174 int (*CM_TransformedPointContents)(
175 const vec3_t p, clipHandle_t model,
const vec3_t origin,
const vec3_t angles
187 void (*CM_TransformedBoxTrace)(
199 clipHandle_t (*CM_TempBoxModel)(
const vec3_t mins,
const vec3_t maxs,
int contents);
200 void (*CM_PrintBSPFileSizes)();
201 qboolean (*CM_LeafInPVS)(
int leaf1,
int leaf2);
202 int (*CM_PointLeafnum)(
const vec3_t p);
203 int (*R_MarkFragments)(
205 const vec3_t *points,
206 const vec3_t projection,
213 int (*R_MarkFragmentsForInlineModel)(
215 const vec3_t vAngles,
216 const vec3_t vOrigin,
218 const vec3_t *points,
219 const vec3_t projection,
227 void (*R_GetInlineModelBounds)(
int index, vec3_t mins, vec3_t maxs);
228 void (*R_GetLightingForDecal)(vec3_t light,
const vec3_t facing,
const vec3_t origin);
229 void (*R_GetLightingForSmoke)(vec3_t light,
const vec3_t origin);
230 int (*R_GatherLightSources)(
const vec3_t pos, vec3_t *lightPos, vec3_t *lightIntensity,
int maxLights);
234 void (*S_StartSound)(
238 sfxHandle_t sfxHandle,
245 void (*S_StartLocalSound)(
const char *soundName, qboolean forceLoad);
246 void (*S_StopSound)(
int entnum,
int channel);
247 void (*S_ClearLoopingSounds)(void);
248 void (*S_AddLoopingSound)(
250 const vec3_t velocity,
251 sfxHandle_t sfxHandle,
258 void (*S_Respatialize)(
int entityNum,
const vec3_t origin, vec3_t axis[3]);
259 void (*S_BeginRegistration)(void);
260 sfxHandle_t (*S_RegisterSound)(
const char *sample,
int streamed);
261 void (*S_EndRegistration)(void);
262 void (*S_UpdateEntity)(
int entityNum,
const vec3_t origin,
const vec3_t velocity, qboolean use_listener);
263 void (*S_SetReverb)(
int reverb_type,
float reverb_level);
264 void (*S_SetGlobalAmbientVolumeLevel)(
float volume);
265 float (*S_GetSoundTime)(sfxHandle_t handle);
266 int (*S_ChannelNameToNum)(
const char *name);
267 const char *(*S_ChannelNumToName)(
int channel);
268 int (*S_IsSoundPlaying)(
int channelNumber,
const char *name);
272 void (*MUSIC_NewSoundtrack)(
const char *name);
273 void (*MUSIC_UpdateMood)(
int current_mood,
int fallback_mood);
274 void (*MUSIC_UpdateVolume)(
float volume,
float fade_time);
278 float *(*get_camera_offset)(qboolean *lookactive, qboolean *resetview);
281 void (*R_ClearScene)(void);
282 void (*R_RenderScene)(
const refdef_t *fd);
283 void (*R_LoadWorldMap)(
const char *mapname);
284 void (*R_PrintBSPFileSizes)();
286 int (*R_MapVersion)();
287 qhandle_t (*R_RegisterModel)(
const char *name);
288 qhandle_t (*R_SpawnEffectModel)(
const char *name, vec3_t pos, vec3_t axis[3]);
289 qhandle_t (*R_RegisterServerModel)(
const char *name);
290 const char * (*R_GetModelName)(qhandle_t hModel);
291 void (*R_UnregisterServerModel)(qhandle_t hModel);
292 qhandle_t (*R_RegisterShader)(
const char *name);
293 qhandle_t (*R_RegisterShaderNoMip)(
const char *name);
294 const char* (*R_GetShaderName)(qhandle_t hShader);
295 void (*R_AddRefEntityToScene)(
const refEntity_t *ent,
int parentEntityNumber);
296 void (*R_AddRefSpriteToScene)(
const refEntity_t *ent);
297 void (*R_AddLightToScene)(
const vec3_t origin,
float intensity,
float r,
float g,
float b,
int type);
298 qboolean (*R_AddPolyToScene)(qhandle_t hShader,
int numVerts,
const polyVert_t *verts,
int renderfx);
299 void (*R_AddTerrainMarkToScene)(
300 int terrainIndex, qhandle_t hShader,
int numVerts,
const polyVert_t *verts,
int renderFx
302 void (*R_SetColor)(
const vec4_t rgba);
303 void (*R_DrawStretchPic)(
314 fontheader_t *(*R_LoadFont)(
const char *name);
315 void (*R_DrawString)(
316 fontheader_t *font,
const char *text,
float x,
float y,
int maxLen,
const float *pvVirtualScreen
318 refEntity_t *(*R_GetRenderEntity)(
int entityNumber);
319 void (*R_ModelBounds)(clipHandle_t model, vec3_t mins, vec3_t maxs);
320 float (*R_ModelRadius)(clipHandle_t model);
321 float (*R_Noise)(
float x,
float y,
float z,
double t);
322 void (*R_DebugLine)(
const vec3_t start,
const vec3_t end,
float r,
float g,
float b,
float alpha);
323 baseshader_t *(*GetShader)(
int shaderNum);
325 void (*R_SwipeBegin)(
float thistime,
float life, qhandle_t shader);
326 void (*R_SwipePoint)(vec3_t p1, vec3_t p2,
float time);
327 void (*R_SwipeEnd)(void);
328 int (*R_GetShaderWidth)(qhandle_t shader);
329 int (*R_GetShaderHeight)(qhandle_t shader);
330 void (*R_DrawBox)(
float x,
float y,
float w,
float h);
334 int (*GetSnapshot)(
int snapshotNumber,
snapshot_t *snapshot);
335 int (*GetServerStartTime)();
336 void (*SetTime)(
int time);
337 void (*GetCurrentSnapshotNumber)(
int *snapshotNumber,
int *serverTime);
341 qboolean (*GetParseEntityState)(
int parseEntityNumber, entityState_t *
state);
342 int (*GetCurrentCmdNumber)(void);
345 qboolean (*GetUserCmd)(
int cmdNumber, usercmd_t *ucmd);
346 qboolean (*GetServerCommand)(
int serverCommandNumber, qboolean differentServer);
349 qboolean (*Alias_Add)(
const char *alias,
const char *name,
const char *parameters);
350 qboolean (*Alias_ListAdd)(AliasList_t *list,
const char *alias,
const char *name,
const char *parameters);
351 const char *(*Alias_FindRandom)(
const char *alias, AliasListNode_t **ret);
352 const char *(*Alias_ListFindRandom)(AliasList_t *list,
const char *alias, AliasListNode_t **ret);
353 void (*Alias_Dump)(void);
354 void (*Alias_Clear)(void);
355 AliasList_t *(*AliasList_New)(
const char *name);
356 void (*Alias_ListFindRandomRange)(
357 AliasList_t *list,
const char *alias,
int *minIndex,
int *maxIndex,
float *totalWeight
359 AliasList_t *(*Alias_GetGlobalList)();
362 void (*UI_ShowMenu)(
const char *name, qboolean bForce);
363 void (*UI_HideMenu)(
const char *name, qboolean bForce);
364 int (*UI_FontStringWidth)(fontheader_t *font,
const char *string,
int maxLen);
366 float (*UI_GetObjectivesTop)(void);
367 void (*UI_GetHighResolutionScale)(vec2_t scale);
369 int (*Key_StringToKeynum)(
const char *
str);
370 const char *(*Key_KeynumToBindString)(
int keyNum);
371 void (*Key_GetKeysForCommand)(
const char *command,
int *key1,
int *key2);
375 dtiki_t *(*R_Model_GetHandle)(qhandle_t handle);
376 int (*TIKI_NumAnims)(dtiki_t *pmdl);
377 void (*TIKI_CalculateBounds)(dtiki_t *pmdl,
float scale, vec3_t mins, vec3_t maxs);
378 const char *(*TIKI_Name)(dtiki_t *tiki);
379 void *(*TIKI_GetSkeletor)(dtiki_t *tiki,
int entNum);
380 void (*TIKI_SetEyeTargetPos)(dtiki_t *tiki,
int entNum, vec3_t pos);
383 const char *(*Anim_NameForNum)(dtiki_t *tiki,
int animnum);
384 int (*Anim_NumForName)(dtiki_t *tiki,
const char *name);
385 int (*Anim_Random)(dtiki_t *tiki,
const char *name);
386 int (*Anim_NumFrames)(dtiki_t *tiki,
int animnum);
387 float (*Anim_Time)(dtiki_t *tiki,
int animnum);
388 float (*Anim_Frametime)(dtiki_t *tiki,
int animnum);
389 void (*Anim_Delta)(dtiki_t *tiki,
int animnum, vec3_t delta);
390 int (*Anim_Flags)(dtiki_t *tiki,
int animnum);
391 int (*Anim_FlagsSkel)(dtiki_t *tiki,
int animnum);
392 float (*Anim_CrossblendTime)(dtiki_t *tiki,
int animnum);
393 qboolean (*Anim_HasCommands)(dtiki_t *tiki,
int animnum);
396 qboolean (*Frame_Commands)(dtiki_t *tiki,
int animnum,
int framenum, tiki_cmd_t *tiki_cmd);
397 qboolean (*Frame_CommandsTime)(dtiki_t *tiki,
int animnum,
float start,
float end, tiki_cmd_t *tiki_cmd);
400 int (*Surface_NameToNum)(dtiki_t *tiki,
const char *name);
406 int (*Tag_NumForName)(dtiki_t *tiki,
const char *name);
407 const char *(*Tag_NameForNum)(dtiki_t *tiki,
int num);
410 qboolean (*TIKI_IsOnGround)(
refEntity_t *model,
int tagNum,
float threshold);
413 void (*UI_ShowScoreBoard)(
const char *menuName);
414 void (*UI_HideScoreBoard)();
415 void (*UI_SetScoreBoardItem)(
425 const vec4_t textColor,
426 const vec4_t backColor,
429 void (*UI_DeleteScoreBoardItems)(
int maxIndex);
430 void (*UI_ToggleDMMessageConsole)(
int consoleMode);
431 void (*CL_InitRadar)(
radarClient_t* radars, qhandle_t* shaders,
int clientNum);
432 dtiki_t *(*TIKI_FindTiki)(
const char *path);
433 void (*LoadResource)(
const char *name);
434 void (*FS_CanonicalFilename)(
char *name);
435 void (*CL_RestoreSavedCgameState)();
436 void (*CL_ClearSavedCgameState)();
438 size_t (*getConfigStringIdNormalized)(
size_t num);
441 hdelement_t *HudDrawElements;
443 stopWatch_t *stopWatch;
456 void (*CG_Init)(
clientGameImport_t *imported,
int serverMessageNum,
int serverCommandSequence,
int clientNum);
457 void (*CG_Shutdown)(void);
458 void (*CG_DrawActiveFrame)(
int serverTime,
int frameTime, stereoFrame_t stereoView, qboolean demoPlayback);
459 qboolean (*CG_ConsoleCommand)(void);
460 void (*CG_GetRendererConfig)(void);
461 void (*CG_Draw2D)(void);
462 void (*CG_EyePosition)(vec3_t *eyePos);
463 void (*CG_EyeOffset)(vec3_t *eyeOffset);
464 void (*CG_EyeAngles)(vec3_t *eyeAngles);
465 float (*CG_SensitivityScale)();
466 void (*CG_ParseCGMessage)();
467 void (*CG_RefreshHudDrawElements)();
468 void (*CG_HudDrawShader)(
int info);
469 void (*CG_HudDrawFont)(
int info);
470 int (*CG_GetParent)(
int entNum);
471 float (*CG_GetObjectiveAlpha)();
472 int (*CG_PermanentMark)(
488 int (*CG_PermanentTreadMarkDecal)(
489 treadMark_t *treadMark,
490 qboolean startSegment,
495 int (*CG_PermanentUpdateTreadMark)(
496 treadMark_t *treadMark,
float alpha,
float minSegment,
float maxSegment,
float maxOffset,
float texScale
498 void (*CG_ProcessInitCommands)(dtiki_t *tiki,
refEntity_t *ent);
499 void (*CG_EndTiki)(dtiki_t *tiki);
500 const char *(*CG_GetColumnName)(
int columnNum,
int *columnWidth);
501 void (*CG_GetScoreBoardColor)(
float *red,
float *green,
float *blue,
float *alpha);
502 void (*CG_GetScoreBoardFontColor)(
float *red,
float *green,
float *blue,
float *alpha);
503 int (*CG_GetScoreBoardDrawHeader)();
504 void (*CG_GetScoreBoardPosition)(
float *x,
float *y,
float *width,
float *height);
505 int (*CG_WeaponCommandButtonBits)();
506 int (*CG_CheckCaptureKey)(
int key, qboolean down,
unsigned int time);
512 void (*CG_UpdateRadar)();
513 size_t (*CG_SaveStateToBuffer)(
void** out,
int svsTime);
514 qboolean (*CG_LoadStateToBuffer)(
void*
state,
size_t size,
int svsTime);
515 void (*CG_CleanUpTempModels)();
520 qboolean (*CG_Command_ProcessFile)(
const char *name, qboolean quiet, dtiki_t *curTiki);