Add RGFW backend
This commit is contained in:
parent
1868520849
commit
7810550d63
23 changed files with 8110 additions and 28 deletions
20
raylib/cgo_linux_rgfw.go
Normal file
20
raylib/cgo_linux_rgfw.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
//go:build linux && rgfw && !drm && !sdl && !android
|
||||
// +build linux,rgfw,!drm,!sdl,!android
|
||||
|
||||
package rl
|
||||
|
||||
/*
|
||||
#cgo linux,!es2 LDFLAGS: -lm
|
||||
#cgo linux CFLAGS: -DPLATFORM_DESKTOP_RGFW -Wno-builtin-declaration-mismatch -Wno-discarded-qualifiers -Wno-int-conversion
|
||||
#cgo linux LDFLAGS: -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor -lm -lpthread -ldl -lrt
|
||||
|
||||
#cgo linux,!es2,!es3 LDFLAGS: -lGL
|
||||
|
||||
#cgo linux,opengl11,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||
#cgo linux,opengl21,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||
#cgo linux,opengl43,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||
#cgo linux,!opengl11,!opengl21,!opengl43,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||
#cgo linux,es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||
#cgo linux,es3,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES3
|
||||
*/
|
||||
import "C"
|
Loading…
Add table
Add a link
Reference in a new issue