-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprofile.txt
64 lines (45 loc) · 1.91 KB
/
profile.txt
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
52
53
54
55
56
57
58
59
60
61
62
63
64
# This file is used as input for flextGLgen.py
# It defines the target OpenGL version and lists the used extensions.
# Lines beginning with '#' are comments
# Line indentation is ignored
# The 'version' keyword followed by a version number defines the target
# OpenGL version:
version 3.3 core
# You have to define either 'core' or 'compatibility' as profile
# This is the minimum version necessary to run the
# application. OpenGL-drivers with a lower version will exit in an
# error message.
# Extensions are declared with the 'extension' keyword
# followed by the name of the extensions:
extension ARB_vertex_array_object required
extension EXT_texture_filter_anisotropic optional
# Extensions can be either optional or required.
# Missing required extensions will result in the application exiting with an
# error message.
# Optional extensions will create the FLEXTGL_<extname> GLboolean fields
# for checking if an extension is supported.
# An optional whitelist of functions to load can be supplied
# This allows reducing the generated code size and loading times
# 'begin functions' starts a space-separated list of functions to be loaded and
# 'end functions' ends it. Comments still work.
# The 'gl' at the beginning of function names should be omitted
begin functions
# Basic functions
Enable GetError Clear
# Shader handling
GetShaderInfoLog GetShaderiv ShaderSource
CreateShader DeleteShader IsShader CompileShader AttachShader
# Program Objects
CreateProgram DeleteProgram GetProgramInfoLog GetProgramiv
UseProgram IsProgram LinkProgram
# Uniforms
GetUniformLocation Uniform1f Uniform3fv Uniform4fv
UniformMatrix3fv UniformMatrix4fv
# Buffer handling
GenBuffers BindBuffer BufferData DeleteBuffers
# Vertex Arrays
GenVertexArrays BindVertexArray DeleteVertexArrays
VertexAttribPointer EnableVertexAttribArray GetAttribLocation
# Drawing
DrawElements
end functions