Explorar o código

Added method: Window

`Window` returns the window pointer so that other OpenGL libraries can be used alongside g3n
amyadzuki %!s(int64=7) %!d(string=hai) anos
pai
achega
f18e1e1f0a
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      window/glfw.go

+ 6 - 0
window/glfw.go

@@ -75,6 +75,12 @@ func Glfw() (IWindowManager, error) {
 	return manager, nil
 }
 
+// Window returns the window pointer
+func (m *glfwManager) Window() interface{} {
+
+	return m.win
+}
+
 // ScreenResolution returns the screen resolution
 func (m *glfwManager) ScreenResolution(p interface{}) (width, height int) {