mirror of
https://github.com/tribes2/engine.git
synced 2026-03-03 04:20:24 +00:00
t2 engine svn checkout
This commit is contained in:
commit
ff569bd2ae
988 changed files with 394180 additions and 0 deletions
44
sceneGraph/sceneRoot.h
Normal file
44
sceneGraph/sceneRoot.h
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// V12 Engine
|
||||
//
|
||||
// Copyright (c) 2001 GarageGames.Com
|
||||
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _SCENEROOT_H_
|
||||
#define _SCENEROOT_H_
|
||||
|
||||
//Includes
|
||||
#ifndef _PLATFORM_H_
|
||||
#include "Platform/platform.h"
|
||||
#endif
|
||||
#ifndef _SCENEOBJECT_H_
|
||||
#include "Sim/sceneObject.h"
|
||||
#endif
|
||||
|
||||
class SceneRoot : public SceneObject
|
||||
{
|
||||
typedef SceneObject Parent;
|
||||
|
||||
protected:
|
||||
bool onSceneAdd(SceneGraph*);
|
||||
void onSceneRemove();
|
||||
|
||||
bool getOverlappingZones(SceneObject*, U32* zones, U32* numZones);
|
||||
|
||||
bool prepRenderImage(SceneState*, const U32 stateKey, const U32 startZone,
|
||||
const bool modifyBaseZoneState);
|
||||
|
||||
bool scopeObject(const Point3F& rootPosition,
|
||||
const F32 rootDistance,
|
||||
bool* zoneScopeState);
|
||||
|
||||
public:
|
||||
SceneRoot();
|
||||
~SceneRoot();
|
||||
};
|
||||
|
||||
extern SceneRoot* gClientSceneRoot;
|
||||
extern SceneRoot* gServerSceneRoot;
|
||||
|
||||
#endif //_SCENEROOT_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue