diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-02-21 19:21:17 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-02-21 19:21:17 -0500 |
commit | cecdba5cd996cea3ebd2534aea7a3e3a41205b9c (patch) | |
tree | e955d61534a17678fe6f0e17b69f506f9d03a948 /src/main.cpp | |
parent | 59860415a2782694f630f7803ae4bcf445b3f5f1 (diff) | |
download | therapy-cecdba5cd996cea3ebd2534aea7a3e3a41205b9c.tar.gz therapy-cecdba5cd996cea3ebd2534aea7a3e3a41205b9c.tar.bz2 therapy-cecdba5cd996cea3ebd2534aea7a3e3a41205b9c.zip |
Changed to using stb_image for image loading, also alpha blending works!
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index ec485e7..62c8b16 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | #include "state.h" | 4 | #include "state.h" |
5 | #include "mapview.h" | 5 | #include "mapview.h" |
6 | #include "renderer.h" | 6 | #include "renderer.h" |
7 | #include <cstdlib> | ||
7 | 8 | ||
8 | using namespace::std; | 9 | using namespace::std; |
9 | 10 | ||
@@ -26,6 +27,8 @@ void key_callback(GLFWwindow* window, int key, int scancode, int action, int mod | |||
26 | 27 | ||
27 | int main() | 28 | int main() |
28 | { | 29 | { |
30 | srand(time(NULL)); | ||
31 | |||
29 | GLFWwindow* window = initRenderer(); | 32 | GLFWwindow* window = initRenderer(); |
30 | glfwSwapInterval(1); | 33 | glfwSwapInterval(1); |
31 | glfwSetKeyCallback(window, key_callback); | 34 | glfwSetKeyCallback(window, key_callback); |