mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 08:12:44 +03:00
32 lines
616 B
C
32 lines
616 B
C
#ifndef GX_GLL_GL_H
|
|
#define GX_GLL_GL_H
|
|
|
|
#include "gx/gll/GLTypes.h"
|
|
#include <OpenGL/gl.h>
|
|
|
|
typedef GLenum GLEnum;
|
|
|
|
#define kMAX_VERTEX_ATTRIBS 16
|
|
|
|
struct TextureFormatInfo {
|
|
GLenum m_InternalFormat;
|
|
GLenum m_DataFormat;
|
|
GLenum m_DataType;
|
|
int32_t m_IsCompressed;
|
|
int32_t m_BytePerPixel;
|
|
char m_Name[16];
|
|
};
|
|
|
|
struct VertexTypeInfo {
|
|
GLenum m_Type;
|
|
GLint m_Size;
|
|
GLboolean m_Normalized;
|
|
GLint m_ByteSize;
|
|
const char* m_Name;
|
|
};
|
|
|
|
extern TextureFormatInfo k_TextureFormatInfo[GLTF_NUM_TEXTURE_FORMATS];
|
|
extern VertexTypeInfo k_VertexTypeInfo[GLVT_NUM_VERTEX_TYPES];
|
|
|
|
#endif
|