summaryrefslogtreecommitdiff
path: root/src/first_app.cpp
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-22 11:14:00 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-22 11:14:00 -0400
commitac2868abc09e16485cd6806866067f7d7c082dff (patch)
tree164529d22bd66a976044f6f2aecfef96c39fb4cb /src/first_app.cpp
parentadd openal lib (diff)
downloadminecraftvulkan-ac2868abc09e16485cd6806866067f7d7c082dff.tar.gz
minecraftvulkan-ac2868abc09e16485cd6806866067f7d7c082dff.tar.bz2
minecraftvulkan-ac2868abc09e16485cd6806866067f7d7c082dff.zip
start implementing openal soft
Diffstat (limited to '')
-rwxr-xr-xsrc/first_app.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/first_app.cpp b/src/first_app.cpp
index 40a5681..30c639f 100755
--- a/src/first_app.cpp
+++ b/src/first_app.cpp
@@ -7,6 +7,7 @@
#include "xe_render_system.hpp"
#include "keyboard_movement_controller.hpp"
#include "simple_renderer.hpp"
+#include "xe_sound.hpp"
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
@@ -26,12 +27,13 @@ FirstApp::~FirstApp() {}
void FirstApp::run() {
- const std::string s = "res/image/texture.png";
-
std::shared_ptr<xe::XeImage> image = xeEngine.loadImage("res/image/texture.png");
std::shared_ptr<xe::XeImage> image2 = xeEngine.loadImage("res/image/scaly.png");
SimpleRenderer renderer{xeEngine, image.get()};
+
+ xe::XeSound sound{"res/sound/when_the_world_ends.wav"};
+ sound.play();
auto viewerObject = xe::XeGameObject::createGameObject();
viewerObject.transform.translation = {-7.f, 3.f, -7.f};