-
Notifications
You must be signed in to change notification settings - Fork 79
/
gles.yml
49 lines (47 loc) · 1.43 KB
/
gles.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
---
GENERATOR:
PackageName: gles
PackageDescription: "Package gles provides Go bindings for the OpenGL ES v1 API."
PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
FlagGroups:
- {name: LDFLAGS, flags: [-lGLESv1_CM]}
SysIncludes:
- GLES/gl.h
PARSER:
Arch: arm
SourcesPaths:
- GLES/gl.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
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/1.1/docs/man/$name.xml"}