Skip to content

Commit 6495c0a

Browse files
committed
Updated to latest Dagon, added settings.conf
1 parent 86a16a1 commit 6495c0a

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

settings.conf

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
windowWidth: 800;
2+
windowHeight: 600;
3+
fullscreen: 0;
4+
mouseSensibility: 0.1;

tutorial1/main.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class MyApplication: SceneApplication
3939
{
4040
this(string[] args)
4141
{
42-
super(1280, 720, false, "Dagon tutorial 1. Simple application", args);
42+
super("Dagon tutorial 1. Simple application", args);
4343

4444
TestScene test = New!TestScene(sceneManager);
4545
sceneManager.addScene(test, "TestScene");

tutorial2/main.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MyApplication: SceneApplication
4545
{
4646
this(string[] args)
4747
{
48-
super(1280, 720, false, "Dagon tutorial 2. Textures", args);
48+
super("Dagon tutorial 2. Textures", args);
4949

5050
TestScene test = New!TestScene(sceneManager);
5151
sceneManager.addScene(test, "TestScene");

tutorial3/main.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class MyApplication: SceneApplication
5151
{
5252
this(string[] args)
5353
{
54-
super(1280, 720, false, "Dagon tutorial 3. Normal maps", args);
54+
super("Dagon tutorial 3. Normal maps", args);
5555

5656
TestScene test = New!TestScene(sceneManager);
5757
sceneManager.addScene(test, "TestScene");

tutorial4/main.d

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ class TestScene: Scene
4747
ePlane.drawable = New!ShapePlane(10, 10, 1, assetManager);
4848
ePlane.material = matGround;
4949

50-
auto light1 = createLight(Vector3f(-2, 1, 0), Color4f(1.0f, 1.0f, 0.0f), 10.0f, 5.0f, 0.1f);
51-
auto light2 = createLight(Vector3f(2, 1, 0), Color4f(0.0f, 1.0f, 1.0f), 10.0f, 5.0f, 0.1f);
50+
auto light1 = createLightSphere(Vector3f(-2, 1, 0), Color4f(1.0f, 1.0f, 0.0f), 10.0f, 5.0f, 0.1f);
51+
auto light2 = createLightSphere(Vector3f(2, 1, 0), Color4f(0.0f, 1.0f, 1.0f), 10.0f, 5.0f, 0.1f);
5252
}
5353
}
5454

5555
class MyApplication: SceneApplication
5656
{
5757
this(string[] args)
5858
{
59-
super(1280, 720, false, "Dagon tutorial 4. Light sources", args);
59+
super("Dagon tutorial 4. Light sources", args);
6060

6161
TestScene test = New!TestScene(sceneManager);
6262
sceneManager.addScene(test, "TestScene");

tutorial5/main.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class MyApplication: SceneApplication
5858
{
5959
this(string[] args)
6060
{
61-
super(1280, 720, false, "Dagon tutorial 5. Environment maps", args);
61+
super("Dagon tutorial 5. Environment maps", args);
6262

6363
TestScene test = New!TestScene(sceneManager);
6464
sceneManager.addScene(test, "TestScene");

0 commit comments

Comments
 (0)