10#include "../system/system_utils.h"
13#include "../drawing.h"
40 SYSTEM_LOG <<
"IsometricRenderer: Initialized with tile size "
41 << tileWidth <<
"x" << tileHeight <<
"\n";
99 static_cast<float>(worldY));
ComponentTypeID GetComponentTypeID_Static()
static SDL_Renderer * renderer
Vector WorldToScreen(float worldX, float worldY) const
void SetViewport(int screenWidth, int screenHeight)
Vector ScreenToWorld(float screenX, float screenY) const
static constexpr float TALL_TILE_MULTIPLIER
void Initialize(SDL_Renderer *renderer, int tileWidth, int tileHeight)
void GetVisibleTileRange(int &minX, int &minY, int &maxX, int &maxY) const
bool IsTileVisible(int worldX, int worldY) const
static constexpr int VISIBLE_TILE_PADDING
SDL_Renderer * m_renderer
static constexpr float ISOMETRIC_OFFSET_Y
float CalculateCullingMargin() const
static constexpr float CULL_MARGIN
void SetCamera(float camX, float camY, float zoom)