Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Olympe::Tiled::IsometricProjection Class Reference

#include <IsometricProjection.h>

Static Public Member Functions

static Vector WorldToIso (float worldX, float worldY, int tileWidth, int tileHeight, int startX=0, int startY=0, float offsetX=0.0f, float offsetY=0.0f, float globalOffsetX=0.0f, float globalOffsetY=0.0f)
 
static Vector IsoToWorld (float isoX, float isoY, int tileWidth, int tileHeight, int startX=0, int startY=0, float offsetX=0.0f, float offsetY=0.0f, float globalOffsetX=0.0f, float globalOffsetY=0.0f)
 
static void ScreenToTile (float screenX, float screenY, int tileWidth, int tileHeight, int &outTileX, int &outTileY)
 
static Vector TileToScreen (int tileX, int tileY, int tileWidth, int tileHeight)
 
static void CalculateTMJOrigin (int minTileX, int minTileY, int maxTileX, int maxTileY, int tileWidth, int tileHeight, float &outOriginX, float &outOriginY)
 

Detailed Description

Definition at line 24 of file IsometricProjection.h.

Member Function Documentation

◆ CalculateTMJOrigin()

void Olympe::Tiled::IsometricProjection::CalculateTMJOrigin ( int  minTileX,
int  minTileY,
int  maxTileX,
int  maxTileY,
int  tileWidth,
int  tileHeight,
float outOriginX,
float outOriginY 
)
static

Definition at line 108 of file IsometricProjection.cpp.

References GetComponentTypeID_Static().

Referenced by World::GetIsometricOriginX(), and World::GetIsometricOriginY().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsoToWorld()

Vector Olympe::Tiled::IsometricProjection::IsoToWorld ( float  isoX,
float  isoY,
int  tileWidth,
int  tileHeight,
int  startX = 0,
int  startY = 0,
float  offsetX = 0.0f,
float  offsetY = 0.0f,
float  globalOffsetX = 0.0f,
float  globalOffsetY = 0.0f 
)
static

Definition at line 71 of file IsometricProjection.cpp.

References GetComponentTypeID_Static(), and Vector::x.

Referenced by ScreenToTile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ScreenToTile()

void Olympe::Tiled::IsometricProjection::ScreenToTile ( float  screenX,
float  screenY,
int  tileWidth,
int  tileHeight,
int outTileX,
int outTileY 
)
static

Definition at line 94 of file IsometricProjection.cpp.

References GetComponentTypeID_Static(), IsoToWorld(), Vector::x, and Vector::y.

+ Here is the call graph for this function:

◆ TileToScreen()

Vector Olympe::Tiled::IsometricProjection::TileToScreen ( int  tileX,
int  tileY,
int  tileWidth,
int  tileHeight 
)
static

Definition at line 102 of file IsometricProjection.cpp.

References WorldToIso().

+ Here is the call graph for this function:

◆ WorldToIso()

Vector Olympe::Tiled::IsometricProjection::WorldToIso ( float  worldX,
float  worldY,
int  tileWidth,
int  tileHeight,
int  startX = 0,
int  startY = 0,
float  offsetX = 0.0f,
float  offsetY = 0.0f,
float  globalOffsetX = 0.0f,
float  globalOffsetY = 0.0f 
)
static

Definition at line 55 of file IsometricProjection.cpp.

References GetComponentTypeID_Static(), and Vector::x.

Referenced by TileToScreen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: