mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 13:07:43 +00:00
Graphics/Shaders: Use std::array where applicable
Makes the arrays strongly typed and impervious to array->pointer decay. This also allows simplifying some operations (such as being able to call fill() instead of needing to use std::fill, etc).
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
||||
|
||||
#include <zeus/CColor.hpp>
|
||||
@@ -14,9 +16,9 @@ class CEnvFxManagerGrid;
|
||||
class CEnvFxShaders {
|
||||
public:
|
||||
struct Instance {
|
||||
zeus::CVector3f positions[4];
|
||||
std::array<zeus::CVector3f, 4> positions;
|
||||
zeus::CColor color;
|
||||
zeus::CVector2f uvs[4];
|
||||
std::array<zeus::CVector2f, 4> uvs;
|
||||
};
|
||||
struct Uniform {
|
||||
zeus::CMatrix4f mv;
|
||||
|
||||
Reference in New Issue
Block a user