 |
Gorgon Game Engine
|
Go to the documentation of this file.
6 #include "../Graphics/Pointer.h"
7 #include "../Graphics/Drawables.h"
8 #include "../Graphics/Bitmap.h"
9 #include "../Graphics/Animations.h"
10 #include "../Graphics/TextureAnimation.h"
11 #include "../Utils/Assert.h"
12 #include "../Geometry/Point.h"
15 namespace Gorgon {
namespace Resource {
65 static Resource::Pointer*
LoadResource(std::weak_ptr< Gorgon::Resource::File > file, std::shared_ptr< Gorgon::Resource::Reader > reader,
long unsigned int size);
This class stores animations as a part of itself so that it can be moved around as a value rather tha...
Definition: Storage.h:21
constexpr Type File
File.
Definition: GID.h:84
constexpr Type Pointer
Definition: GID.h:196
void Prepare() override
This function shall prepare this resource to be used after resource is loaded.
Definition: Pointer.cpp:63
Definition: TextureAnimation.h:137
@ None
No pointer is selected or using default.
static Pointer * LoadLegacy(std::weak_ptr< File > file, std::shared_ptr< Reader > reader, unsigned long size)
This function loads a bitmap font resource from the given file.
Definition: Pointer.h:68
Graphics::PointerType type
Definition: Pointer.h:71
Pointer(const Pointer &)=delete
static Resource::Pointer * LoadResource(std::weak_ptr< Gorgon::Resource::File > file, std::shared_ptr< Gorgon::Resource::Reader > reader, long unsigned int size)
This function loads a bitmap font resource from the given file.
Definition: Pointer.cpp:6
Geometry::Point hotspot
Hotspot will be transferred to newly created pointers.
Definition: Pointer.h:269
Graphics::PointerType GetType() const
Returns the type of the pointer.
Definition: Pointer.h:49
PointerType
Pointer types.
Definition: Pointer.h:280
basic_PointerProvider< BitmapAnimationProvider > BitmapPointerProvider
Definition: Pointer.h:276
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
This class denotes the resource is an image animation storage.
Definition: AnimationStorage.h:12
virtual Graphics::RectangularAnimationStorage animmoveout() override
Definition: Pointer.cpp:69
Pointer & operator=(const Pointer &)=delete
Pointer resource that can be used to create a new pointer to be displayed.
Definition: Pointer.h:25
This object contains an bitmap image.
Definition: Bitmap.h:25
Graphics::BitmapPointerProvider MoveOut()
Moves the pointer provider out of resource system.
Definition: Pointer.cpp:47
void SetType(Graphics::PointerType value)
Sets the type of the pointer.
Definition: Pointer.h:54
This class stores information that allows an animated pointer to be created.
Definition: Pointer.h:218
GID::Type GetGID() const override
This function shall return Gorgon ID of this resource.
Definition: Pointer.h:46
This class represents a 2D point.
Definition: Point.h:32
This class allows resource objects to save their data to a stream.
Definition: Writer.h:59
@ Graphics
Definition: Template.h:164
Pointer(Graphics::BitmapAnimationProvider &&anim, Geometry::Point hotspot, Graphics::PointerType type)
Definition: Pointer.h:32
Pointer(Graphics::Bitmap &bmp, Geometry::Point hotspot, Graphics::PointerType type)
Definition: Pointer.h:27
Type to store GID information.
Definition: GID.h:23
virtual ~Pointer()
Definition: Pointer.h:75
Pointer(Graphics::PointerType type=Graphics::PointerType::None)
Definition: Pointer.h:37
void NotImplemented(const std::string &what="This feature")
Definition: Assert.h:187
void save(Writer &writer) const override
Definition: Pointer.cpp:51