Explorar el Código

Added method: Window

`Window` returns the window pointer so that other OpenGL libraries can be used alongside g3n
amyadzuki hace 7 años
padre
commit
f18e1e1f0a
Se han modificado 1 ficheros con 6 adiciones y 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) {