Changeset 25224
- Timestamp:
- Apr 9, 2021, 5:45:31 PM (3 years ago)
- Location:
- ps/trunk/source
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/graphics/ModelAbstract.h
r22051 r25224 1 /* Copyright (C) 20 19Wildfire Games.1 /* Copyright (C) 20 Wildfire Games. 2 2 * This file is part of 0 A.D. 3 3 * … … 24 24 #include "simulation2/helpers/Player.h" 25 25 26 26 27 class CModel; 27 28 class CModelDecal; … … 74 75 75 76 /// Dynamic cast 76 virtual CModel * ToCModel() { return NULL; }77 virtual CModel; } 77 78 78 79 /// Dynamic cast 79 virtual CModel Decal* ToCModelDecal() { return NULL; }80 virtual CModel; } 80 81 81 82 /// Dynamic cast 82 virtual CModelParticleEmitter* ToCModelParticleEmitter() { return NULL; } 83 virtual CModelDecal* ToCModelDecal() { return nullptr; } 84 85 /// Dynamic cast 86 virtual CModelParticleEmitter* ToCModelParticleEmitter() { return nullptr; } 83 87 84 88 // (This dynamic casting is a bit ugly, but we won't have many subclasses -
ps/trunk/source/graphics/ObjectEntry.cpp
r25210 r25224 26 26 #include "graphics/Model.h" 27 27 #include "graphics/ModelDef.h" 28 28 29 #include "graphics/ObjectBase.h" 29 30 #include "graphics/ObjectManager.h" … … 76 77 else 77 78 m_Color = CColor(r/255.0f, g/255.0f, b/255.0f, 1.0f); 79 80 81 82 83 84 78 85 } 79 86 -
ps/trunk/source/renderer/Scene.cpp
r9151 r25224 1 /* Copyright (C) 20 11 Wildfire Games.1 /* Copyright (C) 201 Wildfire Games. 2 2 * This file is part of 0 A.D. 3 3 * … … 56 56 Submit(model->ToCModelParticleEmitter()->m_Emitter.get()); 57 57 } 58 59 60 58 61 else 59 62 debug_warn(L"unknown model type");
Note:
See TracChangeset
for help on using the changeset viewer.