Add RGFW backend
This commit is contained in:
parent
1868520849
commit
7810550d63
23 changed files with 8110 additions and 28 deletions
19
raylib/cgo_darwin_rgfw.go
Normal file
19
raylib/cgo_darwin_rgfw.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
//go:build darwin && rgfw && !sdl
|
||||
// +build darwin,rgfw,!sdl
|
||||
|
||||
package rl
|
||||
|
||||
/*
|
||||
#cgo darwin LDFLAGS: -framework Foundation -framework AppKit -framework CoreVideo
|
||||
#cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations -Wno-implicit-const-int-float-conversion -DPLATFORM_DESKTOP_RGFW
|
||||
|
||||
#cgo darwin,!es2,!es3 LDFLAGS: -framework OpenGL
|
||||
|
||||
#cgo darwin,opengl11,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||
#cgo darwin,opengl21,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||
#cgo darwin,opengl43,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||
#cgo darwin,!opengl11,!opengl21,!opengl43,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||
#cgo darwin,es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||
#cgo darwin,es3,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES3
|
||||
*/
|
||||
import "C"
|
Loading…
Add table
Add a link
Reference in a new issue