mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
ui: Add OpenGL version
This commit is contained in:
parent
6c14c31c55
commit
60a504543f
@ -41,6 +41,8 @@ func Init() *opengl.Context {
|
|||||||
}
|
}
|
||||||
glfw.WindowHint(glfw.Visible, glfw.False)
|
glfw.WindowHint(glfw.Visible, glfw.False)
|
||||||
glfw.WindowHint(glfw.Resizable, glfw.False)
|
glfw.WindowHint(glfw.Resizable, glfw.False)
|
||||||
|
glfw.WindowHint(glfw.ContextVersionMajor, 2)
|
||||||
|
glfw.WindowHint(glfw.ContextVersionMinor, 1)
|
||||||
|
|
||||||
// As start, create an window with temporary size to create OpenGL context thread.
|
// As start, create an window with temporary size to create OpenGL context thread.
|
||||||
window, err := glfw.CreateWindow(16, 16, "", nil, nil)
|
window, err := glfw.CreateWindow(16, 16, "", nil, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user