summaryrefslogtreecommitdiff
path: root/native_linbsd.go
blob: ecda59ac8931a5a09d02b7ae65aee9c2ab96b28b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// +build linux freebsd

package glfw3

//#define GLFW_EXPOSE_NATIVE_X11
//#define GLFW_EXPOSE_NATIVE_GLX
//#include "glfw/include/GLFW/glfw3.h"
//#include "glfw/include/GLFW/glfw3native.h"
import "C"

func (w *Window) GetX11Window() (C.Window, error) {
	return C.glfwGetX11Window(w.data), fetchError()
}

func (w *Window) GetGLXContext() (C.GLXContext, error) {
	return C.glfwGetGLXContext(w.data), fetchError()
}

func GetX11Display() (*C.Display, error) {
	return C.glfwGetX11Display(), fetchError()
}