| Modifier and Type | Field and Description |
|---|---|
| private static float | b
Initial Background Color of Display |
| private static ByteBuffer[] | cached_icons
Cached window icons, for when Display is recreated |
| private static final ComponentListener | |
| private static DisplayMode | current_mode
The current display mode, if created |
| private static final DisplayImplementation | display_impl
The display implementor |
| private static DrawableLWJGL | drawable
The Drawable instance that tracks the current Display context |
| private static boolean | fullscreen
Fullscreen |
| private static float | g
Initial Background Color of Display |
| private static int | height
the height of the Display window |
| private static final DisplayMode | initial_mode
The initial display mode |
| private static Canvas | parent
The parent, if any |
| private static boolean | |
| private static float | r
Initial Background Color of Display |
| private static final Thread | |
| private static int | swap_interval
Swap interval |
| private static String | title
Title of the window (never null) |
| private static int | width
the width of the Display window |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static int | x
X coordinate of the window |
| private static int | y
Y coordinate of the window. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | create(PixelFormat
Describes the minimum specifications the context must fulfill. pixel_format)Create the OpenGL context with the given minimum parameters. |
| public static void | create(PixelFormat
Describes the minimum specifications the context must fulfill. pixel_format, Drawable The Drawable to share context with. (optional, may be null) shared_drawable)Create the OpenGL context with the given minimum parameters. |
| public static void | create(PixelFormat
Describes the minimum specifications the context must fulfill. pixel_format, ContextAttribs The ContextAttribs to use when creating the context. (optional, may be null) attribs)Create the OpenGL context with the given minimum parameters. |
| public static void | create(PixelFormat
Describes the minimum specifications the context must fulfill. pixel_format, Drawable The Drawable to share context with. (optional, may be null) shared_drawable, ContextAttribs The ContextAttribs to use when creating the context. (optional, may be null) attribs)Create the OpenGL context with the given minimum parameters. |
| public static void | create(PixelFormatLWJGL
Describes the minimum specifications the context must fulfill. Must be an instance of org.lwjgl.opengles.PixelFormat. pixel_format)Create the OpenGL ES context with the given minimum parameters. |
| public static void | create(PixelFormatLWJGL
Describes the minimum specifications the context must fulfill. Must be an instance of org.lwjgl.opengles.PixelFormat. pixel_format, Drawable The Drawable to share context with. (optional, may be null) shared_drawable)Create the OpenGL ES context with the given minimum parameters. |
| public static void | create(PixelFormatLWJGL
Describes the minimum specifications the context must fulfill. Must be an instance of org.lwjgl.opengles.PixelFormat. pixel_format, ContextAttribs The ContextAttribs to use when creating the context. (optional, may be null) attribs)Create the OpenGL ES context with the given minimum parameters. |
| public static void | create(PixelFormatLWJGL
Describes the minimum specifications the context must fulfill. Must be an instance of org.lwjgl.opengles.PixelFormat. pixel_format, Drawable The Drawable to share context with. (optional, may be null) shared_drawable, ContextAttribs The ContextAttribs to use when creating the context. (optional, may be null) attribs)Create the OpenGL ES context with the given minimum parameters. |
| private static DisplayImplementation | |
| private static void | |
| public static void | |
| private static void | |
| public static String | |
| public static DisplayMode[] | Returns: an array of all display modes the system reckons it can handle.Returns the entire list of possible fullscreen display modes as an array, in no particular order. |
| public static DisplayMode | |
| public static DisplayMode | Returns: The current display modeReturn the current display mode, as set by setDisplayMode(). |
| public static Drawable | Returns: the Drawable corresponding to the Display contextFetch the Drawable from the Display. |
| private static DisplayMode | |
| public static int | Returns: this method will return the height of the Display window. If running in fullscreen mode it will return the height of the current set DisplayMode. If Display.setParent(Canvas parent) is being used, the height of the parent will be returned. This value will be updated after a call to Display.update().
|
| pack-priv static DisplayImplementation | |
| public static Canvas | |
| public static float | Returns: this method will return the pixel scale factor of the Display window. This method should be used when running in high DPI mode. In such modes Operating Systems will scale the Display window to avoid the window shrinking due to high resolutions. The OpenGL frame buffer will however use the higher resolution and not be scaled to match the Display window size. OpenGL methods that require pixel dependent values e.g. glViewport, glTexImage2D, glReadPixels, glScissor, glLineWidth, glRenderbufferStorage, etc can convert the scaled Display and Mouse coordinates to the correct high resolution value by multiplying them by the pixel scale factor. e.g. Display.getWidth() * Display.getPixelScaleFactor() will return the high DPI width of the OpenGL frame buffer. Whereas Display.getWidth() will be the same as the OpenGL frame buffer in non high DPI mode. Where high DPI mode is not available this method will just return 1.0f therefore not have any effect on values that are multiplied by it.
|
| pack-priv static boolean | |
| pack-priv static String | |
| public static String | |
| public static String | |
| public static int | Returns: this method will return the width of the Display window. If running in fullscreen mode it will return the width of the current set DisplayMode. If Display.setParent(Canvas parent) is being used, the width of the parent will be returned. This value will be updated after a call to Display.update().
|
| private static int | |
| private static int | |
| public static int | Returns: this method will return the x position (top-left) of the Display window. If running in fullscreen mode it will return 0. If Display.setParent(Canvas parent) is being used, the x position of the parent will be returned.
|
| public static int | Returns: this method will return the y position (top-left) of the Display window. If running in fullscreen mode it will return 0. If Display.setParent(Canvas parent) is being used, the y position of the parent will be returned.
|
| private static void | |
| private static void | |
| public static boolean | Returns: true if window is active, that is, the foreground display of the operating system.
|
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if the window has been damaged by external changes and needs to repaint itselfDetermine if the window's contents have been damaged by external events. |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static void | |
| private static void | |
| pack-priv static void | |
| public static void | |
| private static void | |
| public static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| public static void | setDisplayConfiguration(float
The gamma value gamma, float The brightness value between -1.0 and 1.0, inclusive brightness, float The contrast, larger than 0.0. contrast)Set the display configuration to the specified gamma, brightness and contrast. |
| public static void | |
| public static void | setDisplayModeAndFullscreen(DisplayMode
The new display mode to set. Must be non-null. mode)Set the mode of the context. |
| private static void | |
| public static void | setFullscreen(boolean
Specify the fullscreen mode of the context. fullscreen)Set the fullscreen mode of the context. |
| public static int | Returns: number of icons used, or 0 if display hasn't been createdArray of icons in RGBA mode. Pass the icons in order of preference. icons)Sets one or more icons for the Display. |
| public static void | setInitialBackground(float
- color value between 0 - 1 red, float - color value between 0 - 1 green, float - color value between 0 - 1 blue)Set the initial color of the Display. |
| public static void | setLocation(int
The new window location on the x axis new_x, int The new window location on the y axis new_y)Set the window's location. |
| public static void | |
| public static void | setResizable(boolean
set to true to make the Display window resizable;
false to disable resizing on the Display window. resizable)Enable or disable the Display window to be resized. |
| public static void | |
| public static void | |
| public static void | setVSyncEnabled(boolean
true to synchronize; false to ignore synchronization sync)Enable or disable vertical monitor synchronization. |
| public static void | |
| private static void | |
| public static void | sync(int
- the desired frame rate, in frames per second fps)An accurate sync method that will attempt to run at a constant frame rate. |
| public static void | |
| public static void | |
| public static boolean | Returns: true if the Display window has been resized. This value will be updated after a call to Display.update(). This will return false if running in fullscreen or with Display.setParent(Canvas parent)
|
| b | back to summary |
|---|---|
| private static float b Initial Background Color of Display | |
| cached_icons | back to summary |
|---|---|
| private static ByteBuffer[] cached_icons Cached window icons, for when Display is recreated | |
| component_listener | back to summary |
|---|---|
| private static final ComponentListener component_listener | |
| current_mode | back to summary |
|---|---|
| private static DisplayMode current_mode The current display mode, if created | |
| display_impl | back to summary |
|---|---|
| private static final DisplayImplementation display_impl The display implementor | |
| drawable | back to summary |
|---|---|
| private static DrawableLWJGL drawable The Drawable instance that tracks the current Display context | |
| fullscreen | back to summary |
|---|---|
| private static boolean fullscreen Fullscreen | |
| g | back to summary |
|---|---|
| private static float g Initial Background Color of Display | |
| height | back to summary |
|---|---|
| private static int height the height of the Display window | |
| initial_mode | back to summary |
|---|---|
| private static final DisplayMode initial_mode The initial display mode | |
| parent | back to summary |
|---|---|
| private static Canvas parent The parent, if any | |
| parent_resized | back to summary |
|---|---|
| private static boolean parent_resized | |
| r | back to summary |
|---|---|
| private static float r Initial Background Color of Display | |
| shutdown_hook | back to summary |
|---|---|
| private static final Thread shutdown_hook | |
| swap_interval | back to summary |
|---|---|
| private static int swap_interval Swap interval | |
| title | back to summary |
|---|---|
| private static String title Title of the window (never null) | |
| width | back to summary |
|---|---|
| private static int width the width of the Display window | |
| window_created | back to summary |
|---|---|
| private static boolean window_created | |
| window_resizable | back to summary |
|---|---|
| private static boolean window_resizable | |
| window_resized | back to summary |
|---|---|
| private static boolean window_resized | |
| x | back to summary |
|---|---|
| private static int x X coordinate of the window | |
| y | back to summary |
|---|---|
| private static int y Y coordinate of the window. Y in window coordinates is from the top of the display down, unlike GL, where it is typically at the bottom of the display. | |
| Display | back to summary |
|---|---|
| private Display() Only constructed by ourselves | |
| create | back to summary |
|---|---|
| public static void create() throws LWJGLException Create the OpenGL context. If isFullscreen() is true or if windowed context are not supported on the platform, the display mode will be switched to the mode returned by getDisplayMode(), and a fullscreen context will be created. If isFullscreen() is false, a windowed context will be created with the dimensions given in the mode returned by getDisplayMode(). If a context can't be created with the given parameters, a LWJGLException will be thrown.
The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates. | |
| create | back to summary |
|---|---|
| public static void create(PixelFormat pixel_format) throws LWJGLException Create the OpenGL context with the given minimum parameters. If isFullscreen() is true or if windowed context are not supported on the platform, the display mode will be switched to the mode returned by getDisplayMode(), and a fullscreen context will be created. If isFullscreen() is false, a windowed context will be created with the dimensions given in the mode returned by getDisplayMode(). If a context can't be created with the given parameters, a LWJGLException will be thrown.
The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates.
| |
| create | back to summary |
|---|---|
| public static void create(PixelFormat pixel_format, Drawable shared_drawable) throws LWJGLException Create the OpenGL context with the given minimum parameters. If isFullscreen() is true or if windowed context are not supported on the platform, the display mode will be switched to the mode returned by getDisplayMode(), and a fullscreen context will be created. If isFullscreen() is false, a windowed context will be created with the dimensions given in the mode returned by getDisplayMode(). If a context can't be created with the given parameters, a LWJGLException will be thrown.
The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates.
| |
| create | back to summary |
|---|---|
| public static void create(PixelFormat pixel_format, ContextAttribs attribs) throws LWJGLException Create the OpenGL context with the given minimum parameters. If isFullscreen() is true or if windowed context are not supported on the platform, the display mode will be switched to the mode returned by getDisplayMode(), and a fullscreen context will be created. If isFullscreen() is false, a windowed context will be created with the dimensions given in the mode returned by getDisplayMode(). If a context can't be created with the given parameters, a LWJGLException will be thrown.
The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates.
| |
| create | back to summary |
|---|---|
| public static void create(PixelFormat pixel_format, Drawable shared_drawable, ContextAttribs attribs) throws LWJGLException Create the OpenGL context with the given minimum parameters. If isFullscreen() is true or if windowed context are not supported on the platform, the display mode will be switched to the mode returned by getDisplayMode(), and a fullscreen context will be created. If isFullscreen() is false, a windowed context will be created with the dimensions given in the mode returned by getDisplayMode(). If a context can't be created with the given parameters, a LWJGLException will be thrown.
The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates.
| |
| create | back to summary |
|---|---|
| public static void create(PixelFormatLWJGL pixel_format) throws LWJGLException Create the OpenGL ES context with the given minimum parameters. If isFullscreen() is true or if windowed context are not supported on the platform, the display mode will be switched to the mode returned by getDisplayMode(), and a fullscreen context will be created. If isFullscreen() is false, a windowed context will be created with the dimensions given in the mode returned by getDisplayMode(). If a context can't be created with the given parameters, a LWJGLException will be thrown.
The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates.
| |
| create | back to summary |
|---|---|
| public static void create(PixelFormatLWJGL pixel_format, Drawable shared_drawable) throws LWJGLException Create the OpenGL ES context with the given minimum parameters. If isFullscreen() is true or if windowed context are not supported on the platform, the display mode will be switched to the mode returned by getDisplayMode(), and a fullscreen context will be created. If isFullscreen() is false, a windowed context will be created with the dimensions given in the mode returned by getDisplayMode(). If a context can't be created with the given parameters, a LWJGLException will be thrown.
The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates.
| |
| create | back to summary |
|---|---|
| public static void create(PixelFormatLWJGL pixel_format, ContextAttribs attribs) throws LWJGLException Create the OpenGL ES context with the given minimum parameters. If isFullscreen() is true or if windowed context are not supported on the platform, the display mode will be switched to the mode returned by getDisplayMode(), and a fullscreen context will be created. If isFullscreen() is false, a windowed context will be created with the dimensions given in the mode returned by getDisplayMode(). If a context can't be created with the given parameters, a LWJGLException will be thrown.
The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates.
| |
| create | back to summary |
|---|---|
| public static void create(PixelFormatLWJGL pixel_format, Drawable shared_drawable, ContextAttribs attribs) throws LWJGLException Create the OpenGL ES context with the given minimum parameters. If isFullscreen() is true or if windowed context are not supported on the platform, the display mode will be switched to the mode returned by getDisplayMode(), and a fullscreen context will be created. If isFullscreen() is false, a windowed context will be created with the dimensions given in the mode returned by getDisplayMode(). If a context can't be created with the given parameters, a LWJGLException will be thrown.
The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates.
| |
| createDisplayImplementation | back to summary |
|---|---|
| private static DisplayImplementation createDisplayImplementation() | |
| createWindow | back to summary |
|---|---|
| private static void createWindow() throws LWJGLException Create the native window peer from the given mode and fullscreen flag. A native context must exist, and it will be attached to the window. | |
| destroy | back to summary |
|---|---|
| public static void destroy() Destroy the Display. After this call, there will be no current GL rendering context, regardless of whether the Display was the current rendering context. | |
| destroyWindow | back to summary |
|---|---|
| private static void destroyWindow() | |
| getAdapter | back to summary |
|---|---|
| public static String getAdapter() Get the driver adapter string. This is a unique string describing the actual card's hardware, eg. "Geforce2", "PS2", "Radeon9700". If the adapter cannot be determined, this function returns null.
| |
| getAvailableDisplayModes | back to summary |
|---|---|
| public static DisplayMode[] getAvailableDisplayModes() throws LWJGLException Returns the entire list of possible fullscreen display modes as an array, in no particular order. Although best attempts to filter out invalid modes are done, any given mode is not guaranteed to be available nor is it guaranteed to be within the current monitor specs (this is especially a problem with the frequency parameter). Furthermore, it is not guaranteed that create() will detect an illegal display mode. The only certain way to check is to call create() and make sure it works. Only non-palette-indexed modes are returned (ie. bpp will be 16, 24, or 32). Only DisplayModes from this call can be used when the Display is in fullscreen mode.
| |
| getDesktopDisplayMode | back to summary |
|---|---|
| public static DisplayMode getDesktopDisplayMode() Return the initial desktop display mode.
| |
| getDisplayMode | back to summary |
|---|---|
| public static DisplayMode getDisplayMode() Return the current display mode, as set by setDisplayMode().
| |
| getDrawable | back to summary |
|---|---|
| public static Drawable getDrawable() Fetch the Drawable from the Display.
| |
| getEffectiveMode | back to summary |
|---|---|
| private static DisplayMode getEffectiveMode() | |
| getHeight | back to summary |
|---|---|
public static int getHeight()
| |
| getImplementation | back to summary |
|---|---|
| pack-priv static DisplayImplementation getImplementation() | |
| getParent | back to summary |
|---|---|
| public static Canvas getParent() Return the last parent set with setParent(). | |
| getPixelScaleFactor | back to summary |
|---|---|
public static float getPixelScaleFactor()
| |
| getPrivilegedBoolean | back to summary |
|---|---|
| pack-priv static boolean getPrivilegedBoolean(final String property_name) Gets a boolean property as a privileged action. | |
| getPrivilegedString | back to summary |
|---|---|
| pack-priv static String getPrivilegedString(final String property_name) Gets a string property as a privileged action. | |
| getTitle | back to summary |
|---|---|
public static String getTitle()
| |
| getVersion | back to summary |
|---|---|
| public static String getVersion() Get the driver version. This is a vendor/adapter specific version string. If the version cannot be determined, this function returns null.
| |
| getWidth | back to summary |
|---|---|
public static int getWidth()
| |
| getWindowX | back to summary |
|---|---|
| private static int getWindowX() | |
| getWindowY | back to summary |
|---|---|
| private static int getWindowY() | |
| getX | back to summary |
|---|---|
public static int getX()
| |
| getY | back to summary |
|---|---|
public static int getY()
| |
| initContext | back to summary |
|---|---|
| private static void initContext() | |
| initControls | back to summary |
|---|---|
| private static void initControls() | |
| isActive | back to summary |
|---|---|
public static boolean isActive()
| |
| isCloseRequested | back to summary |
|---|---|
public static boolean isCloseRequested()
| |
| isCreated | back to summary |
|---|---|
public static boolean isCreated()
| |
| isCurrent | back to summary |
|---|---|
| public static boolean isCurrent() throws LWJGLException Returns true if the Display's context is current in the current thread. | |
| isDirty | back to summary |
|---|---|
| public static boolean isDirty() Determine if the window's contents have been damaged by external events. If you are writing a straightforward game rendering loop and simply paint every frame regardless, you can ignore this flag altogether. If you are trying to be kind to other processes you can check this flag and only redraw when it returns true. The flag is cleared when update() or isDirty() is called.
| |
| isFullscreen | back to summary |
|---|---|
public static boolean isFullscreen()
| |
| isResizable | back to summary |
|---|---|
public static boolean isResizable()
| |
| isVisible | back to summary |
|---|---|
public static boolean isVisible()
| |
| makeCurrent | back to summary |
|---|---|
| public static void makeCurrent() throws LWJGLException Make the Display the current rendering context for GL calls.
| |
| makeCurrentAndSetSwapInterval | back to summary |
|---|---|
| private static void makeCurrentAndSetSwapInterval() throws LWJGLException | |
| pollDevices | back to summary |
|---|---|
| pack-priv static void pollDevices() | |
| processMessages | back to summary |
|---|---|
| public static void processMessages() Process operating system events. Call this to update the Display's state and to receive new input device events. This method is called from update(), so it is not necessary to call this method if update() is called periodically. | |
| registerShutdownHook | back to summary |
|---|---|
| private static void registerShutdownHook() | |
| releaseContext | back to summary |
|---|---|
| public static void releaseContext() throws LWJGLException Release the Display context.
| |
| releaseDrawable | back to summary |
|---|---|
| private static void releaseDrawable() | |
| removeShutdownHook | back to summary |
|---|---|
| private static void removeShutdownHook() | |
| reset | back to summary |
|---|---|
| private static void reset() | |
| reshape | back to summary |
|---|---|
| private static void reshape() | |
| setDisplayConfiguration | back to summary |
|---|---|
| public static void setDisplayConfiguration(float gamma, float brightness, float contrast) throws LWJGLException Set the display configuration to the specified gamma, brightness and contrast. The configuration changes will be reset when destroy() is called.
| |
| setDisplayMode | back to summary |
|---|---|
| public static void setDisplayMode(DisplayMode mode) throws LWJGLException Set the current display mode. If no OpenGL context has been created, the given mode will apply to the context when create() is called, and no immediate mode switching will happen. If there is a context already, it will be resized according to the given mode. If the context is also a fullscreen context, the mode will also be switched immediately. The native cursor position is also reset.
| |
| setDisplayModeAndFullscreen | back to summary |
|---|---|
| public static void setDisplayModeAndFullscreen(DisplayMode mode) throws LWJGLException Set the mode of the context. If no context has been created through create(), the mode will apply when create() is called. If mode.isFullscreenCapable() is true, the context will become a fullscreen context and the display mode is switched to the mode given by getDisplayMode(). If mode.isFullscreenCapable() is false, the context will become a windowed context with the dimensions given in the mode returned by getDisplayMode(). The native cursor position is also reset.
| |
| setDisplayModeAndFullscreenInternal | back to summary |
|---|---|
| private static void setDisplayModeAndFullscreenInternal(boolean fullscreen, DisplayMode mode) throws LWJGLException | |
| setFullscreen | back to summary |
|---|---|
| public static void setFullscreen(boolean fullscreen) throws LWJGLException Set the fullscreen mode of the context. If no context has been created through create(), the mode will apply when create() is called. If fullscreen is true, the context will become a fullscreen context and the display mode is switched to the mode given by getDisplayMode(). If fullscreen is false, the context will become a windowed context with the dimensions given in the mode returned by getDisplayMode(). The native cursor position is also reset.
| |
| setIcon | back to summary |
|---|---|
| public static int setIcon(ByteBuffer[] icons) Sets one or more icons for the Display.
Note The display will make a deep copy of the supplied byte buffer array, for the purpose of recreating the icons when you go back and forth fullscreen mode. You therefore only need to set the icon once per instance.
| |
| setInitialBackground | back to summary |
|---|---|
| public static void setInitialBackground(float red, float green, float blue) Set the initial color of the Display. This method is called before the Display is created and will set the background color to the one specified in this method.
| |
| setLocation | back to summary |
|---|---|
| public static void setLocation(int new_x, int new_y) Set the window's location. This is a no-op on fullscreen windows or when getParent() != null. The window is clamped to remain entirely on the screen. If you attempt to position the window such that it would extend off the screen, the window is simply placed as close to the edge as possible Note If no location has been specified (or x == y == -1) the window will be centered
| |
| setParent | back to summary |
|---|---|
| public static void setParent(Canvas parent) throws LWJGLException Set the parent of the Display. If parent is null, the Display will appear as a top level window. If parent is not null, the Display is made a child of the parent. A parent's isDisplayable() must be true when setParent() is called and remain true until setParent() is called again with null or a different parent. This generally means that the parent component must remain added to it's parent container. It is not advisable to call this method from an AWT thread, since the context will be made current on the thread and it is difficult to predict which AWT thread will process any given AWT event. While the Display is in fullscreen mode, the current parent will be ignored. Additionally, when a non null parent is specified, the Dispaly will inherit the size of the parent, disregarding the currently set display mode.
| |
| setResizable | back to summary |
|---|---|
| public static void setResizable(boolean resizable) Enable or disable the Display window to be resized.
| |
| setSwapInterval | back to summary |
|---|---|
| public static void setSwapInterval(int value) Set the buffer swap interval. This call is a best-attempt at changing the monitor swap interval, which is the minimum periodicity of color buffer swaps, measured in video frame periods, and is not guaranteed to be successful. A video frame period is the time required to display a full frame of video data.
| |
| setTitle | back to summary |
|---|---|
| public static void setTitle(String newTitle) Set the title of the window. This may be ignored by the underlying OS.
| |
| setVSyncEnabled | back to summary |
|---|---|
| public static void setVSyncEnabled(boolean sync) Enable or disable vertical monitor synchronization. This call is a best-attempt at changing the vertical refresh synchronization of the monitor, and is not guaranteed to be successful.
| |
| swapBuffers | back to summary |
|---|---|
| public static void swapBuffers() throws LWJGLException Swap the display buffers. This method is called from update(), and should normally not be called by the application.
| |
| switchDisplayMode | back to summary |
|---|---|
| private static void switchDisplayMode() throws LWJGLException | |
| sync | back to summary |
|---|---|
| public static void sync(int fps) An accurate sync method that will attempt to run at a constant frame rate. It should be called once every frame.
| |
| update | back to summary |
|---|---|
| public static void update() Update the window. If the window is visible clears the dirty flag and calls swapBuffers() and finally polls the input devices. | |
| update | back to summary |
|---|---|
| public static void update(boolean processMessages) Update the window. If the window is visible clears the dirty flag and calls swapBuffers() and finally polls the input devices if processMessages is true.
| |
| wasResized | back to summary |
|---|---|
public static boolean wasResized()
| |