-
Notifications
You must be signed in to change notification settings - Fork 80
/
gles3.yml
69 lines (65 loc) · 2.36 KB
/
gles3.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: gles3
PackageDescription: "Package gles3 provides Go bindings for the OpenGL ES v3 API."
PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
FlagGroups:
- {name: LDFLAGS, flags: [-lGLESv3]}
SysIncludes:
- GLES3/gl3.h
PARSER:
Arch: arm
SourcesPaths:
- GLES3/gl3.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/man3/html/$name.xhtml"}