소스 검색

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) {