mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
parent
e5e7ceb688
commit
d09fd90963
@ -59,6 +59,7 @@ const (
|
|||||||
const (
|
const (
|
||||||
AutoIconify = Hint(0x00020006)
|
AutoIconify = Hint(0x00020006)
|
||||||
ClientAPI = Hint(0x00022001)
|
ClientAPI = Hint(0x00022001)
|
||||||
|
ContextCreationAPI = Hint(0x0002200B)
|
||||||
ContextVersionMajor = Hint(0x00022002)
|
ContextVersionMajor = Hint(0x00022002)
|
||||||
ContextVersionMinor = Hint(0x00022003)
|
ContextVersionMinor = Hint(0x00022003)
|
||||||
Decorated = Hint(0x00020005)
|
Decorated = Hint(0x00020005)
|
||||||
@ -82,6 +83,7 @@ const (
|
|||||||
CursorDisabled = 0x00034003
|
CursorDisabled = 0x00034003
|
||||||
CursorHidden = 0x00034002
|
CursorHidden = 0x00034002
|
||||||
CursorNormal = 0x00034001
|
CursorNormal = 0x00034001
|
||||||
|
EGLContextAPI = 0x00036002
|
||||||
NoAPI = 0
|
NoAPI = 0
|
||||||
OpenGLAPI = 0x00030001
|
OpenGLAPI = 0x00030001
|
||||||
OpenGLESAPI = 0x00030002
|
OpenGLESAPI = 0x00030002
|
||||||
|
@ -24,4 +24,5 @@ func setGLFWClientAPI() {
|
|||||||
glfw.WindowHint(glfw.ClientAPI, glfw.OpenGLESAPI)
|
glfw.WindowHint(glfw.ClientAPI, glfw.OpenGLESAPI)
|
||||||
glfw.WindowHint(glfw.ContextVersionMajor, 2)
|
glfw.WindowHint(glfw.ContextVersionMajor, 2)
|
||||||
glfw.WindowHint(glfw.ContextVersionMinor, 0)
|
glfw.WindowHint(glfw.ContextVersionMinor, 0)
|
||||||
|
glfw.WindowHint(glfw.ContextCreationAPI, glfw.EGLContextAPI)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user