mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 10:49:23 +00:00
Initial commit of current work on Prime World Editor
This commit is contained in:
34
OpenGL/GLCommon.h
Normal file
34
OpenGL/GLCommon.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef GLCOMMON_H
|
||||
#define GLCOMMON_H
|
||||
|
||||
#include <GL/glew.h>
|
||||
#include <Common/types.h>
|
||||
|
||||
enum EBlendFactor
|
||||
{
|
||||
eBlendZero = GL_ZERO,
|
||||
eBlendOne = GL_ONE,
|
||||
eBlendSrcColor = GL_SRC_COLOR,
|
||||
eBlendInvSrcColor = GL_ONE_MINUS_SRC_COLOR,
|
||||
eBlendSrcAlpha = GL_SRC_ALPHA,
|
||||
eBlendInvSrcAlpha = GL_ONE_MINUS_SRC_ALPHA,
|
||||
eBlendDstAlpha = GL_DST_ALPHA,
|
||||
eBlendInvDstAlpha = GL_ONE_MINUS_DST_ALPHA
|
||||
};
|
||||
|
||||
enum EGXPrimitiveType
|
||||
{
|
||||
eGX_Quads = 0x80,
|
||||
eGX_Triangles = 0x90,
|
||||
eGX_TriangleStrip = 0x98,
|
||||
eGX_TriangleFan = 0xA0,
|
||||
eGX_Lines = 0xA8,
|
||||
eGX_LineStrip = 0xB0,
|
||||
eGX_Points = 0xB8
|
||||
};
|
||||
|
||||
extern GLenum glBlendFactor[];
|
||||
extern GLenum glZMode[];
|
||||
GLenum GXPrimToGLPrim(EGXPrimitiveType t);
|
||||
|
||||
#endif // GLCOMMON_H
|
||||
Reference in New Issue
Block a user