mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 07:14:59 +00:00
STARK: Added opengl ifdef gaurds
This commit is contained in:
parent
e744e47fea
commit
9fb035b10a
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user