#include <Windows.h>#include <Math.h>#include <Assert.h>#include "Genesis.H"#include "System.h"#include "Ram.h"#include "World.h"#include "Surface.h"#include "Light.h"#include "Plane.h"#include "Entities.h"#include "Trace.h"#include "User.h"#include "Motion.h"#include "Vis.h"Go to the source code of this file.
Functions | |
| geBoolean | geEngine_SetWorld (geEngine *Engine, geWorld *World) |
| GENESISAPI geEngine * | geEngine_CreateWithVersion (HWND hWnd, const char *AppName, const char *DriverDirectory, uint32 Version) |
| GENESISAPI void | geEngine_Free (geEngine *Engine) |
| GENESISAPI void | geEngine_FillRect (geEngine *Engine, const GE_Rect *Rect, const GE_RGBA *Color) |
| GENESISAPI geBoolean | geEngine_ScreenShot (geEngine *Engine, const char *FileName) |
| GENESISAPI void | geEngine_EnableFrameRateCounter (geEngine *Engine, geBoolean Enabled) |
| GENESISAPI geLight * | geWorld_AddLight (geWorld *World) |
| GENESISAPI void | geWorld_RemoveLight (geWorld *World, geLight *Light) |
| GENESISAPI geBoolean | geWorld_SetLightAttributes (geWorld *World, geLight *Light, const geVec3d *Pos, const GE_RGBA *RGBA, geFloat Radius, geBoolean CastShadow) |
| GENESISAPI geBoolean | geWorld_SetLTypeTable (geWorld *World, int32 LType, const char *Table) |
| GENESISAPI geBoolean | geWorld_TestModelMove (geWorld *World, geWorld_Model *Model, const geXForm3d *DXForm, const geVec3d *Mins, const geVec3d *Maxs, const geVec3d *In, geVec3d *Out) |
| GENESISAPI geBoolean | geWorld_ModelCollision (geWorld *World, geWorld_Model *Model, const geXForm3d *DXForm, GE_Collision *Collision) |
| GENESISAPI geBoolean | geWorld_Collision (geWorld *World, const geVec3d *Mins, const geVec3d *Maxs, const geVec3d *Front, const geVec3d *Back, uint32 Contents, uint32 CollideFlags, uint32 UserFlags, GE_CollisionCB *CollisionCB, void *Context, GE_Collision *Col) |
| GENESISAPI geBoolean | geWorld_GetContents (geWorld *World, const geVec3d *Pos, const geVec3d *Mins, const geVec3d *Maxs, uint32 Flags, uint32 UserFlags, GE_CollisionCB *CollisionCB, void *Context, GE_Contents *Contents) |
| GENESISAPI geBoolean | geWorld_GetTextureName (geWorld *World, const geVec3d *Pos, const geVec3d *Mins, const geVec3d *Maxs, char *TexName) |
Variables | |
| geEngine * | CEngine |
| char * | geTag = "Eclipse!" |
|
||||||||||||||||||||
|
Definition at line 64 of file Ge.c. References AppName, GENESISAPI, NULL, and Sys_EngineCreate().
00065 {
00066 assert(AppName != NULL);
00067
00068 //
00069 // Initialize the engine level resources
00070 //
00071 return Sys_EngineCreate(hWnd, AppName, DriverDirectory, Version);
00072 }
|
|
||||||||||||
|
Definition at line 103 of file Ge.c. References geEngine::DisplayFrameRateCounter, Engine, and GENESISAPI. Referenced by GMenu_Key(), and WinMain().
00104 {
00105 assert(Engine);
00106 Engine->DisplayFrameRateCounter = Enabled;
00107 }
|
|
||||||||||||||||
|
Definition at line 85 of file Ge.c. References Engine, GENESISAPI, and User_EngineFillRect().
00086 {
00087 User_EngineFillRect(Engine, Rect, Color);
00088 }
|
|
|
Definition at line 77 of file Ge.c. References Engine, GENESISAPI, and Sys_EngineFree(). Referenced by GameMgr_FreeAllObjects().
00078 {
00079 Sys_EngineFree(Engine);
00080 }
|
|
||||||||||||
|
Definition at line 93 of file Ge.c. References geEngine::DriverInfo, Engine, geBoolean, GENESISAPI, Sys_DriverInfo::RDriver, and DRV_Driver::ScreenShot. Referenced by WndProc().
00094 {
00095 assert(Engine);
00096
00097 return Engine->DriverInfo.RDriver->ScreenShot(FileName);
00098 }
|
|
||||||||||||
|
|
|
|
Definition at line 256 of file Ge.c. References geLight, GENESISAPI, Light_WorldAddLight(), and NULL. Referenced by AddBoneLight(), CheckClientPlayerChanges(), and DynLight_SetWorld().
00257 {
00258 assert(World != NULL);
00259
00260 return (geLight*)Light_WorldAddLight(World);
00261 }
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 340 of file Ge.c. References geBoolean, GENESISAPI, and Trace_GEWorldCollision(). Referenced by Blaster_Control(), Bot_CanSeePlayerToPlayer(), Bot_CanSeePlayerToPoint(), Bot_CanSeePointToPoint(), Bot_CheckVelocity(), Bot_NudgePlayer(), Bot_OverLedge(), Bot_OverLedgeScan(), Bot_ScanCheckVelocity(), CheckVelocity(), ControlShredderFx(), Corona_Frame(), FireBlaster(), FireRocket(), FireShredder(), Grenade_Control(), MovePlayerUpStep(), PathPoint_Frame2(), RadiusDammage(), Rocket_Control(), and SendPlayersToClients().
00341 {
00342 return Trace_GEWorldCollision(World, Mins, Maxs, Front, Back, Contents, CollideFlags, UserFlags, CollisionCB, Context, Col);
00343 }
|
|
||||||||||||||||||||||||||||||||||||||||
|
Definition at line 348 of file Ge.c. References geBoolean, GENESISAPI, and Trace_GetContents(). Referenced by Bot_CheckPosition(), Bot_CheckVelocity(), Bot_GetContents(), Bot_OverLedge(), Bot_ScanCheckVelocity(), CheckPlayer(), CheckVelocity(), Client_Control(), Grenade_Control(), and UpdatePlayerContents().
00349 {
00350 return Trace_GetContents(World, Pos, Mins, Maxs, Flags, UserFlags, CollisionCB, Context, Contents);
00351 }
|
|
||||||||||||||||||||||||
|
Definition at line 358 of file Ge.c. References geBoolean, GENESISAPI, and Trace_GetTexureName().
00359 {
00360 return Trace_GetTexureName(World, Pos, Mins, Maxs, TexName);
00361 }
|
|
||||||||||||||||||||
|
Definition at line 320 of file Ge.c. References GE_Collision::Actor, geBoolean, GENESISAPI, GE_Collision::Impact, GE_Collision::Mesh, GE_Collision::Model, NULL, and Trace_ModelCollision().
|
|
||||||||||||
|
Definition at line 266 of file Ge.c. References GENESISAPI, Light_WorldRemoveLight(), and NULL. Referenced by CheckClientPlayerChanges(), Client_DestroyPlayerWorldObjects(), and UpdatePlayers().
00267 {
00268 assert(World != NULL);
00269 assert(Light != NULL);
00270
00271 Light_WorldRemoveLight(World, (Light_DLight*)Light);
00272 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 277 of file Ge.c. References geBoolean, GENESISAPI, Light_SetAttributes(), and NULL. Referenced by AddBoneLight(), Client_UpdateSinglePlayer(), DoSplashScreen(), and DynLight_Frame().
00283 {
00284 assert(World != NULL);
00285 assert(Light != NULL);
00286 assert(Pos != NULL);
00287 assert(RGBA != NULL);
00288
00289 return Light_SetAttributes((Light_DLight*)Light, Pos, RGBA, Radius, CastShadow);
00290 }
|
|
||||||||||||||||
|
Definition at line 295 of file Ge.c. References geBoolean, GENESISAPI, Light_WorldSetLTypeTable(), and NULL. Referenced by GameMgr_SetWorld().
00296 {
00297 assert(World != NULL);
00298 assert(Table != NULL);
00299
00300 return Light_WorldSetLTypeTable(World, LType, Table);
00301 }
|
|
||||||||||||||||||||||||||||||||
|
Definition at line 306 of file Ge.c. References geBoolean, GENESISAPI, and Trace_TestModelMove(). Referenced by Client_MovePlayerModel(), and Server_MovePlayerModel().
00311 {
00312 return Trace_TestModelMove( World, Model, DXForm,
00313 Mins, Maxs,
00314 In, Out);
00315 }
|
|
|
|
|
|
|
1.3.2