File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// Hello, production branch!
22// :3
33
4- // If GRAPHX_EMBED_SHADERS is defined, GraphX will use std::string variables in an included header file for the shader code
5- // instead of the files in src/shaders.
6- // This is used when compiling the binary that I put in the GitHub release, as I don't have a great solution for loading things
7- // like image and shader files without having them be physically right next to the binary program.
8- #define GRAPHX_EMBED_SHADERS
94#define STB_IMAGE_IMPLEMENTATION
105#include " sanity.hpp"
116#include " r_common.hpp"
1611#include < vector>
1712#include < thread>
1813#include < mutex>
19- // #include <filesystem>
2014
2115GraphXPlayer player (" Player" , glm::vec3(0 .0f , 3 .0f , 0 .0f ));
2216Environment default_environment (true );
@@ -70,7 +64,6 @@ int main()
7064
7165 glGenVertexArrays (VAOS_AMOUNT , &VAOs[0 ]);
7266
73- // GLShader phong_shader(std::filesystem::path("src/shaders/phong_vertex.glsl"), std::filesystem::path("src/shaders/phong_fragment.glsl"));
7467 GLShader phong_shader (phong_vertex_glsl, phong_fragment_glsl);
7568 shaders.insert (shaders.end (), {&phong_shader});
7669
You can’t perform that action at this time.
0 commit comments