xoreos
0.0.5
|
#include <areabackground.h>
Public Member Functions | |
AreaBackground (const Common::UString &name) | |
~AreaBackground () | |
uint32 | getImageWidth () const |
uint32 | getImageHeight () const |
void | calculateDistance () |
Calculate the object's distance. More... | |
void | render (Graphics::RenderPass pass) |
Render the object. More... | |
Public Member Functions inherited from Graphics::GUIElement | |
GUIElement (GUIElementType type) | |
~GUIElement () | |
Public Member Functions inherited from Graphics::Renderable | |
Renderable (RenderableType type) | |
~Renderable () | |
bool | operator< (const Queueable &q) const |
virtual void | advanceTime (float dt) |
Advance time (used by renderables with animations). More... | |
virtual void | renderImmediate (const glm::mat4 &parentTransform) |
For shader based systems, don't sort anything, render this right_now. More... | |
virtual void | queueRender (const glm::mat4 &parentTransform) |
Queue the object for later rendering. More... | |
double | getDistance () const |
Get the distance of the object from the viewer. More... | |
uint32 | getID () const |
Get the object's unique ID. More... | |
bool | isClickable () const |
Is the object clickable? More... | |
void | setClickable (bool clickable) |
Set the object's clickable state. More... | |
const Common::UString & | getTag () const |
Get the object's tag. More... | |
void | setTag (const Common::UString &tag) |
Set the object's tag. More... | |
bool | isVisible () const |
Is the object visible? More... | |
virtual void | show () |
Show the object. More... | |
virtual void | hide () |
Hide the object. More... | |
virtual bool | isIn (float x, float y) const |
Is that point within the object? More... | |
virtual bool | isIn (float x, float y, float z) const |
Is that point within the object? More... | |
virtual bool | isIn (float x1, float y1, float z1, float x2, float y2, float z2) const |
Does the line from x1.y1.z1 to x2.y2.z2 intersect with the object? More... | |
Public Member Functions inherited from Graphics::Queueable | |
Queueable () | |
virtual | ~Queueable () |
Public Member Functions inherited from Events::Notifyable | |
Notifyable () | |
virtual | ~Notifyable () |
Private Member Functions | |
void | loadTexture (const Common::UString &name) |
void | setPosition (float x, float y) |
void | notifyCameraMoved () |
Private Attributes | |
Graphics::Aurora::TextureHandle | _texture |
float | _textureX1 |
float | _textureY1 |
float | _textureX2 |
float | _textureY2 |
Additional Inherited Members | |
Public Types inherited from Graphics::GUIElement | |
enum | GUIElementType { kGUIElementFront = kRenderableTypeGUIFront, kGUIElementBack = kRenderableTypeGUIBack, kGUIElementConsole = kRenderableTypeConsole } |
Protected Member Functions inherited from Graphics::Renderable | |
void | resort () |
void | lockFrame () |
void | unlockFrame () |
void | lockFrameIfVisible () |
void | unlockFrameIfVisible () |
Protected Member Functions inherited from Graphics::Queueable | |
bool | isInQueue (QueueType queue) const |
void | addToQueue (QueueType queue) |
void | removeFromQueue (QueueType queue) |
void | lockQueue (QueueType queue) |
void | unlockQueue (QueueType queue) |
void | sortQueue (QueueType queue) |
Protected Attributes inherited from Graphics::Renderable | |
QueueType | _queueExists |
QueueType | _queueVisible |
uint32 | _id |
bool | _clickable |
Common::UString | _tag |
double | _distance |
The distance of the object from the viewer. More... | |
Definition at line 42 of file areabackground.h.
Engines::Sonic::AreaBackground::AreaBackground | ( | const Common::UString & | name | ) |
Definition at line 53 of file areabackground.cpp.
References Graphics::Renderable::_distance, FLT_MAX, loadTexture(), and setPosition().
Engines::Sonic::AreaBackground::~AreaBackground | ( | ) |
Definition at line 62 of file areabackground.cpp.
References Graphics::Renderable::hide().
|
virtual |
Calculate the object's distance.
Implements Graphics::Renderable.
Definition at line 74 of file areabackground.cpp.
uint32 Engines::Sonic::AreaBackground::getImageHeight | ( | ) | const |
Definition at line 70 of file areabackground.cpp.
References _texture, Graphics::Aurora::Texture::getHeight(), and Graphics::Aurora::TextureHandle::getTexture().
uint32 Engines::Sonic::AreaBackground::getImageWidth | ( | ) | const |
Definition at line 66 of file areabackground.cpp.
References _texture, Graphics::Aurora::TextureHandle::getTexture(), and Graphics::Aurora::Texture::getWidth().
|
private |
Definition at line 95 of file areabackground.cpp.
References _texture, Common::StackException::add(), Common::UString::c_str(), Graphics::Aurora::Texture::create(), Common::ScopedPtrBase< T, Deallocator >::get(), Aurora::kFileType2DA, Aurora::kFileTypeCBGT, Aurora::kFileTypePAL, Common::ScopedPtrBase< T, Deallocator >::release(), ResMan, and TextureMan.
Referenced by AreaBackground().
|
privatevirtual |
Reimplemented from Events::Notifyable.
Definition at line 135 of file areabackground.cpp.
References CameraMan, and setPosition().
|
virtual |
Render the object.
Implements Graphics::Renderable.
Definition at line 77 of file areabackground.cpp.
References _texture, _textureX1, _textureX2, _textureY1, _textureY2, Graphics::kRenderPassTransparent, Engines::Sonic::kVertexX1, Engines::Sonic::kVertexX2, Engines::Sonic::kVertexY1, Engines::Sonic::kVertexY2, pass, and TextureMan.
|
private |
Definition at line 120 of file areabackground.cpp.
References _texture, _textureX1, _textureX2, _textureY1, _textureY2, Common::deg2rad(), Graphics::Aurora::Texture::getHeight(), Graphics::Aurora::TextureHandle::getTexture(), Graphics::Aurora::Texture::getWidth(), Engines::Sonic::kCameraAngle, Engines::Sonic::kScreenHeight, and Engines::Sonic::kScreenWidth.
Referenced by AreaBackground(), and notifyCameraMoved().
|
private |
Definition at line 55 of file areabackground.h.
Referenced by getImageHeight(), getImageWidth(), loadTexture(), render(), and setPosition().
|
private |
Definition at line 57 of file areabackground.h.
Referenced by render(), and setPosition().
|
private |
Definition at line 59 of file areabackground.h.
Referenced by render(), and setPosition().
|
private |
Definition at line 58 of file areabackground.h.
Referenced by render(), and setPosition().
|
private |
Definition at line 60 of file areabackground.h.
Referenced by render(), and setPosition().