removed md2_model
This commit is contained in:
+28
-18
@@ -79,14 +79,23 @@ void Ari::onInit()
|
||||
texRepo = engine.renderer->getTextureRepository();
|
||||
// engine.audio.play();
|
||||
|
||||
Vector3 islandPos = Vector3(0.0F, 10.0F, 0.0F);
|
||||
island = new Mesh();
|
||||
island->rotation.x = -1.6F;
|
||||
island->loadDff("sunnyisl/", "sunnyisl.dff", islandPos, 0.1F);
|
||||
texRepo->addByMesh("sunnyisl/", *island);
|
||||
island->shouldBeFrustumCulled = false;
|
||||
// Vector3 islandPos = Vector3(0.0F, 10.0F, 0.0F);
|
||||
// island = new Mesh();
|
||||
// island->rotation.x = -1.6F;
|
||||
// island->loadDff("sunnyisl/", "sunnyisl.dff", islandPos, 0.1F);
|
||||
// texRepo->addByMesh("sunnyisl/", *island);
|
||||
// island->shouldBeFrustumCulled = false;
|
||||
// island->shouldBeBackfaceCulled = true;
|
||||
|
||||
test = new Mesh();
|
||||
Vector3 initPos = Vector3(0.00F, 00.00F, 0.00F);
|
||||
test->loadMD2("warrior/", "warrior", initPos, 0.2F, true);
|
||||
texRepo->addByMesh("warrior/", *test);
|
||||
test->rotation.x = -1.6F;
|
||||
test->playAnimation(0, 25);
|
||||
// test->shouldBeBackfaceCulled = false;
|
||||
// test->shouldBeFrustumCulled = false;
|
||||
|
||||
// islandAddons = new Mesh();
|
||||
// islandAddons->rotation.x = -1.6F;
|
||||
// islandAddons->loadDff("sunnyisl/", "sunnyisl3.dff", islandPos, 0.1F);
|
||||
@@ -104,18 +113,19 @@ void Ari::onInit()
|
||||
// test->playAnimation(0, 0);
|
||||
// test->shouldBeBackfaceCulled = true;
|
||||
|
||||
// TODO 1 - Merge dff/md2
|
||||
// TODO 2 - Refactor
|
||||
// TODO 3 - Destructor
|
||||
// TODO 4 - Mesh copy();
|
||||
// TODO 1 - Merge md2
|
||||
// TODO 2 - Refactor mesh, loaders
|
||||
// TODO 3 - const & in parameters
|
||||
// TODO 4 - Destructor
|
||||
// TODO 5 - Mesh copy();
|
||||
|
||||
// test->shouldBeFrustumCulled = true;
|
||||
|
||||
skybox = new Mesh();
|
||||
Vector3 skyboxPos = Vector3(0.0F, 10.0F, 0.0F);
|
||||
skybox->loadObj("skybox/", "skybox", skyboxPos, 80.0F, 1, false);
|
||||
skybox->shouldBeFrustumCulled = true;
|
||||
texRepo->addByMesh("skybox/", *skybox);
|
||||
// skybox = new Mesh();
|
||||
// Vector3 skyboxPos = Vector3(0.0F, 10.0F, 0.0F);
|
||||
// skybox->loadObj("skybox/", "skybox", skyboxPos, 80.0F, 1, false);
|
||||
// skybox->shouldBeFrustumCulled = true;
|
||||
// texRepo->addByMesh("skybox/", *skybox);
|
||||
|
||||
// waterFloors = new Mesh *[WATER_TILES_COUNT];
|
||||
// spirals = new Point[WATER_TILES_COUNT];
|
||||
@@ -153,9 +163,9 @@ void Ari::onUpdate()
|
||||
if (engine.pad.isCrossClicked)
|
||||
printf("FPS:%f\n", engine.fps);
|
||||
camera->update(engine.pad, player->mesh);
|
||||
// engine.renderer->draw(test);
|
||||
engine.renderer->draw(skybox);
|
||||
engine.renderer->draw(island);
|
||||
engine.renderer->draw(test);
|
||||
// engine.renderer->draw(skybox);
|
||||
// engine.renderer->draw(island);
|
||||
// engine.renderer->draw(islandAddons);
|
||||
// // engine.renderer->draw(&player->mesh);
|
||||
// for (u8 i = 0; i < WATER_TILES_COUNT; i++)
|
||||
|
||||
Reference in New Issue
Block a user