public class Window extends Object
<window>
element of the Lime project.xml
format.
The following example sets the fps
and
allowHighDpi
fields.
<limeProject>
<window>
<fps>60</fps>
<allowHighDpi>true</allowHighDpi>
</window>
</limeProject>
Modifier and Type | Field and Description |
---|---|
Boolean |
allowHighDpi
Whether high DPI rendering is allowed or not.
|
Boolean |
allowShaders
Whether shaders are allowed or not.
|
Integer |
antialiasing
The level of anti-aliasing.
|
String |
background
The background color of the main window.
|
Boolean |
borderless
Whether the main window is borderless.
|
Integer |
colorDepth
Sets the color depth.
|
Boolean |
depthBuffer
Whether the depth buffer is enabled or not.
|
Integer |
fps
The frames per second.
|
Boolean |
fullscreen
Whether the main window defaults to full screen or windowed.
|
Boolean |
hardware
Whether hardware is allowed or not.
|
Integer |
height
The default height of the main window.
|
String |
orientation
The orientation of the application.
|
Boolean |
requireShaders
Whether shaders are required or not.
|
Boolean |
resizable
Whether the main window is resizable.
|
Boolean |
stencilBuffer
Whether the stencil buffer is enabled or not.
|
Boolean |
vsync
Whether vsync is enabled or not.
|
Integer |
width
The default width of the main window.
|
Constructor and Description |
---|
Window() |
public Integer width
<window width="">
attribute of the Lime project.xml
format.
The following example sets the <width>
element.
<limeProject>
<window>
<width>640</width>
</window>
</limeProject>
public Integer height
<window height="">
attribute of the Lime project.xml
format.
The following example sets the <height>
element.
<limeProject>
<window>
<height>480</height>
</window>
</limeProject>
public String background
<window background="">
attribute of the Lime project.xml
format.
The following example sets the <background>
element.
<limeProject>
<window>
<background>#CCCCCC</background>
</window>
</limeProject>
public Integer fps
<window fps="">
attribute
of the Lime project.xml format.
The following example sets the <fps>
element.
<limeProject>
<window>
<fps>60</fps>
</window>
</limeProject>
public Boolean fullscreen
<window fullscreen="">
attribute of the Lime
project.xml format.
The following example sets the <fullscreen>
element.
<limeProject>
<window>
<fullscreen>true</fullscreen>
</window>
</limeProject>
public Boolean resizable
<window resizable="">
attribute of the Lime project.xml
format.
The following example sets the <resizable>
element.
<limeProject>
<window>
<resizable>true</resizable>
</window>
</limeProject>
public Boolean borderless
<window borderless="">
attribute of the Lime project.xml
format.
The following example sets the <borderless>
element.
<limeProject>
<window>
<borderless>true</borderless>
</window>
</limeProject>
public Boolean vsync
<window vsync="">
attribute of the Lime project.xml format.
The following example sets the <vsync>
element.
<limeProject>
<window>
<vsync>true</vsync>
</window>
</limeProject>
public String orientation
<window orientation="">
attribute of the Lime
project.xml format.
The following example sets the <orientation>
element.
<limeProject>
<window>
<orientation>portrait</orientation>
</window>
</limeProject>
public Boolean hardware
<window hardware="">
attribute of the Lime project.xml
format.
The following example sets the <hardware>
element.
<limeProject>
<window>
<hardware>false</hardware>
</window>
</limeProject>
public Boolean allowShaders
<window allow-shaders="">
attribute of the Lime
project.xml format.
The following example sets the <allowShaders>
element.
<limeProject>
<window>
<allowShaders>false</allowShaders>
</window>
</limeProject>
public Boolean requireShaders
<window require-shaders="">
attribute of the Lime
project.xml format.
The following example sets the <requireShaders>
element.
<limeProject>
<window>
<requireShaders>false</requireShaders>
</window>
</limeProject>
public Boolean depthBuffer
<window depth-buffer="">
attribute of the Lime
project.xml format.
The following example sets the <depthBuffer>
element.
<limeProject>
<window>
<depthBuffer>false</depthBuffer>
</window>
</limeProject>
public Boolean stencilBuffer
<window stencil-buffer="">
attribute of the Lime
project.xml format.
The following example sets the <stencilBuffer>
element.
<limeProject>
<window>
<stencilBuffer>false</stencilBuffer>
</window>
</limeProject>
public Integer antialiasing
<window antialiasing="">
attribute of the Lime
project.xml format.
The following example sets the <antialiasing>
element.
<limeProject>
<window>
<antialiasing>1</antialiasing>
</window>
</limeProject>
public Boolean allowHighDpi
<window allow-high-dpi="">
attribute of the Lime
project.xml format.
The following example sets the <allowHighDpi>
element.
<limeProject>
<window>
<allowHighDpi>true</allowHighDpi>
</window>
</limeProject>
public Integer colorDepth
<window color-depth="">
attribute of the Lime project.xml format.
The following example sets the <colorDepth>
element.
<limeProject>
<window>
<colorDepth>16</colorDepth>
</window>
</limeProject>
Copyright © 2023. All rights reserved.