Add GRAPHICS_API_OPENGL_43

This commit is contained in:
Milan Nikolic 2021-11-11 18:00:12 +01:00
parent 8ec7b8522a
commit ec25c4ec9e
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
4 changed files with 7 additions and 3 deletions

View file

@ -57,6 +57,7 @@ You can also build binary in [MSYS2](https://msys2.github.io/) shell.
* `rpi` - build for Raspberry Pi platform (PLATFORM_RPI) * `rpi` - build for Raspberry Pi platform (PLATFORM_RPI)
* `wayland` - build against Wayland libraries * `wayland` - build against Wayland libraries
* `noaudio` - disables audio functions * `noaudio` - disables audio functions
* `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)

View file

@ -26,6 +26,7 @@ package rl
#cgo darwin,opengl11 CFLAGS: -DGRAPHICS_API_OPENGL_11 #cgo darwin,opengl11 CFLAGS: -DGRAPHICS_API_OPENGL_11
#cgo darwin,opengl21 CFLAGS: -DGRAPHICS_API_OPENGL_21 #cgo darwin,opengl21 CFLAGS: -DGRAPHICS_API_OPENGL_21
#cgo darwin,!opengl11,!opengl21 CFLAGS: -DGRAPHICS_API_OPENGL_33 #cgo darwin,opengl43 CFLAGS: -DGRAPHICS_API_OPENGL_43
#cgo darwin,!opengl11,!opengl21,!opengl43 CFLAGS: -DGRAPHICS_API_OPENGL_33
*/ */
import "C" import "C"

View file

@ -46,6 +46,7 @@ package rl
#cgo linux,opengl11 CFLAGS: -DGRAPHICS_API_OPENGL_11 #cgo linux,opengl11 CFLAGS: -DGRAPHICS_API_OPENGL_11
#cgo linux,opengl21 CFLAGS: -DGRAPHICS_API_OPENGL_21 #cgo linux,opengl21 CFLAGS: -DGRAPHICS_API_OPENGL_21
#cgo linux,!opengl11,!opengl21 CFLAGS: -DGRAPHICS_API_OPENGL_33 #cgo linux,opengl43 CFLAGS: -DGRAPHICS_API_OPENGL_43
#cgo linux,!opengl11,!opengl21,!opengl43 CFLAGS: -DGRAPHICS_API_OPENGL_33
*/ */
import "C" import "C"

View file

@ -26,6 +26,7 @@ package rl
#cgo windows,opengl11 CFLAGS: -DGRAPHICS_API_OPENGL_11 #cgo windows,opengl11 CFLAGS: -DGRAPHICS_API_OPENGL_11
#cgo windows,opengl21 CFLAGS: -DGRAPHICS_API_OPENGL_21 #cgo windows,opengl21 CFLAGS: -DGRAPHICS_API_OPENGL_21
#cgo windows,!opengl11,!opengl21 CFLAGS: -DGRAPHICS_API_OPENGL_33 #cgo windows,opengl43 CFLAGS: -DGRAPHICS_API_OPENGL_43
#cgo windows,!opengl11,!opengl21,!opengl43 CFLAGS: -DGRAPHICS_API_OPENGL_33
*/ */
import "C" import "C"