
If tParent(Canvas parent) is being used, the width of the parent If running in fullscreen mode it will return the width of the current set DisplayMode.
getWidth public static int getWidth() Returns: this method will return the width of the Display window. If tParent(Canvas parent) is being used, the y position of getY public static int getY() Returns: this method will return the y position (top-left) of the Display window. If tParent(Canvas parent) is being used, the x position of If running in fullscreen mode it will return 0. getX public static int getX() Returns: this method will return the x position (top-left) of the Display window. This will return false if running in fullscreen or with tParent(Canvas parent) This value will be updated after a call to Display.update(). wasResized public static boolean wasResized() Returns: true if the Display window has been resized. isResizable public static boolean isResizable() Returns: true if the Display window is resizable. Parameters: resizable - set to true to make the Display window resizable įalse to disable resizing on the Display window. setInitialBackground public static void setInitialBackground(float red,Įnable or disable the Display window to be resized. (optional, may be null) Throws: LWJGLException (optional, may be null) attribs - The ContextAttribs to use when creating the context. shared_drawable - The Drawable to share context with.
Parameters: pixel_format - Describes the minimum specifications the context must fulfill. The window created will be set up in orthographic 2D projection, with 1:1 pixel ratio with GL coordinates.
If a context can't beĬreated with the given parameters, a LWJGLException will be thrown. Will be created with the dimensions given in the mode returned by getDisplayMode().
If isFullscreen() is false, a windowed context GetDisplayMode(), and a fullscreen context will be created. If isFullscreen() is true or if windowedĬontext are not supported on the platform, the display mode will be switched to the mode returned by
Create the OpenGL ES context with the given minimum parameters.