Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
CullSystemClass.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef TT_INCLUDE_CULLSYSTEMCLASS_H
13#define TT_INCLUDE_CULLSYSTEMCLASS_H
14#include "CullableClass.h"
15class FrustumClass;
16
17class CullSystemClass
18{
19public:
20 CullSystemClass(void);
21 virtual ~CullSystemClass(void);
22 void Reset_Collection(void);
23 virtual void Collect_Objects(const Vector3 & point) = 0;
24 virtual void Collect_Objects(const AABoxClass & box) = 0;
25 virtual void Collect_Objects(const OBBoxClass & box) = 0;
26 virtual void Collect_Objects(const FrustumClass & frustum) = 0;
27 virtual void Update_Culling(CullableClass * obj) = 0;
28protected:
29 CullableClass * Get_First_Collected_Object_Internal(void);
30 CullableClass * Get_Next_Collected_Object_Internal(CullableClass * obj);
31 CullableClass * Peek_First_Collected_Object_Internal(void);
32 CullableClass * Peek_Next_Collected_Object_Internal(CullableClass * obj);
33 void Add_To_Collection(CullableClass * obj);
34 CullableClass * CollectionHead;
35 friend class CullableClass;
36};
37
38
39
40#endif