Skip to content

Commit bd60eeb

Browse files
committed
add better fullscreen support
1 parent bf98e8f commit bd60eeb

File tree

31 files changed

+497
-819
lines changed

31 files changed

+497
-819
lines changed

.classpath

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<classpathentry kind="lib" path="libs/jsyn-17.1.0.jar"/>
1515
<classpathentry kind="lib" path="libs/sound.jar"/>
1616
<classpathentry kind="lib" path="libs/stax2-api-4.2.1.jar"/>
17+
<classpathentry kind="lib" path="libs/tritonus-share-0.3.7.4.jar"/>
18+
<classpathentry kind="lib" path="libs/vorbisspi-1.0.3.3.jar"/>
1719
<classpathentry kind="lib" path="libs/woodstox-core-6.5.1.jar"/>
1820
<classpathentry kind="lib" path="libs/word-wrap-0.1.12.jar"/>
1921
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@ index: 4
44
lang: en
55
---
66

7+
## 4.16.0
8+
9+
- 🚀 Feat: Add better fullscreen mode. You can now set a target resolution, when using the fullscreen mode. This renders the stage at this resolution and scales it to the fullscreen size keeping the aspect-ratio.
10+
11+
In the following code the stage is rendered at 800x600 and then scaled to fit the fullscreen window.
12+
13+
```java
14+
public class MyWindow extends Window {
15+
public MyWindow() {
16+
super(true, 800, 600);
17+
}
18+
}
19+
```
20+
21+
This is also possible when you are working with only the stage class.
22+
23+
```java
24+
public class MyStage extends Stage {
25+
public MyStage() {
26+
super(true, 800, 600);
27+
}
28+
}
29+
```
30+
731
## 4.15.2
832

933
- 🚀 Feat: add Operators.round(value, precision) to round values. `Operators.round(2.3456, 2)` will return `2.35`.

examples/java/Cat/package.bluej

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/java/Clock/package.bluej

Whitespace-only changes.

examples/java/DonutIO/package.bluej

Lines changed: 0 additions & 143 deletions
This file was deleted.

examples/java/Pipes/package.bluej

Whitespace-only changes.

examples/java/RainbowVine/RainbowVine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public class RainbowVine extends Stage {
66
public RainbowVine() {
7-
super(800, 600);
7+
super(true);
88
this.setColor(0, 0, 0);
99
this.add(new VineSprite());
1010
this.getCamera().setPosition(-400, -300);

examples/java/RainbowVine/package.bluej

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/java/RandomDot/package.bluej

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/java/Robot/package.bluej

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)