Changeset View
Changeset View
Standalone View
Standalone View
source/renderer/Scene.cpp
Show All 9 Lines | |||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
* GNU General Public License for more details. | * GNU General Public License for more details. | ||||
* | * | ||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
/* | |||||
* File : Scene.cpp | |||||
* Project : graphics | |||||
* Description : This file contains default implementations and utilities | |||||
* : to be used together with the Scene interface and related | |||||
* : classes. | |||||
* | |||||
* @note This file would fit just as well into the graphics/ subdirectory. | |||||
*/ | |||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "renderer/Scene.h" | |||||
#include "graphics/Model.h" | #include "graphics/Model.h" | ||||
#include "graphics/ParticleEmitter.h" | #include "graphics/ParticleEmitter.h" | ||||
#include "renderer/Scene.h" | |||||
/////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////// | ||||
// Default implementation traverses the model recursively and uses | // Default implementation traverses the model recursively and uses | ||||
// SubmitNonRecursive for the actual work. | // SubmitNonRecursive for the actual work. | ||||
void SceneCollector::SubmitRecursive(CModelAbstract* model) | void SceneCollector::SubmitRecursive(CModelAbstract* model) | ||||
{ | { | ||||
if (model->ToCModel()) | if (model->ToCModel()) | ||||
{ | { | ||||
Show All 23 Lines |
Wildfire Games · Phabricator