浏览代码

Added method: Window

`Window` returns the window pointer so that other OpenGL libraries can be used alongside g3n
amyadzuki 7 年之前
父节点
当前提交
f18e1e1f0a
共有 1 个文件被更改,包括 6 次插入0 次删除
  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) {