hoa_video::private_video::ImageElement Class Reference

Represents a single image within an ImageDescriptor object. Compound images are formed of multiple ImageElements. More...

#include <image.h>

Collaboration diagram for hoa_video::private_video::ImageElement:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ImageElement (Image *image_, float x_offset_, float y_offset_, float u1_, float v1_, float u2_, float v2_, float width_, float height_)
 Constructor defaulting the element to have white vertices and disables blending.
 ImageElement (Image *image_, float x_offset_, float y_offset_, float u1_, float v1_, float u2_, float v2_, float width_, float height_, Color color_[4])
 Constructor specifying a specific image element. Multiple elements can be stacked to form one compound image.

Public Attributes

bool blend
 A true value indicates to perform blending with this element.
Color color [4]
 The colors of the four image vertices.
float height
 The height of the image in the stack, in coordinate system units.
Imageimage
 The image that is being referenced by this object.
bool one_color
 True if all of the vertices are the same color.
float u1
 The texture coordinates for the image. u1, v1 describes the upper-left corner while u2, v2 describes the bottom-right.
float u2
float v1
float v2
bool white
 Set to true if the vertices are all white.
float width
 The width of the image in the stack, in coordinate system units.
float x_offset
 The x offset in the image stack.
float y_offset
 The y offset in the image stack.

Friends

class AnimatedImage

Detailed Description

Represents a single image within an ImageDescriptor object. Compound images are formed of multiple ImageElements.

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

Definition at line 157 of file image.h.


Constructor & Destructor Documentation

hoa_video::private_video::ImageElement::ImageElement ( Image image_,
float  x_offset_,
float  y_offset_,
float  u1_,
float  v1_,
float  u2_,
float  v2_,
float  width_,
float  height_,
Color  color_[4] 
)

Constructor specifying a specific image element. Multiple elements can be stacked to form one compound image.

Definition at line 91 of file image.cpp.

References blend, color, one_color, white, and hoa_video::Color::white.

hoa_video::private_video::ImageElement::ImageElement ( Image image_,
float  x_offset_,
float  y_offset_,
float  u1_,
float  v1_,
float  u2_,
float  v2_,
float  width_,
float  height_ 
)

Constructor defaulting the element to have white vertices and disables blending.

Definition at line 71 of file image.cpp.

References blend, color, one_color, hoa_video::Color::white, and white.


Friends And Related Function Documentation

friend class AnimatedImage [friend]

Definition at line 158 of file image.h.


Member Data Documentation

bool hoa_video::private_video::ImageElement::blend

A true value indicates to perform blending with this element.

Definition at line 184 of file image.h.

Referenced by hoa_video::GameVideo::_DrawElement(), and ImageElement().

Color hoa_video::private_video::ImageElement::color[4]

The colors of the four image vertices.

Definition at line 181 of file image.h.

Referenced by ImageElement().

float hoa_video::private_video::ImageElement::height

The height of the image in the stack, in coordinate system units.

Definition at line 178 of file image.h.

Image* hoa_video::private_video::ImageElement::image

The image that is being referenced by this object.

Definition at line 161 of file image.h.

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

bool hoa_video::private_video::ImageElement::one_color

True if all of the vertices are the same color.

Definition at line 187 of file image.h.

Referenced by hoa_video::GameVideo::_DrawElement(), and ImageElement().

float hoa_video::private_video::ImageElement::u1

The texture coordinates for the image. u1, v1 describes the upper-left corner while u2, v2 describes the bottom-right.

Definition at line 172 of file image.h.

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

float hoa_video::private_video::ImageElement::u2

Definition at line 172 of file image.h.

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

float hoa_video::private_video::ImageElement::v1

Definition at line 172 of file image.h.

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

float hoa_video::private_video::ImageElement::v2

Definition at line 172 of file image.h.

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

bool hoa_video::private_video::ImageElement::white

Set to true if the vertices are all white.

Definition at line 190 of file image.h.

Referenced by ImageElement().

float hoa_video::private_video::ImageElement::width

The width of the image in the stack, in coordinate system units.

Definition at line 175 of file image.h.

float hoa_video::private_video::ImageElement::x_offset

The x offset in the image stack.

Definition at line 164 of file image.h.

float hoa_video::private_video::ImageElement::y_offset

The y offset in the image stack.

Definition at line 167 of file image.h.


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