STARK: Added opengl ifdef gaurds

This commit is contained in:
Paweł Kołodziejski 2020-10-15 08:30:05 +02:00
parent e744e47fea
commit 9fb035b10a
10 changed files with 42 additions and 0 deletions

View File

@ -30,6 +30,8 @@
#include "engines/stark/gfx/opengls.h"
#include "engines/stark/gfx/texture.h"
#if defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
#include "graphics/opengl/shader.h"
namespace Stark {
@ -428,3 +430,5 @@ bool OpenGLSActorRenderer::getSpotLightContribution(LightEntry *light,
} // End of namespace Gfx
} // End of namespace Stark
#endif // defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)

View File

@ -31,6 +31,8 @@
#include "graphics/opengl/system_headers.h"
#if defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
namespace OpenGL {
class ShaderGL;
}
@ -75,4 +77,6 @@ protected:
} // End of namespace Gfx
} // End of namespace Stark
#endif // defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
#endif // STARK_GFX_OPENGL_S_ACTOR_H

View File

@ -24,6 +24,8 @@
#include "engines/stark/gfx/opengls.h"
#if defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
#include "graphics/opengl/shader.h"
namespace Stark {
@ -52,3 +54,5 @@ void OpenGLSFadeRenderer::render(float fadeLevel) {
} // End of namespace Gfx
} // End of namespace Stark
#endif // defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)

View File

@ -23,6 +23,10 @@
#ifndef STARK_GFX_OPENGL_S_FADE_H
#define STARK_GFX_OPENGL_S_FADE_H
#include "graphics/opengl/system_headers.h"
#if defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
#include "engines/stark/gfx/faderenderer.h"
namespace OpenGL {
@ -53,4 +57,6 @@ private:
} // End of namespace Gfx
} // End of namespace Stark
#endif // defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
#endif // STARK_GFX_OPENGL_S_FADE_H

View File

@ -28,6 +28,8 @@
#include "engines/stark/scene.h"
#include "engines/stark/services/services.h"
#if defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
#include "graphics/opengl/shader.h"
namespace Stark {
@ -190,3 +192,5 @@ void OpenGLSPropRenderer::setLightArrayUniform(const LightEntryArray &lights) {
} // End of namespace Gfx
} // End of namespace Stark
#endif // defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)

View File

@ -31,6 +31,8 @@
#include "graphics/opengl/system_headers.h"
#if defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
namespace OpenGL {
class ShaderGL;
}
@ -71,3 +73,5 @@ protected:
} // End of namespace Stark
#endif // STARK_GFX_OPENGL_S_RENDERED_H
#endif // defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)

View File

@ -25,6 +25,8 @@
#include "engines/stark/gfx/opengls.h"
#include "engines/stark/gfx/texture.h"
#if defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
#include "graphics/opengl/shader.h"
namespace Stark {
@ -80,3 +82,5 @@ Math::Vector2d OpenGLSSurfaceRenderer::normalizeCurrentCoordinates(int x, int y)
} // End of namespace Gfx
} // End of namespace Stark
#endif // if defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)

View File

@ -27,6 +27,8 @@
#include "math/vector2d.h"
#if defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
namespace OpenGL {
class ShaderGL;
}
@ -60,4 +62,6 @@ private:
} // End of namespace Gfx
} // End of namespace Stark
#endif // defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
#endif // STARK_GFX_OPENGL_S_SURFACE_H

View File

@ -26,6 +26,8 @@
#include "graphics/surface.h"
#if defined(USE_OPENGL_GAME) || defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
namespace Stark {
namespace Gfx {
@ -127,3 +129,5 @@ void OpenGlTexture::addLevel(uint32 level, const Graphics::Surface *surface, con
} // End of namespace Gfx
} // End of namespace Stark
#endif // defined(USE_OPENGL_GAME) || defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)

View File

@ -27,6 +27,8 @@
#include "graphics/opengl/system_headers.h"
#if defined(USE_OPENGL_GAME) || defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
namespace Stark {
namespace Gfx {
@ -55,4 +57,6 @@ protected:
} // End of namespace Gfx
} // End of namespace Stark
#endif // defined(USE_OPENGL_GAME) || defined(USE_GLES2) || defined(USE_OPENGL_SHADERS)
#endif // STARK_GFX_OPENGL_TEXTURE_H