Skip to content

Commit

Permalink
Updated to latest Dagon, added settings.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Jan 14, 2019
1 parent 86a16a1 commit 6495c0a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions settings.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
windowWidth: 800;
windowHeight: 600;
fullscreen: 0;
mouseSensibility: 0.1;
2 changes: 1 addition & 1 deletion tutorial1/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MyApplication: SceneApplication
{
this(string[] args)
{
super(1280, 720, false, "Dagon tutorial 1. Simple application", args);
super("Dagon tutorial 1. Simple application", args);

TestScene test = New!TestScene(sceneManager);
sceneManager.addScene(test, "TestScene");
Expand Down
2 changes: 1 addition & 1 deletion tutorial2/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class MyApplication: SceneApplication
{
this(string[] args)
{
super(1280, 720, false, "Dagon tutorial 2. Textures", args);
super("Dagon tutorial 2. Textures", args);

TestScene test = New!TestScene(sceneManager);
sceneManager.addScene(test, "TestScene");
Expand Down
2 changes: 1 addition & 1 deletion tutorial3/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MyApplication: SceneApplication
{
this(string[] args)
{
super(1280, 720, false, "Dagon tutorial 3. Normal maps", args);
super("Dagon tutorial 3. Normal maps", args);

TestScene test = New!TestScene(sceneManager);
sceneManager.addScene(test, "TestScene");
Expand Down
6 changes: 3 additions & 3 deletions tutorial4/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ class TestScene: Scene
ePlane.drawable = New!ShapePlane(10, 10, 1, assetManager);
ePlane.material = matGround;

auto light1 = createLight(Vector3f(-2, 1, 0), Color4f(1.0f, 1.0f, 0.0f), 10.0f, 5.0f, 0.1f);
auto light2 = createLight(Vector3f(2, 1, 0), Color4f(0.0f, 1.0f, 1.0f), 10.0f, 5.0f, 0.1f);
auto light1 = createLightSphere(Vector3f(-2, 1, 0), Color4f(1.0f, 1.0f, 0.0f), 10.0f, 5.0f, 0.1f);
auto light2 = createLightSphere(Vector3f(2, 1, 0), Color4f(0.0f, 1.0f, 1.0f), 10.0f, 5.0f, 0.1f);
}
}

class MyApplication: SceneApplication
{
this(string[] args)
{
super(1280, 720, false, "Dagon tutorial 4. Light sources", args);
super("Dagon tutorial 4. Light sources", args);

TestScene test = New!TestScene(sceneManager);
sceneManager.addScene(test, "TestScene");
Expand Down
2 changes: 1 addition & 1 deletion tutorial5/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MyApplication: SceneApplication
{
this(string[] args)
{
super(1280, 720, false, "Dagon tutorial 5. Environment maps", args);
super("Dagon tutorial 5. Environment maps", args);

TestScene test = New!TestScene(sceneManager);
sceneManager.addScene(test, "TestScene");
Expand Down

0 comments on commit 6495c0a

Please sign in to comment.