moving textures to textures repo #1

This commit is contained in:
Sandro Sobczyński
2020-10-31 10:53:20 +01:00
parent ebf2a9ac24
commit 3cfe7ba8f1
11 changed files with 127 additions and 76 deletions
+1
View File
@@ -18,6 +18,7 @@ EE_OBJS = \
../../engine/modules/light.o \
../../engine/modules/pad.o \
../../engine/modules/renderer.o \
../../engine/modules/texture_repository.o \
../../engine/modules/timer.o \
../../engine/modules/vif_sender.o \
../../engine/modules/vu1.o \
+1
View File
@@ -75,6 +75,7 @@ void Ari::onInit()
engine.audio.init(0);
engine.audio.setVolume(40);
engine.audio.loadSong("MOV-CIRC.WAV");
texRepo = engine.renderer->getTextureRepository();
// engine.audio.play();
// Vector3 islandPos = Vector3(0.0F, 10.0F, 0.0F);
+2
View File
@@ -16,6 +16,7 @@
#include <engine.hpp>
#include "objects/player.hpp"
#include <models/light_bulb.hpp>
#include <modules/texture_repository.hpp>
#include "./camera.hpp"
class Ari : public Game
@@ -35,6 +36,7 @@ private:
LightBulb bulb;
Player *player;
Camera *camera;
TextureRepository *texRepo;
};
#endif