소스 검색

Merge pull request #61 from amyadzuki/patch-8

Added method: Window
Daniel Salvadori 7 년 전
부모
커밋
0896963e26
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      window/glfw.go

+ 6 - 0
window/glfw.go

@@ -233,6 +233,12 @@ func (m *glfwManager) CreateWindow(width, height int, title string, fullscreen b
 	return w, nil
 }
 
+// Window returns the window pointer and satisfies the IWindow interface
+func (m *glfwWindow) Window() interface{} {
+
+	return m.win
+}
+
 // MakeContextCurrent makes the OpenGL context of this window current on the calling thread
 func (w *glfwWindow) MakeContextCurrent() {