 |
Gorgon Game Engine
|
Go to the documentation of this file.
67 target.
Draw(p1, p2, p3, p4, color*c);
71 target.
Draw(p1, p2, p3, p4, color*c);
75 target.
Draw(r, color*c);
79 target.
Draw(r, color*c);
83 target.
Draw(r, color*c);
100 RGBAf color = {1.0f};
This class allows control over a sizable object.
Definition: Graphics.h:161
virtual void drawstretched(TextureTarget &target, const Geometry::Rectanglef &r, RGBAf c) const override
This function should draw the object to the target area.
Definition: BlankImage.h:74
Controllers are required to progress animations.
Definition: Animation.h:65
virtual Geometry::Size calculatesize(const SizeController &controller, const Geometry::Size &s) const override
This function should return the size of the object when it is requested to be drawn in the given area...
Definition: BlankImage.h:94
Represents a four channel 32 bit float per channel color information.
Definition: Color.h:373
int GetDuration() const override
Returns the duration of the animation if it is a known apriori.
Definition: BlankImage.h:37
virtual bool Progress(unsigned &) override
This function should progress the animation.
Definition: BlankImage.h:33
void SetColor(RGBAf value)
Sets the color of this blank image.
Definition: BlankImage.h:52
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
This class represents a 2D geometric size.
Definition: Size.h:23
RGBAf GetColor() const
Returns the color of this blank image.
Definition: BlankImage.h:47
Rectangular drawable animation.
Definition: Animations.h:19
Geometry::Size GetSize() const override
Definition: BlankImage.h:61
virtual Geometry::Size getsize() const override
Should return the exact size of this object.
Definition: BlankImage.h:86
virtual BlankImage & CreateAnimation(Gorgon::Animation::ControllerBase &) const override
This function should create a new animation with the given controller and if owner parameter is set t...
Definition: BlankImage.h:25
virtual BlankImage & MoveOutProvider() override
This function moves this animation provider into a new provider.
Definition: BlankImage.h:21
BlankImage(RGBAf color=1.f)
Definition: BlankImage.h:19
virtual void DeleteAnimation() const override
Deletes this animation.
Definition: BlankImage.h:41
BlankImage(Geometry::Size size, RGBAf color=1.f)
Definition: BlankImage.h:15
This interface defines a class that can be used as a common target for texture based drawing.
Definition: TextureTargets.h:12
This class represents a 2D point.
Definition: Point.h:32
virtual void Draw(const TextureSource &image, const Geometry::Pointf &p1, const Geometry::Pointf &p2, const Geometry::Pointf &p3, const Geometry::Pointf &p4, RGBAf color=RGBAf(1.f))=0
Draws a simple texture to the screen.
virtual void SetController(Gorgon::Animation::ControllerBase &) override
Sets the controller to the given controller.
Definition: BlankImage.h:44
void SetSize(Geometry::Size value)
Sets the size of this blank image.
Definition: BlankImage.h:57
BlankImage(int w, int h, RGBAf color=1.f)
Definition: BlankImage.h:17
virtual void draw(TextureTarget &target, const Geometry::Pointf &p1, const Geometry::Pointf &p2, const Geometry::Pointf &p3, const Geometry::Pointf &p4, const Geometry::Pointf &, const Geometry::Pointf &, const Geometry::Pointf &, const Geometry::Pointf &, RGBAf c) const override
This method should draw to object inside the given quad with the given texture coordinates.
Definition: BlankImage.h:66
This class provides rectangular animations.
Definition: Animations.h:48
@ Graphics
Definition: Template.h:164
virtual void drawin(TextureTarget &target, const SizeController &controller, const Geometry::Rectanglef &r, RGBAf c) const override
This function should draw this drawable inside the given rectangle according to the given controller.
Definition: BlankImage.h:82
virtual void draw(TextureTarget &target, const Geometry::Pointf &p1, const Geometry::Pointf &p2, const Geometry::Pointf &p3, const Geometry::Pointf &p4, RGBAf c) const override
This function should draw the object inside the given quad.
Definition: BlankImage.h:70
Pure color blank image, default size is 0x0, but can be drawn with any size.
Definition: BlankImage.h:13
Represents a rectangle in a 2D space.
Definition: Rectangle.h:19
ControllerBase * controller
Controller of this animation.
Definition: Animation.h:388
virtual void drawin(TextureTarget &target, const Geometry::Rectanglef &r, RGBAf c) const override
This function should draw the object to the target area.
Definition: BlankImage.h:78
virtual BlankImage & CreateAnimation(bool=true) const override
This function should create and animation and depending on the create parameter, it should create its...
Definition: BlankImage.h:29
virtual Geometry::Size calculatesize(const Geometry::Size &area) const override
This function should return the size of the object when it is requested to be drawn in the given area...
Definition: BlankImage.h:90