-
Notifications
You must be signed in to change notification settings - Fork 79
/
gles2.yml
69 lines (65 loc) · 2.36 KB
/
gles2.yml
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
65
66
67
68
69
---
GENERATOR:
PackageName: gles2
PackageDescription: "Package gles2 provides Go bindings for the OpenGL ES v2 API."
PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
FlagGroups:
- {name: LDFLAGS, flags: [-lGLESv2]}
SysIncludes:
- GLES2/gl2.h
PARSER:
Arch: arm
SourcesPaths:
- GLES2/gl2.h
IncludePaths:
# NOTE: Replace these paths if you want to re-generate.
- /Users/xlab/Library/Android/sdk/ndk-bundle/platforms/android-23/arch-arm/usr/include
- /Users/xlab/Library/Android/sdk/ndk-bundle/platforms/android-23/arch-arm/usr/include/linux
Defines:
__ANDROID__: 1
TRANSLATOR:
ConstRules:
defines: expand
enum: expand
PtrTips:
function:
- {target: ^glGenBuffers$, tips: [size,arr]}
- {target: ^glGenFramebuffers$, tips: [size,arr]}
- {target: ^glGenRenderbuffers$, tips: [size,arr]}
- {target: ^glGenTextures$, tips: [size,arr]}
- {target: ^glGetActiveAttrib$, tips: [0,0,size,ref,ref,ref,arr]}
- {target: ^glGetActiveUniform$, tips: [0,0,size,ref,ref,ref,arr]}
- {target: ^glGetAttachedShaders$, tips: [0,size,ref,arr]}
- {target: ^glGetShaderSource$, tips: [0,size,ref,arr]}
- {target: ^glGetShaderInfoLog$, tips: [0,size,ref,arr]}
- {target: ^glGetProgramInfoLog$, tips: [0,size,ref,arr]}
- {target: ^glGetShaderPrecisionFormat$, tips: [0,0,arr,ref]}
- {target: ^glGetVertexAttribPointerv$, tips: [0,0,ref]}
# parameter at the end:
- {target: ^glUniformMatrix, tips: [0,0,0,ref]}
- {target: iv$, tips: [0,0,ref]}
- {target: fv$, tips: [0,0,ref]}
TypeTips:
function:
# do not stick with GL types, use Go types for API instead
- {target: ., self: plain, tips: [plain,plain,plain,plain,plain,plain,plain,plain,plain]}
Rules:
global:
- {action: accept, from: "^GL"}
- {action: replace, from: "^GL"}
function:
- {action: accept, from: ^gl}
- {action: replace, from: ^gl}
- {transform: export}
type:
- {action: replace, from: "_t$"}
- {transform: export}
- {load: snakecase}
const:
- {action: replace, from: "^_"}
private:
- {transform: unexport}
- {load: snakecase}
post-global:
- {action: doc, from: "^gl",
to: "https://www.khronos.org/opengles/sdk/docs/man/xhtml/$name.xml"}