27 #include "render/graphics.h"
39 const float parallaxX,
40 const float parallaxY,
50 mParallaxX(parallaxX),
51 mParallaxY(parallaxY),
78 if (rescaledOverlay !=
nullptr)
102 const float time =
static_cast<float>(timePassed) / 10;
111 const SDL_Rect &rect =
mImage->mBounds;
112 const float imgW =
static_cast<float>(rect.w);
113 const float imgH =
static_cast<float>(rect.h);
int calcMemoryLocal() const
void draw(Graphics *const graphics, const int x, const int y) const
AmbientLayer(const std::string &name, Image *const img, const float parallax, const float parallaxY, const float posX, const float posY, const float speedX, const float speedY, const bool keepRatio, const int mask)
void update(const int timePassed, const float dx, const float dy)
virtual void drawRescaledPattern(const Image *const image, const int x, const int y, const int w, const int h, const int scaledWidth, const int scaledHeight)=0
virtual void drawPattern(const Image *const image, const int x, const int y, const int w, const int h)=0
virtual RenderType useOpenGL() const
static const int defaultScreenWidth
static const int defaultScreenHeight
ImageHelper * imageHelper
Image * getRescaled(const Image *const image, const int width, const int height)