GLCommon: Make use of std::array where applicable

This commit is contained in:
Lioncash 2020-06-18 12:00:31 -04:00
parent b781ca7b89
commit a0ec0d938f
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#include "GLCommon.h"
#include <Common/Macros.h>
GLenum gBlendFactor[] =
const std::array<GLenum, 8> gBlendFactor
{
GL_ZERO, // GX_BL_ZERO
GL_ONE, // GX_BL_ONE
@ -14,7 +14,7 @@ GLenum gBlendFactor[] =
};
GLenum gZMode[] =
const std::array<GLenum, 7> gZMode
{
GL_NEVER, // GX_NEVER
GL_LESS, // GX_LESS

View File

@ -3,6 +3,7 @@
#include <Common/BasicTypes.h>
#include <GL/glew.h>
#include <array>
enum class EBlendFactor
{
@ -29,8 +30,8 @@ enum class EPrimitiveType
Points = 0xB8
};
extern GLenum gBlendFactor[];
extern GLenum gZMode[];
extern const std::array<GLenum, 8> gBlendFactor;
extern const std::array<GLenum, 7> gZMode;
GLenum GXPrimToGLPrim(EPrimitiveType Type);
#endif // GLCOMMON_H