mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
internal/graphicsdriver/opengl/gl: Support OpenBSD
This commit is contained in:
parent
ef62f407d1
commit
99bfdef416
@ -6,7 +6,7 @@
|
|||||||
package gl
|
package gl
|
||||||
|
|
||||||
// #cgo darwin LDFLAGS: -framework OpenGL
|
// #cgo darwin LDFLAGS: -framework OpenGL
|
||||||
// #cgo linux freebsd pkg-config: gl
|
// #cgo linux freebsd openbsd pkg-config: gl
|
||||||
//
|
//
|
||||||
// #ifndef APIENTRY
|
// #ifndef APIENTRY
|
||||||
// #define APIENTRY
|
// #define APIENTRY
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
// correct version is chosen automatically based on build tags:
|
// correct version is chosen automatically based on build tags:
|
||||||
//
|
//
|
||||||
// darwin: CGL
|
// darwin: CGL
|
||||||
// linux freebsd: GLX
|
// linux freebsd openbsd: GLX
|
||||||
//
|
//
|
||||||
// Use of EGL instead of the platform's default (listed above) is made possible
|
// Use of EGL instead of the platform's default (listed above) is made possible
|
||||||
// via the "egl" build tag.
|
// via the "egl" build tag.
|
||||||
@ -20,8 +20,8 @@ package gl
|
|||||||
/*
|
/*
|
||||||
#cgo darwin CFLAGS: -DTAG_DARWIN
|
#cgo darwin CFLAGS: -DTAG_DARWIN
|
||||||
#cgo darwin LDFLAGS: -framework OpenGL
|
#cgo darwin LDFLAGS: -framework OpenGL
|
||||||
#cgo linux freebsd CFLAGS: -DTAG_POSIX
|
#cgo linux freebsd openbsd CFLAGS: -DTAG_POSIX
|
||||||
#cgo linux freebsd pkg-config: gl
|
#cgo linux freebsd openbsd pkg-config: gl
|
||||||
#cgo egl CFLAGS: -DTAG_EGL
|
#cgo egl CFLAGS: -DTAG_EGL
|
||||||
#cgo egl pkg-config: egl
|
#cgo egl pkg-config: egl
|
||||||
// Check the EGL tag first as it takes priority over the platform's default
|
// Check the EGL tag first as it takes priority over the platform's default
|
||||||
|
Loading…
Reference in New Issue
Block a user