From 07770f3ad369ff47386310b731d349f7af1fe0d9 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 21 Oct 2018 16:21:16 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/Shader/je_jsl_compiler.cpp | 7 ++++++- src/libjin/Graphics/Shader/je_jsl_compiler.h | 11 ++++++++--- src/libjin/Graphics/Shader/je_shader.cpp | 5 ++--- src/libjin/Graphics/Shader/je_shader.h | 4 ++-- 4 files changed, 18 insertions(+), 9 deletions(-) (limited to 'src/libjin/Graphics/Shader') diff --git a/src/libjin/Graphics/Shader/je_jsl_compiler.cpp b/src/libjin/Graphics/Shader/je_jsl_compiler.cpp index 490caea..2683969 100644 --- a/src/libjin/Graphics/Shader/je_jsl_compiler.cpp +++ b/src/libjin/Graphics/Shader/je_jsl_compiler.cpp @@ -1,3 +1,6 @@ +#include "../../core/je_configuration.h" +#if defined(jin_graphics) && (jin_graphics & jin_graphics_shader) + #include "je_jsl_compiler.h" namespace JinEngine @@ -8,4 +11,6 @@ namespace JinEngine } // namespace Graphics -} // namespace JinEngine \ No newline at end of file +} // namespace JinEngine + +#endif // (jin_graphics) && (jin_graphics & jin_graphics_shader) \ No newline at end of file diff --git a/src/libjin/Graphics/Shader/je_jsl_compiler.h b/src/libjin/Graphics/Shader/je_jsl_compiler.h index b530466..1817a7b 100644 --- a/src/libjin/Graphics/Shader/je_jsl_compiler.h +++ b/src/libjin/Graphics/Shader/je_jsl_compiler.h @@ -1,6 +1,9 @@ #ifndef __JE_JSL_COMPILER_H #define __JE_JSL_COMPILER_H +#include "../../core/je_configuration.h" +#if defined(jin_graphics) && (jin_graphics & jin_graphics_shader) + #include "../../common/je_singleton.hpp" namespace JinEngine @@ -21,7 +24,9 @@ namespace JinEngine }; - } -} + } // namespace Graphics +} // namespace JinEngine + +#endif // (jin_graphics) && (jin_graphics & jin_graphics_shader) -#endif \ No newline at end of file +#endif // __JE_JSL_COMPILER_H \ No newline at end of file diff --git a/src/libjin/Graphics/Shader/je_shader.cpp b/src/libjin/Graphics/Shader/je_shader.cpp index 6066864..6c8076a 100644 --- a/src/libjin/Graphics/Shader/je_shader.cpp +++ b/src/libjin/Graphics/Shader/je_shader.cpp @@ -1,6 +1,5 @@ -#include #include "../../core/je_configuration.h" -#if defined(jin_graphics_shader) +#if defined(jin_graphics) && (jin_graphics & jin_graphics_shader) #include @@ -285,4 +284,4 @@ namespace JinEngine } // namespace Graphics } // namespace JinEngine -#endif // jin_graphics_shader \ No newline at end of file +#endif // (jin_graphics) && (jin_graphics & jin_graphics_shader) \ No newline at end of file diff --git a/src/libjin/Graphics/Shader/je_shader.h b/src/libjin/Graphics/Shader/je_shader.h index 69746de..928fb0a 100644 --- a/src/libjin/Graphics/Shader/je_shader.h +++ b/src/libjin/Graphics/Shader/je_shader.h @@ -2,7 +2,7 @@ #define __JE_SHADER_H #include "../../core/je_configuration.h" -#if defined(jin_graphics) && defined(jin_graphics_shader) +#if defined(jin_graphics) && (jin_graphics & jin_graphics_shader) #include #include @@ -195,6 +195,6 @@ namespace JinEngine } // namespace Graphics } // namespace JinEngine -#endif // jin_graphics && jin_graphics_shader +#endif // (jin_graphics) && (jin_graphics & jin_graphics_shader) #endif // __JE_SHADER_H \ No newline at end of file -- cgit v1.1-26-g67d0