Simulant  21.12-194
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
null_partitioner.h
1 /* * Copyright (c) 2011-2017 Luke Benstead https://simulant-engine.appspot.com
2  *
3  * This file is part of Simulant.
4  *
5  * Simulant is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * Simulant is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with Simulant. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef NULL_PARTITIONER_H
20 #define NULL_PARTITIONER_H
21 
22 #include "../partitioner.h"
23 
24 namespace smlt {
25 
26 class SubActor;
27 
28 class NullPartitioner : public Partitioner {
29 public:
31  Partitioner(ss) {}
32 
33  void lights_and_geometry_visible_from(
34  CameraID camera_id,
35  std::vector<LightID> &lights_out,
36  std::vector<StageNode*> &geom_out
37  );
38 
39 private:
40  void apply_staged_write(const UniqueIDKey& key, const StagedWrite& write) override;
41  std::set<UniqueIDKey> all_nodes_;
42 };
43 
44 }
45 
46 #endif // NULL_PARTITIONER_H
smlt::NullPartitioner
Definition: null_partitioner.h:28
smlt::StagedWrite
Definition: partitioner.h:45
smlt::Stage
Definition: stage.h:92
smlt::Partitioner
Definition: partitioner.h:54
smlt
Definition: animation.cpp:25
smlt::UniqueID< CameraPtr >