#include <MercuryTexture.h>
Inheritance diagram for MercuryTexture:


Public Member Functions | |
| MercuryTexture () | |
| MercuryTexture (const MercuryTexture &texture) | |
| virtual | ~MercuryTexture () |
| virtual void | Message (int Message, PStack &data, const MString &name) |
| Receive message (When subscribing to messages, you receive them via this command). | |
| virtual void | CalculateMatrices () |
| void | SetIsDynamic (bool isDynamic) |
| bool | IsDynamic () const |
| void | SetIsDynamicShadow (bool isDynamicShadow) |
| bool | IsDynamicShadow () const |
| virtual void | Prerender () |
| Add another object to this object's children. | |
| virtual void | Render () |
| virtual void | Draw () |
| [internal] Draw (CALL FIRST when using abstracted draw commands) | |
| void | AutoDestroy () |
| Destroy this texture, but don't delete it. | |
| void | SetPath (MString path) |
| void | SetIsMipmap (bool value) |
| bool | IsMipmap () const |
| MAPPING | GetMapping () const |
| void | SetMapping (MAPPING mapping) |
| FILTER | GetMagFilter () const |
| void | SetMagFilter (FILTER filter) |
| void | SetMapMode (int mapMode) |
| int | GetMapMode () const |
| int | GetWidth () const |
| Get the current (resized) demensions always a power of 2. | |
| int | GetHeight () const |
| void | SetWidth (unsigned int w) |
| void | SetHeight (unsigned int h) |
| int | GetOriginalWidth () const |
| The original width of the image before resize to a pow of 2. | |
| int | GetOriginalHeight () const |
| void | SetOriginalWidth (int width) |
| void | SetOriginalHeight (int height) |
| float | GetDpiX () const |
| float | GetDpiY () const |
| void | SetDpiX (const float dpi_x) |
| void | SetDpiY (const float dpi_y) |
| const MString & | GetPath () const |
| ColorBytes | GetColorByteType () const |
| void | SetColorByteType (ColorBytes type) |
| unsigned int | GetID () const |
| void | SetID (unsigned int id) |
| void | SetAttributes (TextureAttrs &attrs) |
| const TextureAttrs & | GetAttributes () const |
| const ImageAttrs & | GetImageAttributes () const |
| void | operator= (const MercuryTexture &texture) |
| CLASS_RTTI (MercuryTexture, MercuryObject) | |
| void | MakeAttachToVBO (int iVBO) |
| void | SendLoadMessage () |
| void | SendLoadFromRaw (RawImageData *data) |
Private Member Functions | |
| void | SendRemoveMessage () |
| void | CorrectSize () |
Private Attributes | |
| MString | m_path |
| TextureAttrs | m_attrs |
| ImageAttrs | m_imageAttrs |
Definition at line 140 of file MercuryTexture.h.
| MercuryTexture::MercuryTexture | ( | ) |
Definition at line 46 of file MercuryTexture.cpp.
| MercuryTexture::MercuryTexture | ( | const MercuryTexture & | texture | ) |
Definition at line 52 of file MercuryTexture.cpp.
| MercuryTexture::~MercuryTexture | ( | ) | [virtual] |
Definition at line 59 of file MercuryTexture.cpp.
Receive message (When subscribing to messages, you receive them via this command).
Reimplemented from MercuryMessageHandler.
Definition at line 64 of file MercuryTexture.cpp.
| void MercuryTexture::CalculateMatrices | ( | ) | [virtual] |
| void MercuryTexture::SetIsDynamic | ( | bool | isDynamic | ) | [inline] |
Definition at line 151 of file MercuryTexture.h.
| bool MercuryTexture::IsDynamic | ( | ) | const [inline] |
Definition at line 152 of file MercuryTexture.h.
| void MercuryTexture::SetIsDynamicShadow | ( | bool | isDynamicShadow | ) | [inline] |
Definition at line 154 of file MercuryTexture.h.
| bool MercuryTexture::IsDynamicShadow | ( | ) | const [inline] |
Definition at line 155 of file MercuryTexture.h.
| void MercuryTexture::Prerender | ( | ) | [virtual] |
Add another object to this object's children.
MercuryObject takes on an object and a ParentDelete. if bParentDelete == true, then the parent you are adding object to will delete object when the parent is deleted.
Reimplemented from MercuryObject.
Definition at line 284 of file MercuryTexture.cpp.
| virtual void MercuryTexture::Render | ( | ) | [inline, virtual] |
| virtual void MercuryTexture::Draw | ( | ) | [inline, virtual] |
[internal] Draw (CALL FIRST when using abstracted draw commands)
Reimplemented from MercuryObject.
Definition at line 160 of file MercuryTexture.h.
| void MercuryTexture::AutoDestroy | ( | ) |
| void MercuryTexture::SetPath | ( | MString | path | ) | [inline] |
Definition at line 165 of file MercuryTexture.h.
| void MercuryTexture::SetIsMipmap | ( | bool | value | ) | [inline] |
Definition at line 167 of file MercuryTexture.h.
| bool MercuryTexture::IsMipmap | ( | ) | const [inline] |
Definition at line 168 of file MercuryTexture.h.
| MAPPING MercuryTexture::GetMapping | ( | ) | const [inline] |
Definition at line 170 of file MercuryTexture.h.
| void MercuryTexture::SetMapping | ( | MAPPING | mapping | ) | [inline] |
Definition at line 171 of file MercuryTexture.h.
| FILTER MercuryTexture::GetMagFilter | ( | ) | const [inline] |
Definition at line 173 of file MercuryTexture.h.
| void MercuryTexture::SetMagFilter | ( | FILTER | filter | ) | [inline] |
Definition at line 174 of file MercuryTexture.h.
| void MercuryTexture::SetMapMode | ( | int | mapMode | ) | [inline] |
0: clamp UV (00) 1: clamp U, repeat V (01) 2: repeat U, clamp V (10) 3: repeat UV (11)
Definition at line 180 of file MercuryTexture.h.
| int MercuryTexture::GetMapMode | ( | ) | const [inline] |
Definition at line 181 of file MercuryTexture.h.
| int MercuryTexture::GetWidth | ( | ) | const [inline] |
Get the current (resized) demensions always a power of 2.
Definition at line 184 of file MercuryTexture.h.
| int MercuryTexture::GetHeight | ( | ) | const [inline] |
Definition at line 185 of file MercuryTexture.h.
| void MercuryTexture::SetWidth | ( | unsigned int | w | ) | [inline] |
Definition at line 186 of file MercuryTexture.h.
| void MercuryTexture::SetHeight | ( | unsigned int | h | ) | [inline] |
Definition at line 187 of file MercuryTexture.h.
| int MercuryTexture::GetOriginalWidth | ( | ) | const [inline] |
The original width of the image before resize to a pow of 2.
Definition at line 190 of file MercuryTexture.h.
| int MercuryTexture::GetOriginalHeight | ( | ) | const [inline] |
Definition at line 191 of file MercuryTexture.h.
| void MercuryTexture::SetOriginalWidth | ( | int | width | ) | [inline] |
Definition at line 192 of file MercuryTexture.h.
| void MercuryTexture::SetOriginalHeight | ( | int | height | ) | [inline] |
Definition at line 193 of file MercuryTexture.h.
| float MercuryTexture::GetDpiX | ( | ) | const [inline] |
Definition at line 195 of file MercuryTexture.h.
| float MercuryTexture::GetDpiY | ( | ) | const [inline] |
Definition at line 196 of file MercuryTexture.h.
| void MercuryTexture::SetDpiX | ( | const float | dpi_x | ) | [inline] |
Definition at line 197 of file MercuryTexture.h.
| void MercuryTexture::SetDpiY | ( | const float | dpi_y | ) | [inline] |
Definition at line 198 of file MercuryTexture.h.
| const MString& MercuryTexture::GetPath | ( | ) | const [inline] |
Definition at line 199 of file MercuryTexture.h.
| ColorBytes MercuryTexture::GetColorByteType | ( | ) | const [inline] |
Definition at line 200 of file MercuryTexture.h.
| void MercuryTexture::SetColorByteType | ( | ColorBytes | type | ) | [inline] |
Definition at line 201 of file MercuryTexture.h.
| unsigned int MercuryTexture::GetID | ( | ) | const [inline] |
Definition at line 202 of file MercuryTexture.h.
| void MercuryTexture::SetID | ( | unsigned int | id | ) | [inline] |
Definition at line 203 of file MercuryTexture.h.
| void MercuryTexture::SetAttributes | ( | TextureAttrs & | attrs | ) | [inline] |
Definition at line 204 of file MercuryTexture.h.
| const TextureAttrs& MercuryTexture::GetAttributes | ( | ) | const [inline] |
Definition at line 205 of file MercuryTexture.h.
| const ImageAttrs& MercuryTexture::GetImageAttributes | ( | ) | const [inline] |
Definition at line 206 of file MercuryTexture.h.
| void MercuryTexture::operator= | ( | const MercuryTexture & | texture | ) |
Definition at line 121 of file MercuryTexture.cpp.
| MercuryTexture::CLASS_RTTI | ( | MercuryTexture | , | |
| MercuryObject | ||||
| ) |
| void MercuryTexture::MakeAttachToVBO | ( | int | iVBO | ) | [inline] |
Definition at line 211 of file MercuryTexture.h.
| void MercuryTexture::SendLoadMessage | ( | ) |
Definition at line 100 of file MercuryTexture.cpp.
| void MercuryTexture::SendLoadFromRaw | ( | RawImageData * | data | ) |
Definition at line 110 of file MercuryTexture.cpp.
| void MercuryTexture::SendRemoveMessage | ( | ) | [private] |
Definition at line 91 of file MercuryTexture.cpp.
| void MercuryTexture::CorrectSize | ( | ) | [private] |
MString MercuryTexture::m_path [private] |
Definition at line 218 of file MercuryTexture.h.
TextureAttrs MercuryTexture::m_attrs [private] |
Definition at line 219 of file MercuryTexture.h.
ImageAttrs MercuryTexture::m_imageAttrs [private] |
Definition at line 220 of file MercuryTexture.h.