Gorgon Game Engine
RectangularDrawable Class Referenceabstract
Inheritance diagram for RectangularDrawable:
[legend]

Public Member Functions

const Geometry::Size CalculateSize (const Geometry::Size &area) const
 Calculates the adjusted size of this drawable depending on the given area. More...
 
const Geometry::Size CalculateSize (const SizeController &controller, const Geometry::Size &area) const
 Calculates the adjusted size of this drawable depending on the given area and controller. More...
 
const Geometry::Size CalculateSize (const SizeController &controller, int w=-1, int h=-1) const
 Calculates the adjusted size of this drawable depending on the given area and controller. More...
 
const Geometry::Size CalculateSize (int w=-1, int h=-1) const
 Calculates the adjusted size of this drawable depending on the given area. More...
 
void Draw (TextureTarget &target, const Geometry::Point &p, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p, const Geometry::Sizef &size, const Geometry::Pointf &t1, const Geometry::Pointf &t2, const Geometry::Pointf &t3, const Geometry::Pointf &t4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p, const Geometry::Sizef &size, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p, float w, float h, const Geometry::Pointf &t1, const Geometry::Pointf &t2, const Geometry::Pointf &t3, const Geometry::Pointf &t4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p, float w, float h, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p1, const Geometry::Pointf &p2, const Geometry::Pointf &p3, const Geometry::Pointf &p4, const Geometry::Pointf &t1, const Geometry::Pointf &t2, const Geometry::Pointf &t3, const Geometry::Pointf &t4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p1, const Geometry::Pointf &p2, const Geometry::Pointf &p3, const Geometry::Pointf &p4, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p1, const Geometry::Pointf &p2, const Geometry::Pointf &p3, const Geometry::Pointf &p4, RGBAf color=RGBAf(1.f)) const
 Draw the object to the target by specifying coordinates for four corners. More...
 
void Draw (TextureTarget &target, float x, float y, const Geometry::Sizef &size, const Geometry::Pointf &t1, const Geometry::Pointf &t2, const Geometry::Pointf &t3, const Geometry::Pointf &t4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, float x, float y, const Geometry::Sizef &size, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, float x, float y, float w, float h, const Geometry::Pointf &t1, const Geometry::Pointf &t2, const Geometry::Pointf &t3, const Geometry::Pointf &t4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, float x, float y, float w, float h, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, float x, float y, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, const Geometry::Pointf &t1, const Geometry::Pointf &t2, const Geometry::Pointf &t3, const Geometry::Pointf &t4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4, RGBAf color=RGBAf(1.f)) const
 Draws the object with the given screen and texture coordinates. More...
 
void Draw (TextureTarget &target, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, RGBAf color=RGBAf(1.f)) const
 Draw the object to the target by specifying coordinates for four corners. More...
 
void Draw (TextureTarget &target, int x, int y, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void DrawIn (TextureTarget &target, const Geometry::Point &p, const Geometry::Size &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area. More...
 
void DrawIn (TextureTarget &target, const Geometry::Point &p, int w, int h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area. More...
 
void DrawIn (TextureTarget &target, const Geometry::Pointf &p, const Geometry::Sizef &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area. More...
 
void DrawIn (TextureTarget &target, const Geometry::Pointf &p, float w, float h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area. More...
 
void DrawIn (TextureTarget &target, const Geometry::Rectangle &r, RGBAf color=RGBAf(1.f)) const
 Draw in the given area. More...
 
void DrawIn (TextureTarget &target, const Geometry::Rectanglef &r, RGBAf color=RGBAf(1.f)) const
 Draw in the given area. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, const Geometry::Point &p, const Geometry::Size &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area with the given size according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, const Geometry::Point &p, int w, int h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, const Geometry::Pointf &p, const Geometry::Sizef &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area with the given size according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, const Geometry::Pointf &p, float w, float h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, const Geometry::Rectangle &r, RGBAf color=RGBAf(1.f)) const
 Draw in the given area according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, const Geometry::Rectanglef &r, RGBAf color=RGBAf(1.f)) const
 Draw in the given area according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, float x, float y, const Geometry::Sizef &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area the given size according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, float x, float y, float w, float h, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates with the given size according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, int x, int y, const Geometry::Size &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area the given size according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, int x, int y, int w, int h, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates with the given size according to the given controller. More...
 
void DrawIn (TextureTarget &target, const SizeController &controller, RGBAf color=RGBAf(1.f)) const
 Draw to fill the given target according to the given controller. More...
 
void DrawIn (TextureTarget &target, float x, float y, const Geometry::Sizef &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area. More...
 
void DrawIn (TextureTarget &target, float x, float y, float w, float h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area. More...
 
void DrawIn (TextureTarget &target, int x, int y, const Geometry::Size &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area. More...
 
void DrawIn (TextureTarget &target, int x, int y, int w, int h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area. More...
 
void DrawIn (TextureTarget &target, RGBAf color=RGBAf(1.f)) const
 Draw to fill the given target. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, const Geometry::Point &p, const Geometry::Size &size, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, const Geometry::Point &p, int w, int h, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, const Geometry::Pointf &p, const Geometry::Sizef &size, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, const Geometry::Pointf &p, float w, float h, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, const Geometry::Rectangle &r, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, const Geometry::Rectanglef &r, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, float x, float y, const Geometry::Sizef &size, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, float x, float y, float w, float h, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, int x, int y, const Geometry::Size &size, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawIn (TextureTarget &target, Tiling tiling, int x, int y, int w, int h, RGBAf color=RGBAf(1.f)) const
 Draws the object to the target using the given tiling information. More...
 
void DrawRotated (TextureTarget &target, const Geometry::Point &p, float angle, const Geometry::Pointf &origin=Geometry::Point(0, 0), RGBAf color=RGBAf(1.f)) const
 Draw the object rotated to the given angle in radians, full C++11 support will enable the use of 90deg like qualifiers. More...
 
void DrawRotated (TextureTarget &target, const Geometry::Point &p, float angle, RGBAf color) const
 Draw the object rotated to the given angle in radians, full C++11 support will enable the use of 90deg like qualifiers. More...
 
void DrawRotated (TextureTarget &target, int x, int y, float angle, float oX, float oY, RGBAf color=RGBAf(1.f)) const
 Draw the object rotated to the given angle in radians, full C++11 support will enable the use of 90deg like qualifiers. More...
 
void DrawStretched (TextureTarget &target, const Geometry::Point &p, const Geometry::Size &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
void DrawStretched (TextureTarget &target, const Geometry::Point &p, int w, int h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
void DrawStretched (TextureTarget &target, const Geometry::Pointf &p, const Geometry::Sizef &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
void DrawStretched (TextureTarget &target, const Geometry::Pointf &p, float w, float h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
void DrawStretched (TextureTarget &target, const Geometry::Rectangle &r, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
void DrawStretched (TextureTarget &target, const Geometry::Rectanglef &r, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
void DrawStretched (TextureTarget &target, float x, float y, const Geometry::Sizef &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
void DrawStretched (TextureTarget &target, float x, float y, float w, float h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
void DrawStretched (TextureTarget &target, int x, int y, const Geometry::Size &size, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
void DrawStretched (TextureTarget &target, int x, int y, int w, int h, RGBAf color=RGBAf(1.f)) const
 Draw to the given area by stretching object to fit. More...
 
int GetHeight () const
 Returns the height of the drawable. More...
 
const Geometry::Size GetSize () const
 Returns the size of this object. More...
 
int GetWidth () const
 Returns the width of the drawable. More...
 
- Public Member Functions inherited from Drawable
virtual ~Drawable ()
 
void Draw (TextureTarget &target, const Geometry::Point &p, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, float x, float y, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, int x, int y, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 

Protected Member Functions

virtual Geometry::Size calculatesize (const Geometry::Size &area) const =0
 This function should return the size of the object when it is requested to be drawn in the given area. More...
 
virtual Geometry::Size calculatesize (const SizeController &controller, const Geometry::Size &s) const =0
 This function should return the size of the object when it is requested to be drawn in the given area. More...
 
virtual void draw (TextureTarget &target, const Geometry::Pointf &p, RGBAf color) const override
 This function should draw the object to the given point. More...
 
virtual void draw (TextureTarget &target, const Geometry::Pointf &p1, const Geometry::Pointf &p2, const Geometry::Pointf &p3, const Geometry::Pointf &p4, const Geometry::Pointf &tex1, const Geometry::Pointf &tex2, const Geometry::Pointf &tex3, const Geometry::Pointf &tex4, RGBAf color) const =0
 This method should draw to object inside the given quad with the given texture coordinates. More...
 
virtual void draw (TextureTarget &target, const Geometry::Pointf &p1, const Geometry::Pointf &p2, const Geometry::Pointf &p3, const Geometry::Pointf &p4, RGBAf color) const =0
 This function should draw the object inside the given quad. More...
 
virtual void drawin (TextureTarget &target, const Geometry::Rectanglef &r, RGBAf color) const
 This function should draw the object to the target area. More...
 
virtual void drawin (TextureTarget &target, const SizeController &controller, const Geometry::Rectanglef &r, RGBAf color) const =0
 This function should draw this drawable inside the given rectangle according to the given controller. More...
 
virtual void drawstretched (TextureTarget &target, const Geometry::Rectanglef &r, RGBAf color) const
 This function should draw the object to the target area. More...
 
virtual Geometry::Size getsize () const =0
 Should return the exact size of this object. More...
 

Member Function Documentation

◆ CalculateSize() [1/4]

const Geometry::Size CalculateSize ( const Geometry::Size &  area) const

Calculates the adjusted size of this drawable depending on the given area.

This function calculates actual the size of the drawable when it is drawn in an area that has the given size. When a size parameter is set to -1, the object returns its native size. Native size might not be available for some objects however, they will try to return a logical value.

References RectangularDrawable::calculatesize().

◆ calculatesize() [1/2]

virtual Geometry::Size calculatesize ( const Geometry::Size &  area) const
protectedpure virtual

This function should return the size of the object when it is requested to be drawn in the given area.

If size contains is a negative value, this function should try to return native size of the object. If no such size exists, a logical size should be returned.

Implemented in Image, EmptyImage, basic_TintedObject< A_ >, basic_StackedObject< A_ >, basic_ScalableObject< A_ >, Rectangle, basic_MaskedObject< A_ >, Line, BlankImage, and basic_InstanceInjection< Graphics::RectangularAnimation >.

◆ CalculateSize() [2/4]

const Geometry::Size CalculateSize ( const SizeController &  controller,
const Geometry::Size &  area 
) const

Calculates the adjusted size of this drawable depending on the given area and controller.

This function calculates actual the size of the drawable when it is drawn in an area that has the given size. When a size parameter is set to -1, the object returns its native size. Native size might not be available for some objects however, they will try to return a logical value.

References RectangularDrawable::calculatesize().

◆ calculatesize() [2/2]

virtual Geometry::Size calculatesize ( const SizeController &  controller,
const Geometry::Size &  s 
) const
protectedpure virtual

This function should return the size of the object when it is requested to be drawn in the given area.

This variant should use the given size controller. If the object already has a controller, given controller should be given priority. If h parameter is a negative value, this function should try to return native size of the object. If no such size exists, a logical size should be returned.

Implemented in EmptyImage, basic_TintedObject< A_ >, basic_StackedObject< A_ >, basic_ScalableObject< A_ >, Rectangle, basic_MaskedObject< A_ >, Line, Image, BlankImage, and basic_InstanceInjection< Graphics::RectangularAnimation >.

◆ CalculateSize() [3/4]

const Geometry::Size CalculateSize ( const SizeController &  controller,
int  w = -1,
int  h = -1 
) const

Calculates the adjusted size of this drawable depending on the given area and controller.

This function calculates actual the size of the drawable when it is drawn in an area that has the given size. When a size parameter is set to -1, the object returns its native size. Native size might not be available for some objects however, they will try to return a logical value.

References RectangularDrawable::calculatesize().

◆ CalculateSize() [4/4]

const Geometry::Size CalculateSize ( int  w = -1,
int  h = -1 
) const

Calculates the adjusted size of this drawable depending on the given area.

This function calculates actual the size of the drawable when it is drawn in an area that has the given size. When a size parameter is set to -1, the object returns its native size. Native size might not be available for some objects however, they will try to return a logical value.

References RectangularDrawable::calculatesize().

◆ Draw() [1/18]

void Draw

Draw to the given coordinates.

References Drawable::draw(), basic_Point< T_ >::X, and basic_Point< T_ >::Y.

◆ Draw() [2/18]

void Draw ( TextureTarget &  target,
const Geometry::Pointf &  p,
const Geometry::Sizef &  size,
const Geometry::Pointf &  t1,
const Geometry::Pointf &  t2,
const Geometry::Pointf &  t3,
const Geometry::Pointf &  t4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::Draw(), basic_Size< T_ >::Height, basic_Size< T_ >::Width, basic_Point< T_ >::X, and basic_Point< T_ >::Y.

◆ Draw() [3/18]

void Draw ( TextureTarget &  target,
const Geometry::Pointf &  p,
const Geometry::Sizef &  size,
float  u1,
float  v1,
float  u2,
float  v2,
float  u3,
float  v3,
float  u4,
float  v4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::Draw(), basic_Size< T_ >::Height, basic_Size< T_ >::Width, basic_Point< T_ >::X, and basic_Point< T_ >::Y.

◆ Draw() [4/18]

void Draw ( TextureTarget &  target,
const Geometry::Pointf &  p,
float  w,
float  h,
const Geometry::Pointf &  t1,
const Geometry::Pointf &  t2,
const Geometry::Pointf &  t3,
const Geometry::Pointf &  t4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::Draw(), basic_Point< T_ >::X, and basic_Point< T_ >::Y.

◆ Draw() [5/18]

void Draw ( TextureTarget &  target,
const Geometry::Pointf &  p,
float  w,
float  h,
float  u1,
float  v1,
float  u2,
float  v2,
float  u3,
float  v3,
float  u4,
float  v4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::Draw(), basic_Point< T_ >::X, and basic_Point< T_ >::Y.

◆ draw() [1/3]

virtual void draw ( TextureTarget &  target,
const Geometry::Pointf &  p,
RGBAf  color 
) const
overrideprotectedvirtual

◆ Draw() [6/18]

void Draw

Draw to the given coordinates.

References Drawable::draw().

◆ Draw() [7/18]

void Draw ( TextureTarget &  target,
const Geometry::Pointf &  p1,
const Geometry::Pointf &  p2,
const Geometry::Pointf &  p3,
const Geometry::Pointf &  p4,
const Geometry::Pointf &  t1,
const Geometry::Pointf &  t2,
const Geometry::Pointf &  t3,
const Geometry::Pointf &  t4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::draw().

◆ draw() [2/3]

virtual void draw ( TextureTarget &  target,
const Geometry::Pointf &  p1,
const Geometry::Pointf &  p2,
const Geometry::Pointf &  p3,
const Geometry::Pointf &  p4,
const Geometry::Pointf &  tex1,
const Geometry::Pointf &  tex2,
const Geometry::Pointf &  tex3,
const Geometry::Pointf &  tex4,
RGBAf  color 
) const
protectedpure virtual

This method should draw to object inside the given quad with the given texture coordinates.

The texture should be considered repeating and any values outside 0-1 range should be treated as such

Implemented in EmptyImage, basic_TintedObject< A_ >, basic_StackedObject< A_ >, basic_ScalableObject< A_ >, Rectangle, basic_MaskedObject< A_ >, Line, Image, BlankImage, and basic_InstanceInjection< Graphics::RectangularAnimation >.

◆ Draw() [8/18]

void Draw ( TextureTarget &  target,
const Geometry::Pointf &  p1,
const Geometry::Pointf &  p2,
const Geometry::Pointf &  p3,
const Geometry::Pointf &  p4,
float  u1,
float  v1,
float  u2,
float  v2,
float  u3,
float  v3,
float  u4,
float  v4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::draw().

◆ draw() [3/3]

virtual void draw ( TextureTarget &  target,
const Geometry::Pointf &  p1,
const Geometry::Pointf &  p2,
const Geometry::Pointf &  p3,
const Geometry::Pointf &  p4,
RGBAf  color 
) const
protectedpure virtual

This function should draw the object inside the given quad.

The object should be stretched as necessary

Implemented in EmptyImage, basic_TintedObject< A_ >, basic_StackedObject< A_ >, basic_ScalableObject< A_ >, Rectangle, basic_MaskedObject< A_ >, Line, Image, BlankImage, and basic_InstanceInjection< Graphics::RectangularAnimation >.

◆ Draw() [9/18]

void Draw ( TextureTarget &  target,
const Geometry::Pointf &  p1,
const Geometry::Pointf &  p2,
const Geometry::Pointf &  p3,
const Geometry::Pointf &  p4,
RGBAf  color = RGBAf(1.f) 
) const

Draw the object to the target by specifying coordinates for four corners.

References RectangularDrawable::draw().

◆ Draw() [10/18]

void Draw ( TextureTarget &  target,
float  x,
float  y,
const Geometry::Sizef &  size,
const Geometry::Pointf &  t1,
const Geometry::Pointf &  t2,
const Geometry::Pointf &  t3,
const Geometry::Pointf &  t4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated

References RectangularDrawable::Draw(), basic_Size< T_ >::Height, and basic_Size< T_ >::Width.

◆ Draw() [11/18]

void Draw ( TextureTarget &  target,
float  x,
float  y,
const Geometry::Sizef &  size,
float  u1,
float  v1,
float  u2,
float  v2,
float  u3,
float  v3,
float  u4,
float  v4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::Draw(), basic_Size< T_ >::Height, and basic_Size< T_ >::Width.

◆ Draw() [12/18]

void Draw ( TextureTarget &  target,
float  x,
float  y,
float  w,
float  h,
const Geometry::Pointf &  t1,
const Geometry::Pointf &  t2,
const Geometry::Pointf &  t3,
const Geometry::Pointf &  t4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::draw().

◆ Draw() [13/18]

void Draw ( TextureTarget &  target,
float  x,
float  y,
float  w,
float  h,
float  u1,
float  v1,
float  u2,
float  v2,
float  u3,
float  v3,
float  u4,
float  v4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::draw().

◆ Draw() [14/18]

void Draw

Draw to the given coordinates.

References Drawable::draw().

◆ Draw() [15/18]

void Draw ( TextureTarget &  target,
float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
float  x4,
float  y4,
const Geometry::Pointf &  t1,
const Geometry::Pointf &  t2,
const Geometry::Pointf &  t3,
const Geometry::Pointf &  t4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::draw().

◆ Draw() [16/18]

void Draw ( TextureTarget &  target,
float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
float  x4,
float  y4,
float  u1,
float  v1,
float  u2,
float  v2,
float  u3,
float  v3,
float  u4,
float  v4,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object with the given screen and texture coordinates.

Texture coordinates are given between 0 and 1. If the coordinates are out of bounds the texture is repeated. This function is not guaranteed to be implemented and can be directed the draw call where texture coordinates are not specified. This function can be removed in the future.

References RectangularDrawable::draw().

◆ Draw() [17/18]

void Draw ( TextureTarget &  target,
float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
float  x4,
float  y4,
RGBAf  color = RGBAf(1.f) 
) const

Draw the object to the target by specifying coordinates for four corners.

References RectangularDrawable::draw().

◆ Draw() [18/18]

void Draw

Draw to the given coordinates.

References Drawable::draw().

◆ DrawIn() [1/32]

void DrawIn ( TextureTarget &  target,
const Geometry::Point &  p,
const Geometry::Size &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area.

References RectangularDrawable::drawin().

◆ DrawIn() [2/32]

void DrawIn ( TextureTarget &  target,
const Geometry::Point &  p,
int  w,
int  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area.

References RectangularDrawable::drawin().

◆ DrawIn() [3/32]

void DrawIn ( TextureTarget &  target,
const Geometry::Pointf &  p,
const Geometry::Sizef &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area.

References RectangularDrawable::drawin().

◆ DrawIn() [4/32]

void DrawIn ( TextureTarget &  target,
const Geometry::Pointf &  p,
float  w,
float  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area.

References RectangularDrawable::drawin().

◆ DrawIn() [5/32]

void DrawIn ( TextureTarget &  target,
const Geometry::Rectangle &  r,
RGBAf  color = RGBAf(1.f) 
) const

Draw in the given area.

References RectangularDrawable::drawin().

◆ drawin() [1/2]

virtual void drawin ( TextureTarget &  target,
const Geometry::Rectanglef &  r,
RGBAf  color 
) const
protectedvirtual

This function should draw the object to the target area.

The object should be tiled or cut to fit the given area It might be logical to override this as it is possible to avoid additional function calls and if statements

Reimplemented in basic_TintedObject< A_ >, basic_StackedObject< A_ >, basic_ScalableObject< A_ >, Rectangle, basic_MaskedObject< A_ >, Line, Image, BlankImage, and basic_InstanceInjection< Graphics::RectangularAnimation >.

References Gorgon::Graphics::None.

◆ DrawIn() [6/32]

void DrawIn ( TextureTarget &  target,
const Geometry::Rectanglef &  r,
RGBAf  color = RGBAf(1.f) 
) const

Draw in the given area.

References RectangularDrawable::drawin().

◆ DrawIn() [7/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
const Geometry::Point &  p,
const Geometry::Size &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area with the given size according to the given controller.

References RectangularDrawable::drawin().

◆ DrawIn() [8/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
const Geometry::Point &  p,
int  w,
int  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area according to the given controller.

References RectangularDrawable::drawin().

◆ DrawIn() [9/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
const Geometry::Pointf &  p,
const Geometry::Sizef &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area with the given size according to the given controller.

References RectangularDrawable::drawin().

◆ DrawIn() [10/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
const Geometry::Pointf &  p,
float  w,
float  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area according to the given controller.

References RectangularDrawable::drawin().

◆ DrawIn() [11/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
const Geometry::Rectangle &  r,
RGBAf  color = RGBAf(1.f) 
) const

Draw in the given area according to the given controller.

References RectangularDrawable::drawin().

◆ drawin() [2/2]

virtual void drawin ( TextureTarget &  target,
const SizeController &  controller,
const Geometry::Rectanglef &  r,
RGBAf  color 
) const
protectedpure virtual

This function should draw this drawable inside the given rectangle according to the given controller.

If this object already have a size controller, this given controller should be given priority.

Implemented in EmptyImage, basic_TintedObject< A_ >, basic_StackedObject< A_ >, basic_ScalableObject< A_ >, Rectangle, basic_MaskedObject< A_ >, Line, Image, BlankImage, and basic_InstanceInjection< Graphics::RectangularAnimation >.

◆ DrawIn() [12/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
const Geometry::Rectanglef &  r,
RGBAf  color = RGBAf(1.f) 
) const

Draw in the given area according to the given controller.

References RectangularDrawable::drawin().

◆ DrawIn() [13/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
float  x,
float  y,
const Geometry::Sizef &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area the given size according to the given controller.

References RectangularDrawable::drawin().

◆ DrawIn() [14/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
float  x,
float  y,
float  w,
float  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given coordinates with the given size according to the given controller.

References RectangularDrawable::drawin().

◆ DrawIn() [15/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
int  x,
int  y,
const Geometry::Size &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area the given size according to the given controller.

References RectangularDrawable::drawin().

◆ DrawIn() [16/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
int  x,
int  y,
int  w,
int  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given coordinates with the given size according to the given controller.

References RectangularDrawable::drawin().

◆ DrawIn() [17/32]

void DrawIn ( TextureTarget &  target,
const SizeController &  controller,
RGBAf  color = RGBAf(1.f) 
) const

Draw to fill the given target according to the given controller.

References RectangularDrawable::drawin(), and TextureTarget::GetTargetSize().

◆ DrawIn() [18/32]

void DrawIn ( TextureTarget &  target,
float  x,
float  y,
const Geometry::Sizef &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area.

References RectangularDrawable::drawin().

◆ DrawIn() [19/32]

void DrawIn ( TextureTarget &  target,
float  x,
float  y,
float  w,
float  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area.

References RectangularDrawable::drawin().

◆ DrawIn() [20/32]

void DrawIn ( TextureTarget &  target,
int  x,
int  y,
const Geometry::Size &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area.

References RectangularDrawable::drawin().

◆ DrawIn() [21/32]

void DrawIn ( TextureTarget &  target,
int  x,
int  y,
int  w,
int  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area.

References RectangularDrawable::drawin().

◆ DrawIn() [22/32]

void DrawIn ( TextureTarget &  target,
RGBAf  color = RGBAf(1.f) 
) const

Draw to fill the given target.

References RectangularDrawable::drawin(), and TextureTarget::GetTargetSize().

◆ DrawIn() [23/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
const Geometry::Point &  p,
const Geometry::Size &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawIn() [24/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
const Geometry::Point &  p,
int  w,
int  h,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawIn() [25/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
const Geometry::Pointf &  p,
const Geometry::Sizef &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawIn() [26/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
const Geometry::Pointf &  p,
float  w,
float  h,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawIn() [27/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
const Geometry::Rectangle &  r,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawIn() [28/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
const Geometry::Rectanglef &  r,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawIn() [29/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
float  x,
float  y,
const Geometry::Sizef &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawIn() [30/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
float  x,
float  y,
float  w,
float  h,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawIn() [31/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
int  x,
int  y,
const Geometry::Size &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawIn() [32/32]

void DrawIn ( TextureTarget &  target,
Tiling  tiling,
int  x,
int  y,
int  w,
int  h,
RGBAf  color = RGBAf(1.f) 
) const

Draws the object to the target using the given tiling information.

References RectangularDrawable::drawin().

◆ DrawRotated() [1/3]

void DrawRotated ( TextureTarget &  target,
const Geometry::Point &  p,
float  angle,
const Geometry::Pointf &  origin = Geometry::Point(0, 0),
RGBAf  color = RGBAf(1.f) 
) const

Draw the object rotated to the given angle in radians, full C++11 support will enable the use of 90deg like qualifiers.

◆ DrawRotated() [2/3]

void DrawRotated ( TextureTarget &  target,
const Geometry::Point &  p,
float  angle,
RGBAf  color 
) const

Draw the object rotated to the given angle in radians, full C++11 support will enable the use of 90deg like qualifiers.

References RectangularDrawable::DrawRotated().

◆ DrawRotated() [3/3]

void DrawRotated ( TextureTarget &  target,
int  x,
int  y,
float  angle,
float  oX,
float  oY,
RGBAf  color = RGBAf(1.f) 
) const

Draw the object rotated to the given angle in radians, full C++11 support will enable the use of 90deg like qualifiers.

References RectangularDrawable::DrawRotated().

◆ DrawStretched() [1/10]

void DrawStretched ( TextureTarget &  target,
const Geometry::Point &  p,
const Geometry::Size &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ DrawStretched() [2/10]

void DrawStretched ( TextureTarget &  target,
const Geometry::Point &  p,
int  w,
int  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ DrawStretched() [3/10]

void DrawStretched ( TextureTarget &  target,
const Geometry::Pointf &  p,
const Geometry::Sizef &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ DrawStretched() [4/10]

void DrawStretched ( TextureTarget &  target,
const Geometry::Pointf &  p,
float  w,
float  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ DrawStretched() [5/10]

void DrawStretched ( TextureTarget &  target,
const Geometry::Rectangle &  r,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ drawstretched()

virtual void drawstretched ( TextureTarget &  target,
const Geometry::Rectanglef &  r,
RGBAf  color 
) const
protectedvirtual

This function should draw the object to the target area.

The object should be stretched along both dimensions to fit into the given area. It might be logical to override this as it is possible to avoid additional function calls and if statements

Reimplemented in Image, BlankImage, and basic_InstanceInjection< Graphics::RectangularAnimation >.

References RectangularDrawable::drawin(), and Gorgon::Graphics::None.

◆ DrawStretched() [6/10]

void DrawStretched ( TextureTarget &  target,
const Geometry::Rectanglef &  r,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ DrawStretched() [7/10]

void DrawStretched ( TextureTarget &  target,
float  x,
float  y,
const Geometry::Sizef &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ DrawStretched() [8/10]

void DrawStretched ( TextureTarget &  target,
float  x,
float  y,
float  w,
float  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ DrawStretched() [9/10]

void DrawStretched ( TextureTarget &  target,
int  x,
int  y,
const Geometry::Size &  size,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ DrawStretched() [10/10]

void DrawStretched ( TextureTarget &  target,
int  x,
int  y,
int  w,
int  h,
RGBAf  color = RGBAf(1.f) 
) const

Draw to the given area by stretching object to fit.

References RectangularDrawable::drawstretched().

◆ GetHeight()

int GetHeight ( ) const

Returns the height of the drawable.

References RectangularDrawable::getsize(), and basic_Size< T_ >::Height.

◆ GetSize()

const Geometry::Size GetSize ( ) const

Returns the size of this object.

References RectangularDrawable::getsize().

◆ getsize()

◆ GetWidth()

int GetWidth ( ) const

Returns the width of the drawable.

References RectangularDrawable::getsize(), and basic_Size< T_ >::Width.


The documentation for this class was generated from the following file: