diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-05 03:16:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-05 03:16:23 +0400 |
commit | 0874237358aa6a80b7b56df1ca482a2db17a5d0d (patch) | |
tree | d826fd2bb56573b1908248add696d9a4fb5cff13 /source/gameengine/Rasterizer | |
parent | de50c12dbac0e53327a9909935709b6c0eee00ee (diff) |
code cleanup: bge warnings
Diffstat (limited to 'source/gameengine/Rasterizer')
11 files changed, 12 insertions, 14 deletions
diff --git a/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp b/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp index e093b7cd722..79ce8538210 100644 --- a/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp +++ b/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp @@ -24,7 +24,6 @@ * \ingroup bgerast */ - #define STRINGIFY(A) #A #include "RAS_OpenGLFilters/RAS_Blur2DFilter.h" diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Blur2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Blur2DFilter.h index c2595fb0d26..3f1644a5c60 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Blur2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Blur2DFilter.h @@ -32,7 +32,7 @@ #ifndef __RAS_BLUR2DFILTER_H__ #define __RAS_BLUR2DFILTER_H__ -const char * BlurFragmentShader=STRINGIFY( +static const char *BlurFragmentShader = STRINGIFY( uniform sampler2D bgl_RenderedTexture; uniform vec2 bgl_TextureCoordinateOffset[9]; diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Dilation2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Dilation2DFilter.h index 12b815a1519..4e863cb6f8d 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Dilation2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Dilation2DFilter.h @@ -32,7 +32,7 @@ #ifndef __RAS_DILATION2DFILTER_H__ #define __RAS_DILATION2DFILTER_H__ -const char * DilationFragmentShader=STRINGIFY( +static const char *DilationFragmentShader = STRINGIFY( uniform sampler2D bgl_RenderedTexture; uniform vec2 bgl_TextureCoordinateOffset[9]; diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Erosion2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Erosion2DFilter.h index eaefd5c13fa..56e2c22fe2e 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Erosion2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Erosion2DFilter.h @@ -32,9 +32,9 @@ #ifndef __RAS_EROSION2DFILTER_H__ #define __RAS_EROSION2DFILTER_H__ -const char * ErosionFragmentShader = STRINGIFY( - uniform sampler2D bgl_RenderedTexture; - uniform vec2 bgl_TextureCoordinateOffset[9]; +static const char *ErosionFragmentShader = STRINGIFY( +uniform sampler2D bgl_RenderedTexture; +uniform vec2 bgl_TextureCoordinateOffset[9]; void main(void) { diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_GrayScale2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_GrayScale2DFilter.h index f3c3aece7d5..932d5b16fed 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_GrayScale2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_GrayScale2DFilter.h @@ -32,7 +32,7 @@ #ifndef __RAS_GRAYSCALE2DFILTER_H__ #define __RAS_GRAYSCALE2DFILTER_H__ -const char * GrayScaleFragmentShader=STRINGIFY( +static const char *GrayScaleFragmentShader = STRINGIFY( uniform sampler2D bgl_RenderedTexture; void main(void) diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Invert2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Invert2DFilter.h index c04d9543e89..dce303916ea 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Invert2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Invert2DFilter.h @@ -32,7 +32,7 @@ #ifndef __RAS_INVERT2DFILTER_H__ #define __RAS_INVERT2DFILTER_H__ -const char * InvertFragmentShader=STRINGIFY( +static const char *InvertFragmentShader = STRINGIFY( uniform sampler2D bgl_RenderedTexture; void main(void) diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Laplacian2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Laplacian2DFilter.h index 47f7d80d9d7..9ec5092817d 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Laplacian2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Laplacian2DFilter.h @@ -32,7 +32,7 @@ #ifndef __RAS_LAPLACIAN2DFILTER_H__ #define __RAS_LAPLACIAN2DFILTER_H__ -const char * LaplacionFragmentShader=STRINGIFY( +static const char *LaplacionFragmentShader = STRINGIFY( uniform sampler2D bgl_RenderedTexture; uniform vec2 bgl_TextureCoordinateOffset[9]; diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Prewitt2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Prewitt2DFilter.h index 8b2fdc71cfb..4ae6009fdeb 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Prewitt2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Prewitt2DFilter.h @@ -32,7 +32,7 @@ #ifndef __RAS_PREWITT2DFILTER_H__ #define __RAS_PREWITT2DFILTER_H__ -const char * PrewittFragmentShader=STRINGIFY( +static const char *PrewittFragmentShader = STRINGIFY( uniform sampler2D bgl_RenderedTexture; uniform vec2 bgl_TextureCoordinateOffset[9]; diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sepia2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sepia2DFilter.h index b38d14a3746..16b4e71dfdb 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sepia2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sepia2DFilter.h @@ -32,7 +32,7 @@ #ifndef __RAS_SEPIA2DFILTER_H__ #define __RAS_SEPIA2DFILTER_H__ -const char * SepiaFragmentShader=STRINGIFY( +static const char *SepiaFragmentShader = STRINGIFY( uniform sampler2D bgl_RenderedTexture; void main(void) diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sharpen2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sharpen2DFilter.h index 2e0edae61c4..7512393815b 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sharpen2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sharpen2DFilter.h @@ -32,7 +32,7 @@ #ifndef __RAS_SHARPEN2DFILTER_H__ #define __RAS_SHARPEN2DFILTER_H__ -const char * SharpenFragmentShader=STRINGIFY( +static const char *SharpenFragmentShader = STRINGIFY( uniform sampler2D bgl_RenderedTexture; uniform vec2 bgl_TextureCoordinateOffset[9]; @@ -53,4 +53,3 @@ void main(void) } ); #endif - diff --git a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sobel2DFilter.h b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sobel2DFilter.h index ba30e497923..088ac10a56a 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sobel2DFilter.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sobel2DFilter.h @@ -32,7 +32,7 @@ #ifndef __RAS_SOBEL2DFILTER_H__ #define __RAS_SOBEL2DFILTER_H__ -const char * SobelFragmentShader=STRINGIFY( +static const char *SobelFragmentShader = STRINGIFY( uniform sampler2D bgl_RenderedTexture; uniform vec2 bgl_TextureCoordinateOffset[9]; |