Public Member Functions | Public Attributes

Tiny2D::Sprite::DrawParams Struct Reference

Sprite draw parameters. More...

#include <Tiny2D.h>

List of all members.

Public Member Functions

 DrawParams ()
 Constructs default draw parameters.

Public Attributes

Color color
 Color; defaults to Color::White.
Vec2 position
 Left top coordinate; defaults to (10.0f, 10.0f)
const Rectrect
 Optional coordinates specified via rectangle; defaults to NULL; if set 'position' is not used.
const RecttexCoordRect
 Optional texture coordinates to use; defaults to NULL.
float scale
 Scale; defaults to 1.0f.
float rotation
 Rotation; defaults to 0.0f.
bool flipX
 Flip in X?; defaults to false.
bool flipY
 Flip in Y?; defaults to false.

Detailed Description

Sprite draw parameters.


Constructor & Destructor Documentation

Tiny2D::Sprite::DrawParams::DrawParams (  )

Constructs default draw parameters.


Member Data Documentation

Color; defaults to Color::White.

Flip in X?; defaults to false.

Flip in Y?; defaults to false.

Left top coordinate; defaults to (10.0f, 10.0f)

Optional coordinates specified via rectangle; defaults to NULL; if set 'position' is not used.

Rotation; defaults to 0.0f.

Scale; defaults to 1.0f.

Optional texture coordinates to use; defaults to NULL.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines