Package icyllis.modernui.core.awt
Class PlatformWin32GLCanvas
java.lang.Object
icyllis.modernui.core.awt.PlatformWin32GLCanvas
- All Implemented Interfaces:
PlatformGLCanvas
Windows-specific implementation of
PlatformGLCanvas
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.lwjgl.system.jawt.JAWT
org.lwjgl.system.jawt.JAWTDrawingSurface
long
long
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
delayBeforeSwapNV
(float seconds) boolean
deleteContext
(long context) void
dispose()
boolean
isCurrent
(long context) void
lock()
boolean
makeCurrent
(long context) boolean
void
unlock()
-
Field Details
-
awt
public static final org.lwjgl.system.jawt.JAWT awt -
hwnd
public long hwnd -
wglDelayBeforeSwapNVAddr
public long wglDelayBeforeSwapNVAddr -
wglDelayBeforeSwapNVAddr_set
public boolean wglDelayBeforeSwapNVAddr_set -
ds
public org.lwjgl.system.jawt.JAWTDrawingSurface ds
-
-
Constructor Details
-
PlatformWin32GLCanvas
public PlatformWin32GLCanvas()
-
-
Method Details
-
create
- Specified by:
create
in interfacePlatformGLCanvas
- Throws:
AWTException
-
isCurrent
public boolean isCurrent(long context) - Specified by:
isCurrent
in interfacePlatformGLCanvas
-
makeCurrent
public boolean makeCurrent(long context) - Specified by:
makeCurrent
in interfacePlatformGLCanvas
-
deleteContext
public boolean deleteContext(long context) - Specified by:
deleteContext
in interfacePlatformGLCanvas
-
swapBuffers
public boolean swapBuffers()- Specified by:
swapBuffers
in interfacePlatformGLCanvas
-
delayBeforeSwapNV
public boolean delayBeforeSwapNV(float seconds) - Specified by:
delayBeforeSwapNV
in interfacePlatformGLCanvas
-
lock
- Specified by:
lock
in interfacePlatformGLCanvas
- Throws:
AWTException
-
unlock
- Specified by:
unlock
in interfacePlatformGLCanvas
- Throws:
AWTException
-
dispose
public void dispose()- Specified by:
dispose
in interfacePlatformGLCanvas
-