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