3 static if (__traits(compiles
, () { import arsd
.simpledisplay
; })) {
4 public import arsd
.simpledisplay
;
6 public import simpledisplay
;
10 // ////////////////////////////////////////////////////////////////////////// //
11 extern(C
) nothrow @nogc:
13 alias GLboolean
= ubyte;
18 alias GLfloat
= float;
21 enum uint GL_RGBA8
= 0x8058;
22 enum uint GL_FRAGMENT_SHADER
= 0x8B30;
23 enum uint GL_COMPILE_STATUS
= 0x8B81;
24 enum uint GL_INFO_LOG_LENGTH
= 0x8B84;
25 enum uint GL_FRAMEBUFFER_COMPLETE_EXT
= 0x8CD5;
26 enum uint GL_FRAMEBUFFER_EXT
= 0x8D40;
27 enum uint GL_COLOR_ATTACHMENT0_EXT
= 0x8CE0;
28 enum uint GL_RENDERBUFFER_EXT
= 0x8D41;
29 enum uint GL_DEPTH_COMPONENT16
= 0x81A5;
30 enum uint GL_DEPTH_COMPONENT24
= 0x81A6;
31 enum uint GL_DEPTH_COMPONENT32
= 0x81A7;
32 enum uint GL_DEPTH_ATTACHMENT_EXT
= 0x8D00;
33 enum uint GL_TEXTURE0
= 0x84C0;
34 enum uint GL_TEXTURE1
= 0x84C1;
35 enum uint GL_TEXTURE2
= 0x84C2;
36 enum uint GL_TEXTURE3
= 0x84C3;
37 enum uint GL_TEXTURE4
= 0x84C4;
38 enum uint GL_TEXTURE5
= 0x84C5;
39 enum uint GL_TEXTURE6
= 0x84C6;
40 enum uint GL_TEXTURE7
= 0x84C7;
41 enum uint GL_TEXTURE8
= 0x84C8;
42 enum uint GL_TEXTURE9
= 0x84C9;
43 enum uint GL_TEXTURE10
= 0x84CA;
44 enum uint GL_TEXTURE11
= 0x84CB;
45 enum uint GL_TEXTURE12
= 0x84CC;
46 enum uint GL_TEXTURE13
= 0x84CD;
47 enum uint GL_TEXTURE14
= 0x84CE;
48 enum uint GL_TEXTURE15
= 0x84CF;
49 enum uint GL_TEXTURE16
= 0x84D0;
50 enum uint GL_TEXTURE17
= 0x84D1;
51 enum uint GL_TEXTURE18
= 0x84D2;
52 enum uint GL_TEXTURE19
= 0x84D3;
53 enum uint GL_TEXTURE20
= 0x84D4;
54 enum uint GL_TEXTURE21
= 0x84D5;
55 enum uint GL_TEXTURE22
= 0x84D6;
56 enum uint GL_TEXTURE23
= 0x84D7;
57 enum uint GL_TEXTURE24
= 0x84D8;
58 enum uint GL_TEXTURE25
= 0x84D9;
59 enum uint GL_TEXTURE26
= 0x84DA;
60 enum uint GL_TEXTURE27
= 0x84DB;
61 enum uint GL_TEXTURE28
= 0x84DC;
62 enum uint GL_TEXTURE29
= 0x84DD;
63 enum uint GL_TEXTURE30
= 0x84DE;
64 enum uint GL_TEXTURE31
= 0x84DF;
65 enum uint GL_ACTIVE_TEXTURE
= 0x84E0;
66 enum uint GL_COMPILE
= 0x1300;
67 enum uint GL_COMPILE_AND_EXECUTE
= 0x1301;
68 enum uint GL_TEXTURE_CUBE_MAP
= 0x8513;
69 enum uint GL_TEXTURE_WRAP_R
= 0x8072;
70 enum uint GL_TEXTURE_CUBE_MAP_POSITIVE_X
= 0x8515;
71 enum uint GL_TEXTURE_CUBE_MAP_NEGATIVE_X
= 0x8516;
72 enum uint GL_TEXTURE_CUBE_MAP_POSITIVE_Y
= 0x8517;
73 enum uint GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
= 0x8518;
74 enum uint GL_TEXTURE_CUBE_MAP_POSITIVE_Z
= 0x8519;
75 enum uint GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
= 0x851A;
76 enum uint GL_RGBA16F
= 0x881A;
77 enum uint GL_FLOAT
= 0x1406;
78 enum uint GL_DOUBLE
= 0x140A;
80 GLuint
glCreateShader (GLenum
);
81 void glShaderSource (GLuint
, GLsizei
, const(GLchar
*)*, const(GLint
)*);
82 void glCompileShader (GLuint
);
83 GLuint
glCreateProgram ();
84 void glAttachShader (GLuint
, GLuint
);
85 void glLinkProgram (GLuint
);
86 void glUseProgram (GLuint
);
87 void glGetShaderiv (GLuint
, GLenum
, GLint
*);
88 void glGetShaderInfoLog (GLuint
, GLsizei
, GLsizei
*, GLchar
*);
90 GLint
glGetUniformLocation (GLuint
, const(GLchar
)*);
92 void glUniform1f (GLint
, GLfloat
);
93 void glUniform2f (GLint
, GLfloat
, GLfloat
);
94 void glUniform3f (GLint
, GLfloat
, GLfloat
, GLfloat
);
95 void glUniform4f (GLint
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
96 void glUniform1i (GLint
, GLint
);
97 void glUniform2i (GLint
, GLint
, GLint
);
98 void glUniform3i (GLint
, GLint
, GLint
, GLint
);
99 void glUniform4i (GLint
, GLint
, GLint
, GLint
, GLint
);
100 void glUniform1fv (GLint
, GLsizei
, const(GLfloat
)*);
101 void glUniform2fv (GLint
, GLsizei
, const(GLfloat
)*);
102 void glUniform3fv (GLint
, GLsizei
, const(GLfloat
)*);
103 void glUniform4fv (GLint
, GLsizei
, const(GLfloat
)*);
104 void glUniform1iv (GLint
, GLsizei
, const(GLint
)*);
105 void glUniform2iv (GLint
, GLsizei
, const(GLint
)*);
106 void glUniform3iv (GLint
, GLsizei
, const(GLint
)*);
107 void glUniform4iv (GLint
, GLsizei
, const(GLint
)*);
108 void glUniformMatrix2fv (GLint
, GLsizei
, GLboolean
, const(GLfloat
)*);
109 void glUniformMatrix3fv (GLint
, GLsizei
, GLboolean
, const(GLfloat
)*);
110 void glUniformMatrix4fv (GLint
, GLsizei
, GLboolean
, const(GLfloat
)*);
112 void glGenFramebuffersEXT (GLsizei
, GLuint
*);
113 void glBindFramebufferEXT (GLenum
, GLuint
);
114 void glFramebufferTexture2DEXT (GLenum
, GLenum
, GLenum
, GLuint
, GLint
);
115 void glGenRenderbuffersEXT (GLsizei
, GLuint
*);
116 void glRenderbufferStorageEXT (GLenum
, GLenum
, GLsizei
, GLsizei
);
117 void glFramebufferRenderbufferEXT (GLenum
, GLenum
, GLenum
, GLuint
);
118 GLenum
glCheckFramebufferStatusEXT (GLenum
);
119 void glBindRenderbufferEXT (GLenum
, GLuint
);
121 void glActiveTexture (GLenum
);
123 GLuint
glGenLists (GLsizei
);
124 void glNewList (GLuint
, GLenum
);
126 void glCallList (GLuint
);
127 void glCallLists (GLsizei
, GLenum
, const(void)*);
128 void glDeleteLists (GLuint
, GLsizei
);