TexAnchor Class Reference

TexAnchor is a simple 2D coordinate which specifies an anchor in a texture. More...

#include <MyPolygon.h>

List of all members.

Public Member Functions

 TexAnchor (double _x=0.0, double _y=0.0)

Public Attributes

float x
float y


Detailed Description

TexAnchor is a simple 2D coordinate which specifies an anchor in a texture.

Values of x and y of a texture anchor are usually between 0 to 1, (0,0) is the lower left corner and (1,1) is the upper right corner. This class is used in various texture related tasks in MyPolygon


Constructor & Destructor Documentation

TexAnchor::TexAnchor ( double  _x = 0.0,
double  _y = 0.0 
) [inline]


Member Data Documentation

float TexAnchor::x

float TexAnchor::y


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