Rename EnumMap to EnumArray after nazarautils update
This commit is contained in:
@@ -78,8 +78,8 @@ namespace Nz
|
||||
|
||||
struct DefaultTextures
|
||||
{
|
||||
EnumMap<ImageType, std::shared_ptr<Texture>> depthTextures;
|
||||
EnumMap<ImageType, std::shared_ptr<Texture>> whiteTextures;
|
||||
EnumArray<ImageType, std::shared_ptr<Texture>> depthTextures;
|
||||
EnumArray<ImageType, std::shared_ptr<Texture>> whiteTextures;
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace Nz
|
||||
std::vector<TextureData> m_textures;
|
||||
std::vector<UniformBlockData> m_uniformBlocks;
|
||||
mutable std::weak_ptr<MaterialInstance> m_defaultInstance;
|
||||
EnumMap<EngineShaderBinding, UInt32> m_engineShaderBindings;
|
||||
EnumArray<EngineShaderBinding, UInt32> m_engineShaderBindings;
|
||||
MaterialSettings m_settings;
|
||||
ShaderReflection m_reflection;
|
||||
};
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Nz
|
||||
private:
|
||||
inline void UpdateVertices();
|
||||
|
||||
EnumMap<RectCorner, Color> m_cornerColor;
|
||||
EnumArray<RectCorner, Color> m_cornerColor;
|
||||
std::array<VertexStruct_XYZ_Color_UV, 4> m_vertices;
|
||||
std::shared_ptr<MaterialInstance> m_material;
|
||||
Color m_color;
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Nz
|
||||
{
|
||||
VertexStruct_XYZ_Color_UV* vertices = m_vertices.data();
|
||||
|
||||
EnumMap<RectCorner, Vector2f> cornerExtent;
|
||||
EnumArray<RectCorner, Vector2f> cornerExtent;
|
||||
cornerExtent[RectCorner::LeftBottom] = Vector2f(0.f, 0.f);
|
||||
cornerExtent[RectCorner::RightBottom] = Vector2f(1.f, 0.f);
|
||||
cornerExtent[RectCorner::LeftTop] = Vector2f(0.f, 1.f);
|
||||
|
||||
Reference in New Issue
Block a user