Handles 2D background files.
More...
#include <VGearsBackground2DFile.h>
|
| Background2DFile (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=nullptr) |
| Constructor. More...
|
|
virtual | ~Background2DFile () |
| Destructor. More...
|
|
virtual void | SetTextureName (const String &texture_name) |
| Sets the texture name. More...
|
|
virtual String | GetTextureName () const |
| Retrieves the texture name. More...
|
|
virtual void | SetRange (const Ogre::Vector4 &range) |
| Sets the background range. More...
|
|
virtual Ogre::Vector4 | GetRange () const |
| Retrieves the background range. More...
|
|
virtual void | SetClip (const Ogre::Vector2 &clip) |
| Sets the background clip. More...
|
|
virtual Ogre::Vector2 | GetClip () const |
| Retrieves the background clip. More...
|
|
virtual void | SetPosition (const Ogre::Vector3 &position) |
| Sets the background position. More...
|
|
virtual Ogre::Vector3 | GetPosition () const |
| Retrieves the background clip. More...
|
|
virtual void | SetOrientation (const Ogre::Quaternion &orientation) |
| Sets the background orientation. More...
|
|
virtual Ogre::Quaternion | GetOrientation () const |
| Retrieves the background orientation. More...
|
|
virtual void | SetFov (const Ogre::Radian &fov) |
| Sets the background field of view. More...
|
|
virtual Ogre::Radian | GetFov () const |
| Retrieves the background field of view. More...
|
|
virtual TileList & | GetTiles () |
| Retrieves the list of tiles. More...
|
|
| Resource (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool manual, Ogre::ManualResourceLoader *loader) |
| Constructor. More...
|
|
virtual | ~Resource ()=default |
| Destructor. More...
|
|
Handles 2D background files.
- Todo:
- What's the difference with VGearsBackgroundFile.h?
◆ TileList
◆ Background2DFile()
VGears::Background2DFile::Background2DFile |
( |
Ogre::ResourceManager * |
creator, |
|
|
const String & |
name, |
|
|
Ogre::ResourceHandle |
handle, |
|
|
const String & |
group, |
|
|
bool |
is_manual = false , |
|
|
Ogre::ManualResourceLoader * |
loader = nullptr |
|
) |
| |
Constructor.
- Parameters
-
[in] | creator | Pointer to the ResourceManager that is creating this resource. |
[in] | name | The unique name of the resource. |
[in] | handle | |
- Todo:
- Understand and document.
- Parameters
-
[in] | group | The name of the resource group to which this resource belong. |
[in] | is_manual | True if the resource is manually loaded, false otherwise. |
[in] | loader | Pointer to a ManualResourceLoader implementation which will be called when the Resource wishes to load (should be supplied if is_manual is set to true). It can be null, but the Resource will never be able to reload if anything ever causes it to unload. Therefore provision of a proper ManualResourceLoader instance is strongly recommended. |
◆ ~Background2DFile()
VGears::Background2DFile::~Background2DFile |
( |
| ) |
|
|
virtual |
◆ calculateSize()
size_t VGears::Background2DFile::calculateSize |
( |
void |
| ) |
const |
|
overrideprotectedvirtual |
Calculates the size of the background.
- Returns
- The size of the background.
- Todo:
- Units?
◆ GetClip()
Ogre::Vector2 VGears::Background2DFile::GetClip |
( |
| ) |
const |
|
virtual |
Retrieves the background clip.
- Returns
- 4-dimensional vector with the background clip.
- Todo:
- What is this clip?
◆ GetFov()
Ogre::Radian VGears::Background2DFile::GetFov |
( |
| ) |
const |
|
virtual |
Retrieves the background field of view.
- Returns
- The field of view angle.
◆ GetOrientation()
Ogre::Quaternion VGears::Background2DFile::GetOrientation |
( |
| ) |
const |
|
virtual |
Retrieves the background orientation.
- Returns
- The background orientation quaternion.
◆ GetPosition()
Ogre::Vector3 VGears::Background2DFile::GetPosition |
( |
| ) |
const |
|
virtual |
Retrieves the background clip.
- Returns
- 4-dimensional vector with the background clip.
- Todo:
- What is this clip?
◆ GetRange()
Ogre::Vector4 VGears::Background2DFile::GetRange |
( |
| ) |
const |
|
virtual |
Retrieves the background range.
- Returns
- 4-dimensional vector with the background range.
- Todo:
- What is this range?
◆ GetTextureName()
String VGears::Background2DFile::GetTextureName |
( |
| ) |
const |
|
virtual |
Retrieves the texture name.
- Returns
- The texture name.
◆ GetTiles()
Retrieves the list of tiles.
◆ loadImpl()
void VGears::Background2DFile::loadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ SetClip()
void VGears::Background2DFile::SetClip |
( |
const Ogre::Vector2 & |
clip | ) |
|
|
virtual |
Sets the background clip.
- Parameters
-
- Todo:
- What is this clip?
◆ SetFov()
void VGears::Background2DFile::SetFov |
( |
const Ogre::Radian & |
fov | ) |
|
|
virtual |
Sets the background field of view.
- Parameters
-
[in] | fov | Field of view angle. |
◆ SetOrientation()
void VGears::Background2DFile::SetOrientation |
( |
const Ogre::Quaternion & |
orientation | ) |
|
|
virtual |
Sets the background orientation.
- Parameters
-
[in] | orientation | The new orientation. |
◆ SetPosition()
void VGears::Background2DFile::SetPosition |
( |
const Ogre::Vector3 & |
position | ) |
|
|
virtual |
Sets the background position.
- Parameters
-
[in] | position | Position vector. |
◆ SetRange()
void VGears::Background2DFile::SetRange |
( |
const Ogre::Vector4 & |
range | ) |
|
|
virtual |
Sets the background range.
- Parameters
-
- Todo:
- What is this range?
◆ SetTextureName()
void VGears::Background2DFile::SetTextureName |
( |
const String & |
texture_name | ) |
|
|
virtual |
Sets the texture name.
- Parameters
-
[in] | texture_name | The name of the texture. |
◆ unloadImpl()
void VGears::Background2DFile::unloadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ clip_
Ogre::Vector2 VGears::Background2DFile::clip_ |
|
private |
◆ fov_
Ogre::Radian VGears::Background2DFile::fov_ |
|
private |
The background field of view.
◆ orientation_
Ogre::Quaternion VGears::Background2DFile::orientation_ |
|
private |
The background orientation.
◆ position_
Ogre::Vector3 VGears::Background2DFile::position_ |
|
private |
◆ range_
Ogre::Vector4 VGears::Background2DFile::range_ |
|
private |
◆ RESOURCE_TYPE
const String VGears::Background2DFile::RESOURCE_TYPE |
|
static |
◆ texture_name_
String VGears::Background2DFile::texture_name_ |
|
private |
◆ tiles_
TileList VGears::Background2DFile::tiles_ |
|
private |
The documentation for this class was generated from the following files: