Drop Table Engine 1.0
Loading...
Searching...
No Matches
Camera Class Reference

Public Member Functions

 this (long x, long y, long width, long height)
 
bool IsInView (SDL_Rect *rect)
 
SDL_Rect MapToScreen (SDL_Rect *rect)
 
void SetPosition (long x, long y)
 
void SetCenter (long x, long y)
 
void SetSize (long width, long height)
 
void SetZoom (long zoom)
 

Static Public Member Functions

static void SetResolution (long x, long y)
 

Public Attributes

long mX
 
long mY
 
long mWidth
 
long mHeight
 

Static Public Attributes

static long xResolution = 640
 
static long yResolution = 480
 

Constructor & Destructor Documentation

◆ this()

Camera::this ( long x,
long y,
long width,
long height )
inline

Member Function Documentation

◆ IsInView()

bool Camera::IsInView ( SDL_Rect * rect)
inline

◆ MapToScreen()

SDL_Rect Camera::MapToScreen ( SDL_Rect * rect)
inline

◆ SetCenter()

void Camera::SetCenter ( long x,
long y )
inline

◆ SetPosition()

void Camera::SetPosition ( long x,
long y )
inline

◆ SetResolution()

static void Camera::SetResolution ( long x,
long y )
inlinestatic

◆ SetSize()

void Camera::SetSize ( long width,
long height )
inline

◆ SetZoom()

void Camera::SetZoom ( long zoom)
inline

Member Data Documentation

◆ mHeight

long Camera::mHeight

◆ mWidth

long Camera::mWidth

◆ mX

long Camera::mX

◆ mY

long Camera::mY

◆ xResolution

long Camera::xResolution = 640
static

◆ yResolution

long Camera::yResolution = 480
static

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