 |
Gorgon Game Engine
|
Go to the documentation of this file.
3 #include "../Graphics.h"
5 #include "../Geometry/Point.h"
6 #include "../Geometry/Size.h"
7 #include "../Geometry/Rectangle.h"
32 Draw({x, y, size}, color);
37 Draw({location, w, h}, color);
41 virtual void Draw(
float x,
float y,
float w,
float h,
RGBAf color =
RGBAf(1.f)) {
42 Draw({x, y, w, h}, color);
47 Draw({float(x), float(y), float(w), float(h)}, color);
52 Draw({location, size}, color);
DrawMode
Definition: TextureTargets.h:14
basic_Point< T_ > TopLeft() const
Returns the top left coordinates of the rectangle.
Definition: Rectangle.h:198
virtual void Clear()=0
Clears drawing buffer, in layer architecture this request only affects the layer itself,...
Represents a four channel 32 bit float per channel color information.
Definition: Color.h:373
Tiling
Details which directions a texture should tile.
Definition: Graphics.h:31
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
This class represents a 2D geometric size.
Definition: Size.h:23
@ UseMask
Definition: TextureTargets.h:18
@ FrameBuffer
Definition: TextureTargets.h:16
virtual Geometry::Size GetTargetSize() const =0
Get size of the target.
@ Normal
Definition: TextureTargets.h:15
basic_Point< T_ > TopRight() const
Returns the top right coordinates of the rectangle.
Definition: Rectangle.h:203
basic_Size< Float > Sizef
Definition: Size.h:388
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.
@ Graphics
Definition: Template.h:164
This interface represents a GL texture source.
Definition: Graphics.h:480
basic_Point< T_ > BottomLeft() const
Returns the bottom left coordinates of the rectangle.
Definition: Rectangle.h:208
basic_Point< T_ > BottomRight() const
Returns the bottom right coordinates of the rectangle.
Definition: Rectangle.h:213
virtual void NewMask()=0
Should queue the start of a new mask. Only one mask buffer exists and it will be cleared and reused.
virtual DrawMode GetDrawMode() const =0
Returns current draw mode.
Represents a rectangle in a 2D space.
Definition: Rectangle.h:19
virtual Geometry::Size GetImageSize() const =0
Should return the size of the image stored in texture. Not the whole texture size.
virtual void SetDrawMode(DrawMode mode)=0
Sets current draw mode.
@ ToMask
Definition: TextureTargets.h:17