File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1111#include " renderer/render_target.h"
1212#include " renderer/resources/mesh_data.h"
1313#include " renderer/resources/shader_source.h"
14+ #include " renderer/resources/shader_template.h"
1415#include " renderer/shader_program.h"
15- # include " renderer/stages/world/shader_template.h "
16+
1617
1718namespace openage ::renderer::tests {
1819
@@ -30,7 +31,7 @@ void renderer_demo_7(const util::Path &path) {
3031 auto shaderdir = path / " assets" / " test" / " shaders" ;
3132
3233 // Initialize shader template
33- world ::ShaderTemplate frag_template (shaderdir / " demo_7_shader_command.frag.glsl" );
34+ resources ::ShaderTemplate frag_template (shaderdir / " demo_7_shader_command.frag.glsl" );
3435
3536 // Load snippets from a snippet directory
3637 frag_template.load_snippets (shaderdir / " demo_7_snippets" );
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ add_sources(libopenage
44 mesh_data.cpp
55 palette_info.cpp
66 shader_source.cpp
7+ shader_template.cpp
78 texture_data.cpp
89 texture_info.cpp
910 texture_subinfo.cpp
Original file line number Diff line number Diff line change 77#include " error/error.h"
88#include " log/log.h"
99
10- namespace openage ::renderer::world {
10+ namespace openage ::renderer::resources {
1111
1212ShaderTemplate::ShaderTemplate (const util::Path &template_path) {
1313 auto file = template_path.open ();
Original file line number Diff line number Diff line change 1212
1313namespace openage {
1414namespace renderer {
15- namespace world {
15+ namespace resources {
1616
1717/* *
1818 * Manages shader templates and their code snippets.
@@ -57,7 +57,7 @@ class ShaderTemplate {
5757 // / Mapping of placeholder IDs to their code snippets
5858 std::map<std::string, std::string> snippets;
5959
60- // / Info about a placeholder found in the template
60+ // / Info about a placeholder found in the template
6161 struct Placeholder {
6262 std::string name;
6363 size_t position;
Original file line number Diff line number Diff line change @@ -2,5 +2,4 @@ add_sources(libopenage
22 object.cpp
33 render_entity.cpp
44 render_stage.cpp
5- shader_template.cpp
65)
You can’t perform that action at this time.
0 commit comments