[AE Engine logo] Public API Reference
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

aeTexCoord2 Class Reference

A class representing single 2D texture coordinate. More...

#include <texcoord2.h>

List of all members.

Public Member Functions

 aeTexCoord2 ()
 Create a new texture coordinate and initialize it to 0, 0.

 aeTexCoord2 (float ns, float nt=0)
 Create a new texture coordinate and initialize it to s, t.

 aeTexCoord2 (const aeTexCoord2 &tc)
 Copy constructor.

void set (float ns, float nt)
 Set this texcoord to given s, t.

void set (const aeTexCoord2 &tc)
 Set this texcoord to another texcoord.


Public Attributes

float s
 The S component of the texture coordinate.

float t
 The T component of the texture coordinate.


Friends

bool operator== (const aeTexCoord2 &t1, const aeTexCoord2 &t2)
 Check if two texcoords are equal.

bool operator!= (const aeTexCoord2 &t1, const aeTexCoord2 &t2)
 Check if two texcoords are not equal.


Detailed Description

A class representing single 2D texture coordinate.

Definition at line 33 of file texcoord2.h.


Constructor & Destructor Documentation

aeTexCoord2::aeTexCoord2   [inline]
 

Create a new texture coordinate and initialize it to 0, 0.

Definition at line 41 of file texcoord2.h.

aeTexCoord2::aeTexCoord2 float    ns,
float    nt = 0
[inline]
 

Create a new texture coordinate and initialize it to s, t.

Parameters:
s The texcoords's S component.
t The texcoords's T component.

Definition at line 49 of file texcoord2.h.

References s, and t.

aeTexCoord2::aeTexCoord2 const aeTexCoord2 &    tc [inline]
 

Copy constructor.

Parameters:
t Texcoord to copy to this texcoord.

Definition at line 56 of file texcoord2.h.

References s, and t.


Member Function Documentation

void aeTexCoord2::set const aeTexCoord2 &    tc [inline]
 

Set this texcoord to another texcoord.

Parameters:
t Texcoord to set this texcoord to.

Definition at line 105 of file texcoord2.h.

void aeTexCoord2::set float    ns,
float    nt
[inline]
 

Set this texcoord to given s, t.

Parameters:
ns The value to set the s component of this texcoord to.
nt The value to set the t component of this texcoord to.

Definition at line 95 of file texcoord2.h.


Friends And Related Function Documentation

bool operator!= const aeTexCoord2 &    t1,
const aeTexCoord2 &    t2
[friend]
 

Check if two texcoords are not equal.

Parameters:
t1 Texcoord1
t2 Texcoord2
Returns:
True if Texcoord1 != Texcoord2, false if not.

Definition at line 85 of file texcoord2.h.

bool operator== const aeTexCoord2 &    t1,
const aeTexCoord2 &    t2
[friend]
 

Check if two texcoords are equal.

Parameters:
t1 Texcoord1
t2 Texcoord2
Returns:
True if Texcoord1 == Texcoord2, false if not.

Definition at line 73 of file texcoord2.h.


The documentation for this class was generated from the following file:
AE Engine Public API Reference
Generated on Wed Apr 9 09:43:41 2003 by Doxygen.