-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Tangram initial form and floor movement!
- Loading branch information
1 parent
3dbe695
commit b4a70d4
Showing
23 changed files
with
456 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Blender v2.79 (sub 0) OBJ File: 'Parallelogram.blend' | ||
# www.blender.org | ||
o Cube | ||
v 1.989430 0.000000 0.005215 | ||
v -0.010458 0.000000 -0.015868 | ||
v 0.010625 0.000000 -2.015757 | ||
v 2.010514 0.000000 -1.994673 | ||
v 2.989375 1.000000 0.015758 | ||
v 0.989486 1.000000 -0.005327 | ||
v 1.010570 1.000000 -2.005216 | ||
v 3.010458 1.000000 -1.984132 | ||
vt 0.000000 0.000000 | ||
vt 1.000000 1.000000 | ||
vt 0.000000 1.000000 | ||
vt 1.000000 0.000000 | ||
vt 0.000000 1.000000 | ||
vt 0.000000 0.000000 | ||
vt 1.000000 1.000000 | ||
vt 0.000000 1.000000 | ||
vt 1.000000 0.000000 | ||
vt 0.000000 1.000000 | ||
vt 0.000000 0.000000 | ||
vt 1.000000 0.000000 | ||
vt 0.000000 0.000000 | ||
vt 1.000000 0.000000 | ||
vt 0.000000 1.000000 | ||
vt 1.000000 0.000000 | ||
vt 1.000000 1.000000 | ||
vt 1.000000 0.000000 | ||
vt 1.000000 1.000000 | ||
vt 1.000000 1.000000 | ||
vn 0.0000 -1.0000 0.0000 | ||
vn 0.0000 1.0000 0.0000 | ||
vn -0.0105 0.0000 0.9999 | ||
vn -0.7071 0.7071 -0.0075 | ||
vn 0.0105 -0.0000 -0.9999 | ||
vn 0.7071 -0.7071 0.0075 | ||
s off | ||
f 1/1/1 3/2/1 4/3/1 | ||
f 8/4/2 6/5/2 5/6/2 | ||
f 1/1/3 6/7/3 2/8/3 | ||
f 6/9/4 3/10/4 2/11/4 | ||
f 7/12/5 4/3/5 3/13/5 | ||
f 1/14/6 8/15/6 5/6/6 | ||
f 1/1/1 2/16/1 3/2/1 | ||
f 8/4/2 7/17/2 6/5/2 | ||
f 1/1/3 5/18/3 6/7/3 | ||
f 6/9/4 7/17/4 3/10/4 | ||
f 7/12/5 8/19/5 4/3/5 | ||
f 1/14/6 4/20/6 8/15/6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Blender v2.79 (sub 0) OBJ File: 'Pyramid.blend' | ||
# www.blender.org | ||
o Piramid_Cube | ||
v 0.017666 0.000000 -2.005773 | ||
v 1.994019 0.000000 0.017597 | ||
v -0.005843 0.000000 -0.005912 | ||
v -0.005842 2.000000 -0.005912 | ||
vt 0.000000 1.000000 | ||
vt 1.000000 1.000000 | ||
vt 0.000000 0.000000 | ||
vt 0.000000 0.000000 | ||
vn -0.0118 -0.0000 0.9999 | ||
vn 0.0000 -1.0000 0.0000 | ||
vn -0.9999 0.0000 -0.0118 | ||
vn 0.5841 0.5774 -0.5705 | ||
s off | ||
f 3/1/1 2/2/1 4/3/1 | ||
f 3/1/2 1/4/2 2/2/2 | ||
f 3/1/3 4/3/3 1/4/3 | ||
f 2/2/4 1/4/4 4/3/4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#version 330 core | ||
|
||
in vec4 ex_Color; | ||
out vec4 out_Color; | ||
|
||
uniform vec4 ModelColor; | ||
|
||
void main(void) | ||
{ | ||
out_Color = ex_Color; | ||
out_Color = ModelColor; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* File Simulation.cpp in project ThreeEngine | ||
* | ||
* Copyright (C) Ricardo Rodrigues 2017 - All Rights Reserved | ||
*/ | ||
#include "Simulation.h" | ||
|
||
namespace ThreeEngine { | ||
SINGLETON_IMPLEMENTATION(Simulation) | ||
|
||
void Simulation::Add(IUpdatable* updatable) { | ||
updatables.push_back(std::unique_ptr<IUpdatable>(updatable)); | ||
} | ||
|
||
void Simulation::Update() { | ||
for (std::unique_ptr<IUpdatable>& updatable : updatables) { | ||
updatable->Update(Time::Delta()); | ||
} | ||
} | ||
} /* namespace ThreeEngine */ |
Oops, something went wrong.