Rename angle to es2
This commit is contained in:
parent
c0b171213e
commit
e3d8d6dd12
11 changed files with 62 additions and 62 deletions
|
@ -55,7 +55,7 @@ You can also build binary in [MSYS2](https://msys2.github.io/) shell.
|
||||||
* `opengl43` - uses OpenGL 4.3 backend
|
* `opengl43` - uses OpenGL 4.3 backend
|
||||||
* `opengl21` - uses OpenGL 2.1 backend (default is 3.3 on desktop)
|
* `opengl21` - uses OpenGL 2.1 backend (default is 3.3 on desktop)
|
||||||
* `opengl11` - uses OpenGL 1.1 backend (pseudo OpenGL 1.1 style)
|
* `opengl11` - uses OpenGL 1.1 backend (pseudo OpenGL 1.1 style)
|
||||||
* `angle` - uses OpenGL ES 2.0 backend (can be used to link against [Google's ANGLE](https://github.com/google/angle))
|
* `es2` - uses OpenGL ES 2.0 backend (can be used to link against [Google's ANGLE](https://github.com/google/angle))
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,12 @@ package rl
|
||||||
#cgo darwin LDFLAGS: -framework Cocoa -framework IOKit -framework CoreVideo -framework CoreFoundation
|
#cgo darwin LDFLAGS: -framework Cocoa -framework IOKit -framework CoreVideo -framework CoreFoundation
|
||||||
#cgo darwin CFLAGS: -x objective-c -Iexternal/glfw/include -D_GLFW_COCOA -D_GLFW_USE_CHDIR -D_GLFW_USE_MENUBAR -D_GLFW_USE_RETINA -Wno-deprecated-declarations -Wno-implicit-const-int-float-conversion -DPLATFORM_DESKTOP
|
#cgo darwin CFLAGS: -x objective-c -Iexternal/glfw/include -D_GLFW_COCOA -D_GLFW_USE_CHDIR -D_GLFW_USE_MENUBAR -D_GLFW_USE_RETINA -Wno-deprecated-declarations -Wno-implicit-const-int-float-conversion -DPLATFORM_DESKTOP
|
||||||
|
|
||||||
#cgo darwin,!angle LDFLAGS: -framework OpenGL
|
#cgo darwin,!es2 LDFLAGS: -framework OpenGL
|
||||||
|
|
||||||
#cgo darwin,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo darwin,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo darwin,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo darwin,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo darwin,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo darwin,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo darwin,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo darwin,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo darwin,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo darwin,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -8,12 +8,12 @@ package rl
|
||||||
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations -Wno-implicit-const-int-float-conversion -DPLATFORM_DESKTOP_SDL
|
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations -Wno-implicit-const-int-float-conversion -DPLATFORM_DESKTOP_SDL
|
||||||
#cgo darwin pkg-config: sdl2
|
#cgo darwin pkg-config: sdl2
|
||||||
|
|
||||||
#cgo darwin,!angle LDFLAGS: -framework OpenGL
|
#cgo darwin,!es2 LDFLAGS: -framework OpenGL
|
||||||
|
|
||||||
#cgo darwin,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo darwin,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo darwin,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo darwin,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo darwin,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo darwin,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo darwin,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo darwin,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo darwin,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo darwin,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -39,15 +39,15 @@ package rl
|
||||||
#cgo freebsd,!wayland LDFLAGS: -lm -pthread -ldl -lrt -lX11
|
#cgo freebsd,!wayland LDFLAGS: -lm -pthread -ldl -lrt -lX11
|
||||||
#cgo freebsd,wayland LDFLAGS: -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
#cgo freebsd,wayland LDFLAGS: -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
||||||
|
|
||||||
#cgo freebsd,!angle LDFLAGS: -lGL
|
#cgo freebsd,!es2 LDFLAGS: -lGL
|
||||||
|
|
||||||
#cgo freebsd,!wayland CFLAGS: -D_GLFW_X11
|
#cgo freebsd,!wayland CFLAGS: -D_GLFW_X11
|
||||||
#cgo freebsd,wayland CFLAGS: -D_GLFW_WAYLAND
|
#cgo freebsd,wayland CFLAGS: -D_GLFW_WAYLAND
|
||||||
|
|
||||||
#cgo freebsd,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo freebsd,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo freebsd,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo freebsd,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo freebsd,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo freebsd,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo freebsd,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo freebsd,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo freebsd,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo freebsd,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -9,12 +9,12 @@ package rl
|
||||||
|
|
||||||
#cgo freebsd pkg-config: sdl2
|
#cgo freebsd pkg-config: sdl2
|
||||||
|
|
||||||
#cgo freebsd,!angle LDFLAGS: -lGL
|
#cgo freebsd,!es2 LDFLAGS: -lGL
|
||||||
|
|
||||||
#cgo freebsd,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo freebsd,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo freebsd,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo freebsd,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo freebsd,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo freebsd,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo freebsd,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo freebsd,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo freebsd,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo freebsd,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -38,15 +38,15 @@ package rl
|
||||||
#cgo linux,!wayland LDFLAGS: -lm -pthread -ldl -lrt -lX11
|
#cgo linux,!wayland LDFLAGS: -lm -pthread -ldl -lrt -lX11
|
||||||
#cgo linux,wayland LDFLAGS: -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
#cgo linux,wayland LDFLAGS: -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
||||||
|
|
||||||
#cgo linux,!angle LDFLAGS: -lGL
|
#cgo linux,!es2 LDFLAGS: -lGL
|
||||||
|
|
||||||
#cgo linux,!wayland CFLAGS: -D_GLFW_X11
|
#cgo linux,!wayland CFLAGS: -D_GLFW_X11
|
||||||
#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND
|
#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND
|
||||||
|
|
||||||
#cgo linux,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo linux,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo linux,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo linux,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo linux,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo linux,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo linux,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo linux,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo linux,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo linux,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -4,16 +4,16 @@
|
||||||
package rl
|
package rl
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo linux,!angle LDFLAGS: -lm
|
#cgo linux,!es2 LDFLAGS: -lm
|
||||||
#cgo linux CFLAGS: -DPLATFORM_DESKTOP_SDL -Wno-stringop-overflow
|
#cgo linux CFLAGS: -DPLATFORM_DESKTOP_SDL -Wno-stringop-overflow
|
||||||
#cgo linux pkg-config: sdl2
|
#cgo linux pkg-config: sdl2
|
||||||
|
|
||||||
#cgo linux,!angle LDFLAGS: -lGL
|
#cgo linux,!es2 LDFLAGS: -lGL
|
||||||
|
|
||||||
#cgo linux,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo linux,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo linux,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo linux,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo linux,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo linux,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo linux,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo linux,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo linux,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo linux,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -39,15 +39,15 @@ package rl
|
||||||
#cgo openbsd,!wayland LDFLAGS: -lm -pthread -lX11
|
#cgo openbsd,!wayland LDFLAGS: -lm -pthread -lX11
|
||||||
#cgo openbsd,wayland LDFLAGS: -lm -pthread -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
#cgo openbsd,wayland LDFLAGS: -lm -pthread -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
||||||
|
|
||||||
#cgo openbsd,!angle LDFLAGS: -lGL
|
#cgo openbsd,!es2 LDFLAGS: -lGL
|
||||||
|
|
||||||
#cgo openbsd,!wayland CFLAGS: -D_GLFW_X11
|
#cgo openbsd,!wayland CFLAGS: -D_GLFW_X11
|
||||||
#cgo openbsd,wayland CFLAGS: -D_GLFW_WAYLAND
|
#cgo openbsd,wayland CFLAGS: -D_GLFW_WAYLAND
|
||||||
|
|
||||||
#cgo openbsd,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo openbsd,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo openbsd,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo openbsd,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo openbsd,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo openbsd,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo openbsd,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo openbsd,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo openbsd,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo openbsd,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -9,12 +9,12 @@ package rl
|
||||||
|
|
||||||
#cgo openbsd pkg-config: sdl2
|
#cgo openbsd pkg-config: sdl2
|
||||||
|
|
||||||
#cgo openbsd,!angle LDFLAGS: -lGL
|
#cgo openbsd,!es2 LDFLAGS: -lGL
|
||||||
|
|
||||||
#cgo openbsd,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo openbsd,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo openbsd,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo openbsd,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo openbsd,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo openbsd,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo openbsd,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo openbsd,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo openbsd,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo openbsd,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -26,12 +26,12 @@ package rl
|
||||||
#cgo windows LDFLAGS: -lgdi32 -lwinmm -lole32
|
#cgo windows LDFLAGS: -lgdi32 -lwinmm -lole32
|
||||||
#cgo windows CFLAGS: -D_GLFW_WIN32 -Iexternal -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -DPLATFORM_DESKTOP -Wno-stringop-overflow
|
#cgo windows CFLAGS: -D_GLFW_WIN32 -Iexternal -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -DPLATFORM_DESKTOP -Wno-stringop-overflow
|
||||||
|
|
||||||
#cgo windows,!angle LDFLAGS: -lopengl32
|
#cgo windows,!es2 LDFLAGS: -lopengl32
|
||||||
|
|
||||||
#cgo windows,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo windows,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo windows,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo windows,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo windows,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo windows,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo windows,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo windows,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo windows,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo windows,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -7,12 +7,12 @@ package rl
|
||||||
#cgo windows LDFLAGS: -lgdi32 -lwinmm -lole32 -lSDL2
|
#cgo windows LDFLAGS: -lgdi32 -lwinmm -lole32 -lSDL2
|
||||||
#cgo windows CFLAGS: -Iexternal -DPLATFORM_DESKTOP_SDL -Wno-stringop-overflow
|
#cgo windows CFLAGS: -Iexternal -DPLATFORM_DESKTOP_SDL -Wno-stringop-overflow
|
||||||
|
|
||||||
#cgo windows,!angle LDFLAGS: -lopengl32
|
#cgo windows,!es2 LDFLAGS: -lopengl32
|
||||||
|
|
||||||
#cgo windows,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
#cgo windows,opengl11,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||||
#cgo windows,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
#cgo windows,opengl21,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||||
#cgo windows,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
#cgo windows,opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||||
#cgo windows,!opengl11,!opengl21,!opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_33
|
#cgo windows,!opengl11,!opengl21,!opengl43,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||||
#cgo windows,angle CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
#cgo windows,es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue