Package org.lwjglx.opengl
Class Display
java.lang.Object
org.lwjglx.opengl.Display
public class Display
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static org.lwjgl.opengl.GLCapabilities
capabilities
-
Constructor Summary
Constructors Constructor Description Display()
-
Method Summary
Modifier and Type Method Description static void
create()
static void
create(PixelFormat pixelFormat)
static void
destroy()
static java.lang.String
getAdapter()
static DisplayMode[]
getAvailableDisplayModes()
static DisplayMode
getDesktopDisplayMode()
static DisplayMode
getDisplayMode()
static int
getFramebufferHeight()
static int
getFramebufferWidth()
static int
getHeight()
static java.lang.String
getVersion()
static int
getWidth()
static long
getWindow()
static int
getX()
static int
getY()
static boolean
isActive()
static boolean
isBorderlessWindow()
static boolean
isCloseRequested()
static boolean
isCreated()
static boolean
isCurrent()
static boolean
isDirty()
static boolean
isFullscreen()
static boolean
isResizable()
static boolean
isVisible()
static void
makeCurrent()
static void
processMessages()
static void
releaseContext()
static void
setBorderlessWindow(boolean boolean1)
static void
setDisplayMode(DisplayMode displayMode)
static void
setDisplayModeAndFullscreen(DisplayMode displayMode)
static void
setFullscreen(boolean boolean1)
static void
setIcon(org.lwjgl.glfw.GLFWImage.Buffer buffer)
static void
setInitialBackground(float float1, float float2, float float3)
static void
setLocation(int int1, int int2)
static void
setParent(java.awt.Canvas canvas)
static void
setResizable(boolean boolean1)
static void
setTitle(java.lang.String string)
static void
setVSyncEnabled(boolean boolean1)
static void
swapBuffers()
static void
sync(int int1)
static void
update()
static void
update(boolean boolean1)
static boolean
wasResized()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
capabilities
public static org.lwjgl.opengl.GLCapabilities capabilities
-
-
Constructor Details
-
Display
public Display()
-
-
Method Details
-
create
- Throws:
LWJGLException
-
create
- Throws:
LWJGLException
-
isCreated
public static boolean isCreated() -
isActive
public static boolean isActive() -
isVisible
public static boolean isVisible() -
setLocation
public static void setLocation(int int1, int int2) -
setVSyncEnabled
public static void setVSyncEnabled(boolean boolean1) -
getWindow
public static long getWindow() -
update
public static void update() -
update
public static void update(boolean boolean1) -
processMessages
public static void processMessages() -
swapBuffers
- Throws:
LWJGLException
-
destroy
public static void destroy() -
setDisplayModeAndFullscreen
- Throws:
LWJGLException
-
setFullscreen
public static void setFullscreen(boolean boolean1) -
isFullscreen
public static boolean isFullscreen() -
setBorderlessWindow
public static void setBorderlessWindow(boolean boolean1) -
isBorderlessWindow
public static boolean isBorderlessWindow() -
setDisplayMode
- Throws:
LWJGLException
-
getDisplayMode
-
getAvailableDisplayModes
- Throws:
LWJGLException
-
getDesktopDisplayMode
-
wasResized
public static boolean wasResized() -
getX
public static int getX() -
getY
public static int getY() -
getWidth
public static int getWidth() -
getHeight
public static int getHeight() -
getFramebufferWidth
public static int getFramebufferWidth() -
getFramebufferHeight
public static int getFramebufferHeight() -
setTitle
public static void setTitle(java.lang.String string) -
isCloseRequested
public static boolean isCloseRequested() -
isDirty
public static boolean isDirty() -
setInitialBackground
public static void setInitialBackground(float float1, float float2, float float3) -
setIcon
public static void setIcon(org.lwjgl.glfw.GLFWImage.Buffer buffer) -
setResizable
public static void setResizable(boolean boolean1) -
isResizable
public static boolean isResizable() -
setParent
- Throws:
LWJGLException
-
releaseContext
- Throws:
LWJGLException
-
isCurrent
- Throws:
LWJGLException
-
makeCurrent
- Throws:
LWJGLException
-
getAdapter
public static java.lang.String getAdapter() -
getVersion
public static java.lang.String getVersion() -
sync
public static void sync(int int1)
-