Add RGFW backend
This commit is contained in:
parent
1868520849
commit
7810550d63
23 changed files with 8110 additions and 28 deletions
19
raylib/cgo_windows_rgfw.go
Normal file
19
raylib/cgo_windows_rgfw.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
//go:build windows && rgfw && !sdl
|
||||
// +build windows,rgfw,!sdl
|
||||
|
||||
package rl
|
||||
|
||||
/*
|
||||
#cgo windows LDFLAGS: -lgdi32 -lwinmm
|
||||
#cgo windows CFLAGS: -Iexternal -DPLATFORM_DESKTOP_RGFW -Wno-stringop-overflow -Wno-discarded-qualifiers
|
||||
|
||||
#cgo windows,!es2,!es3 LDFLAGS: -lopengl32
|
||||
|
||||
#cgo windows,opengl11,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||
#cgo windows,opengl21,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||
#cgo windows,opengl43,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||
#cgo windows,!opengl11,!opengl21,!opengl43,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_33
|
||||
#cgo windows,es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_ES2
|
||||
#cgo windows,es3,!es2 CFLAGS: -DGRAPHICS_API_OPENGL_ES3
|
||||
*/
|
||||
import "C"
|
Loading…
Add table
Add a link
Reference in a new issue