Parcourir la source

Added method: Window

`Window` returns the window pointer so that other OpenGL libraries can be used alongside g3n
amyadzuki il y a 7 ans
Parent
commit
f18e1e1f0a
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  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) {