-
-
Notifications
You must be signed in to change notification settings - Fork 180
/
Copy pathGLInfo.h
51 lines (38 loc) · 1.13 KB
/
GLInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Copyright (c) scott.cgi All Rights Reserved.
*
* This source code belongs to project Mojoc, which is a pure C Game Engine hosted on GitHub.
* The Mojoc Game Engine is licensed under the MIT License, and will continue to be iterated with coding passion.
*
* License : https://github.com/scottcgi/Mojoc/blob/master/LICENSE
* GitHub : https://github.com/scottcgi/Mojoc
* CodeStyle: https://github.com/scottcgi/Mojoc/blob/master/Docs/CodeStyle.md
*
* Since : 2013-4-17
* Update : 2019-1-14
* Author : scott.cgi
*/
#ifndef GL_INFO_H
#define GL_INFO_H
#include <stdbool.h>
#include "Engine/Graphics/OpenGL/Platform/gl3.h"
#include "Engine/Toolkit/HeaderUtils/Define.h"
/**
* OpenGL some information.
*/
struct AGLInfo
{
GLfloat pointSizeRange[2];
GLfloat lineWidthRange[2];
GLint maxVertexAttribs;
GLint maxVertexUniformVectors;
GLint maxVertexTextureImageUnits;
GLint maxFragmentUniformVectors;
GLint maxVaryingVectors;
GLint maxCombinedTextureImageUnits;
GLint maxTextureImageUnits;
float version;
void (*Init)(void);
};
extern struct AGLInfo AGLInfo[1];
#endif