From: Svjatoslav Agejenko Date: Sat, 29 May 2021 02:04:15 +0000 (+0300) Subject: Added screenshot for lots of text editors X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d-demos.git;a=commitdiff_plain;h=bd6502aee14dbda7936780fd81d1b1520c2d1cb8;hp=680a14d4fa6d95f2ca5c582078a8aa05db522e31 Added screenshot for lots of text editors --- diff --git a/doc/index.html b/doc/index.html index a1dd806..f9207d8 100644 --- a/doc/index.html +++ b/doc/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Sixth 3D engine demos @@ -224,28 +224,28 @@

Table of Contents

-
-

1 General

+
+

1 General

  • This program is free software: released under Creative Commons Zero @@ -262,8 +262,8 @@
-
-

1.1 Source code

+
+

1.1 Source code

-
-

2 Overview

+
+

2 Overview

Goal of this project is to show off capabilities and API usage of @@ -290,7 +290,7 @@ Goal of this project is to show off capabilities and API usage of

-All example scenes in this repository render at interactive +All example scenes in this repository render at interactive framerates.

@@ -307,8 +307,8 @@ java -jar sixth-3d-demos.jar
-
-

3 Navigating in space

+
+

3 Navigating in space

@@ -344,15 +344,15 @@ java -jar sixth-3d-demos.jar -
-

4 Example scenes in this repository

+
+

4 Example scenes in this repository

-
-

4.1 Raytracing through voxels

+
+

4.1 Raytracing through voxels

-
+

raytracing fractal in voxel polygon hybrid scene.png

@@ -380,8 +380,8 @@ datastructure.
-
-

4.2 Conway's Game of Life

+
+

4.2 Conway's Game of Life

The Game of Life, also known simply as Life, is a cellular automaton @@ -403,7 +403,7 @@ otherwise it dies. -

+

life.png

@@ -456,11 +456,11 @@ Usage:
-
-

4.3 Text editors

+
+

4.3 Text editors

-
+

text editors.png

@@ -513,13 +513,23 @@ user is redirected also to proper location in the world. return to them. + +

+Quite a lot of text editors can be rendered: +

+ + +
+

text editors 2.png +

+
-
-

4.4 Mathematical formulas

+
+

4.4 Mathematical formulas

-
+

mathematical formulas.png

@@ -530,11 +540,11 @@ visualize some formula using all 3 dimensions avaliable.
-
-

4.5 Sinus heightmaps and sphere

+
+

4.5 Sinus heightmaps and sphere

-
+

sinus heightmaps and sphere.png

@@ -548,7 +558,7 @@ Simple test scene. Easy to implement and looks nice.

Author: Svjatoslav Agejenko

-

Created: 2021-05-29 Sat 02:31

+

Created: 2021-05-29 Sat 05:01

Validate

diff --git a/doc/index.org b/doc/index.org index 3d21043..e3b0019 100644 --- a/doc/index.org +++ b/doc/index.org @@ -115,6 +115,10 @@ again, window must be unfocused first using ESC key. user is redirected also to proper location in the world. + Possibility to store recently visited locations in the world and return to them. + +*Quite a lot of text editors can be rendered:* + +[[file:screenshots/text editors 2.png]] ** Mathematical formulas [[file:screenshots/mathematical formulas.png]] diff --git a/doc/screenshots/text editors 2.png b/doc/screenshots/text editors 2.png new file mode 100644 index 0000000..cb1733f Binary files /dev/null and b/doc/screenshots/text editors 2.png differ diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/TextEditorDemo.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/TextEditorDemo.java index 1bcdfb3..a2a4669 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/TextEditorDemo.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/TextEditorDemo.java @@ -12,6 +12,7 @@ import eu.svjatoslav.sixth.e3d.geometry.Rectangle; import eu.svjatoslav.sixth.e3d.gui.Avatar; import eu.svjatoslav.sixth.e3d.gui.ViewFrame; import eu.svjatoslav.sixth.e3d.gui.ViewPanel; +import eu.svjatoslav.sixth.e3d.gui.textEditorComponent.LookAndFeel; import eu.svjatoslav.sixth.e3d.gui.textEditorComponent.TextEditComponent; import eu.svjatoslav.sixth.e3d.math.Transform; import eu.svjatoslav.sixth.e3d.renderer.raster.Color; @@ -54,7 +55,7 @@ public class TextEditorDemo { final TextEditComponent textEditor = new TextEditComponent( new Transform(new Point3D(x, 0, z)), viewPanel, - new Point2D(200, 120)); + new Point2D(200, 120), new LookAndFeel()); shapeCollection.addShape(textEditor); } diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java index 0a60798..e620649 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java @@ -23,6 +23,7 @@ class MenuPanel extends JPanel { sequentialGroup.addComponent(new JButton(new ShowPointCloud())); sequentialGroup.addComponent(new JButton(new ShowRain())); sequentialGroup.addComponent(new JButton(new ShowTextEditors())); + sequentialGroup.addComponent(new JButton(new ShowTextEditors2())); sequentialGroup.addComponent(new JButton(new ShowGameOfLife())); sequentialGroup.addComponent(new JButton(new ShowRandomPolygons())); } @@ -38,6 +39,17 @@ class MenuPanel extends JPanel { } } + private static class ShowTextEditors2 extends AbstractAction { + ShowTextEditors2() { + putValue(NAME, "Text editors city"); + } + + @Override + public void actionPerformed(final ActionEvent e) { + TextEditorDemo2.main(null); + } + } + private static class ShowRain extends AbstractAction { ShowRain() {