CSceneNode: Make use of std::array
Same behavior, stronger typing.
This commit is contained in:
parent
7065005c30
commit
3d4f2d60eb
|
@ -15,6 +15,7 @@
|
||||||
#include <Common/Math/CTransform4f.h>
|
#include <Common/Math/CTransform4f.h>
|
||||||
#include <Common/Math/CVector3f.h>
|
#include <Common/Math/CVector3f.h>
|
||||||
#include <Common/Math/ETransformSpace.h>
|
#include <Common/Math/ETransformSpace.h>
|
||||||
|
#include <array>
|
||||||
|
|
||||||
class CRenderer;
|
class CRenderer;
|
||||||
class CScene;
|
class CScene;
|
||||||
|
@ -97,7 +98,7 @@ protected:
|
||||||
|
|
||||||
uint32 mLightLayerIndex = 0;
|
uint32 mLightLayerIndex = 0;
|
||||||
uint32 mLightCount = 0;
|
uint32 mLightCount = 0;
|
||||||
CLight* mLights[8];
|
std::array<CLight*, 8> mLights{};
|
||||||
CColor mAmbientColor;
|
CColor mAmbientColor;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue