hoa_video::RenderedLine Class Reference

A structure holding a single rendered line. More...

#include <text.h>

Collaboration diagram for hoa_video::RenderedLine:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { MAIN_TEXTURE = 0, SHADOW_TEXTURE = 1, NUM_TEXTURES = 2 }
 Num textures constant enum. More...

Public Member Functions

 RenderedLine (GLuint *tex, int32 lineWidth, int32 texWidth, int32 lineHeight, int32 texHeight, int32 xOffset, int32 yOffset)
 Create a RenderedLine.
 ~RenderedLine ()
 Deletes textures.

Public Attributes

int32 height
 The height of the line.
GLuint texture [NUM_TEXTURES]
 The GL texture.
float u
 U texture coordinate of the line.
float v
 V texture coordinate of the line.
int32 width
 The width of the line.
int32 x_offset
 The X offset to draw on.
int32 y_offset
 The Y offset to draw on.

Private Member Functions

RenderedLineoperator= (const RenderedLine &other)
 Disabled assignment operator.
 RenderedLine (const RenderedLine &other)
 Disabled copy constructor.

Detailed Description

A structure holding a single rendered line.

****************************************************************************

Definition at line 103 of file text.h.


Member Enumeration Documentation

anonymous enum

Num textures constant enum.

Enumerator:
MAIN_TEXTURE 
SHADOW_TEXTURE 
NUM_TEXTURES 

Definition at line 111 of file text.h.


Constructor & Destructor Documentation

hoa_video::RenderedLine::RenderedLine ( const RenderedLine other  )  [private]

Disabled copy constructor.

hoa_video::RenderedLine::RenderedLine ( GLuint *  tex,
int32  lineWidth,
int32  texWidth,
int32  lineHeight,
int32  texHeight,
int32  xOffset,
int32  yOffset 
)

Create a RenderedLine.

Definition at line 1025 of file text.cpp.

References NUM_TEXTURES, texture, u, and v.

hoa_video::RenderedLine::~RenderedLine (  ) 

Deletes textures.

Definition at line 1017 of file text.cpp.


Member Function Documentation

RenderedLine& hoa_video::RenderedLine::operator= ( const RenderedLine other  )  [private]

Disabled assignment operator.


Member Data Documentation

int32 hoa_video::RenderedLine::height

The height of the line.

Definition at line 118 of file text.h.

Referenced by hoa_video::GameVideo::Draw().

GLuint hoa_video::RenderedLine::texture[NUM_TEXTURES]

The GL texture.

Definition at line 126 of file text.h.

Referenced by hoa_video::GameVideo::Draw(), and RenderedLine().

float hoa_video::RenderedLine::u

U texture coordinate of the line.

Definition at line 124 of file text.h.

Referenced by hoa_video::GameVideo::Draw(), and RenderedLine().

float hoa_video::RenderedLine::v

V texture coordinate of the line.

Definition at line 120 of file text.h.

Referenced by hoa_video::GameVideo::Draw(), and RenderedLine().

int32 hoa_video::RenderedLine::width

The width of the line.

Definition at line 122 of file text.h.

Referenced by hoa_video::RenderedString::Add(), and hoa_video::GameVideo::Draw().

int32 hoa_video::RenderedLine::x_offset

The X offset to draw on.

Definition at line 128 of file text.h.

int32 hoa_video::RenderedLine::y_offset

The Y offset to draw on.

Definition at line 130 of file text.h.


The documentation for this class was generated from the following files:
Generated on Fri Jul 6 23:16:38 2007 for Hero of Allacrost by  doxygen 1.5.1