Sprite Struct Reference
[Rendering Services]

Inherits Geometry.

Inherited by SpriteImpl.

List of all members.

Public Methods

virtual bool initialize (Float width, Float height)=0
virtual void setWidth (Float width)=0
virtual Float getWidth () const=0
virtual void setHeight (Float height)=0
virtual Float getHeight () const=0
virtual void flipX ()=0
virtual void flipY ()=0
virtual bool isXFlipped ()=0
virtual bool isYFlipped ()=0


Detailed Description

A sprite is essentially a 2D quad. You may set the width and height of the quad, as well as the texture extents.


Member Function Documentation

virtual void Sprite::flipX   [pure virtual]
 

Flip the sprite horizontally.

virtual void Sprite::flipY   [pure virtual]
 

Flip the sprite vertically.

virtual Float Sprite::getHeight   const [pure virtual]
 

Get the sprite height.

virtual Float Sprite::getWidth   const [pure virtual]
 

Get the sprite width.

virtual bool Sprite::initialize Float    width,
Float    height
[pure virtual]
 

Specify the size of the sprite. The default is 1.0 units wide and tall.

virtual bool Sprite::isXFlipped   [pure virtual]
 

Is the sprite flipped horizontally?

virtual bool Sprite::isYFlipped   [pure virtual]
 

Is the sprite flipped vertically?

virtual void Sprite::setHeight Float    height [pure virtual]
 

Set the sprite height.

virtual void Sprite::setWidth Float    width [pure virtual]
 

Set the sprite height.


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


Flat Four Engine
Copyright (C) 2001 by 379, Inc.
This page generated by Doxygen