20 lines
959 B
Go
20 lines
959 B
Go
//go:build darwin && rgfw && !sdl
|
|
// +build darwin,rgfw,!sdl
|
|
|
|
package rl
|
|
|
|
/*
|
|
#cgo darwin LDFLAGS: -framework Foundation -framework AppKit -framework CoreVideo
|
|
#cgo darwin CFLAGS: -DPLATFORM_DESKTOP_RGFW -Wno-deprecated-declarations -Wno-implicit-const-int-float-conversion -Wno-typedef-redefinition -Wno-extern-initializer -Wno-unused-value
|
|
#cgo darwin CFLAGS: -Wno-incompatible-pointer-types -Wno-incompatible-function-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers -Wno-macro-redefined
|
|
|
|
#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"
|