OSDL::Video::TwoDimensional Namespace Reference

Namespaces

namespace  Line
 

This namespace gathers all line-oriented graphics output.


namespace  Text

Classes

class  BackBufferedWidget
 A BackBufferedWidget is a Widget, hence a Surface, which contains only its own rendering (the one of its subwidgets is not on it) and which owns another Surface, which contains this widget rendered alongside the full tree of its subwidgets, which acts as a cache. More...
class  FontException
 Mother class for all font exceptions. More...
class  UprightRectangleGL
 This classes defines a rectangle whose sides are parallel or orthogonal to the screen's sides, according to OpenGL conventions. More...
class  ImageException
 Mother class for all image exceptions. More...
class  Image
 Provides an encapsulation for any picture instance that can be loaded as resource. More...
struct  __attribute__
 Describes a BMP header. More...
class  MouseCursorException
 Exception raised whenever a mouse cursor operation failed. More...
class  MouseCursor
 Encapsulates a mouse cursor. More...
class  Point
 Represents an abstract point whose coordinates are integers. More...
class  Point2D
 Represents a point whose coordinates are integers, in a two-dimensional space. More...
class  Point3D
 Represents a point whose coordinates are integers, in a three-dimensional space. More...
class  Polygon
 Polygons are defined as line segments passing through a suite of 2D points and enclosing a surface, since the last vector points towards the first. More...
class  PolygonSet
 Polygon sets are collections of polygons defined in the same referential. More...
class  TextWidget
 Text widgets are back-buffered widget which display full texts, i.e. More...
class  UprightRectangle
 This classes defines a rectangle whose sides are parallel or orthogonal to the screen's sides. More...
class  RedrawRequestEvent
 Event sent by a Surface to a widget it contains so that the widget redraws itself. More...
class  Widget
 Widgets are graphical components that are drawn in their parent container, which is a surface. More...

Typedefs

typedef Ceylan::CountedPointer
< Image
ImageCountedPtr
 Image counted pointer.
typedef std::list< Point2D * > listPoint2D
 Definition so that readability increases.
typedef ::SDL_Rect LowLevelRect

Functions

OSDL_DLL bool drawBezierCurve (Surface &targetSurface, const listPoint2D &controlPoints, Ceylan::Uint16 numberOfSteps, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque)
 Draws a Bezier curve through specified control points, with specified number of steps, with specified RGBA color, on specified surface.
OSDL_DLL bool drawBezierCurve (Surface &targetSurface, const listPoint2D &controlPoints, Ceylan::Uint16 numberOfSteps, Pixels::ColorDefinition colorDef)
 Draws a Bezier curve through specified control points, with specified number of steps, with specified color definition, on specified surface.
OSDL_DLL bool drawCircle (Surface &targetSurface, Coordinate xCenter, Coordinate yCenter, Length radius, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque, bool filled=true, bool blended=true)
 Conics section includes support for:

  • circle
  • ellipse.

OSDL_DLL bool drawCircle (Surface &targetSurface, Coordinate xCenter, Coordinate yCenter, Length radius, Pixels::ColorDefinition colorDef, bool filled=true, bool blended=true)
 Draws a circle whose center is (xCenter,yCenter) of specified radius, with specified color definition, on specified surface.
OSDL_DLL bool drawDiscWithEdge (Surface &targetSurface, Coordinate xCenter, Coordinate yCenter, Length outerRadius, Length innerRadius, Pixels::ColorDefinition ringColorDef=Pixels::Blue, Pixels::ColorDefinition discColorDef=Pixels::White, bool blended=true)
 Draws a disc whose center is (xCenter,yCenter), of specified radius (totalRadius), filled with specified color discColorDef, with a ring in it, on its border, i.e.
OSDL_DLL bool drawEllipse (Surface &targetSurface, Coordinate xCenter, Coordinate yCenter, Length horizontalRadius, Length verticalRadius, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque, bool filled=true)
 Draws an ellipse whose center is (xCenter,yCenter), with specified horizontal and vertical radius, with specified RGBA color, on specified surface.
OSDL_DLL bool drawEllipse (Surface &targetSurface, Coordinate xCenter, Coordinate yCenter, Length horizontalRadius, Length verticalRadius, Pixels::ColorDefinition colorDef, bool filled=true)
 Draws an ellipse whose center is (xCenter,yCenter), with specified horizontal and vertical radius, with specified color definition, on specified surface.
OSDL_DLL bool drawPie (Surface &targetSurface, Coordinate xCenter, Coordinate yCenter, Length radius, Ceylan::Maths::AngleInDegrees angleStart, Ceylan::Maths::AngleInDegrees angleStop, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque)
 Some polygone-based shapes:

  • polygon-approximation of a pie
  • triangle
  • Polygon: true locatable polygon class
  • PolygonSet: set of polygons defined in a same shared referential.

OSDL_DLL bool drawPie (Surface &targetSurface, Coordinate xCenter, Coordinate yCenter, Length radius, Ceylan::Maths::AngleInDegrees angleStart, Ceylan::Maths::AngleInDegrees angleStop, Pixels::ColorDefinition colorDef)
 Draws a polygon-based filled pie whose center is (xCenter,yCenter) of specified radius, with specified RGBA color, on specified surface, starting from angleStart, stopping to angleStop.
OSDL_DLL bool drawTriangle (Surface &targetSurface, Coordinate x1, Coordinate y1, Coordinate x2, Coordinate y2, Coordinate x3, Coordinate y3, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque, bool filled=true)
 Draws a triangle defined by specified three points, with specified RGBA color, on specified surface.
OSDL_DLL bool drawTriangle (Surface &targetSurface, Coordinate x1, Coordinate y1, Coordinate x2, Coordinate y2, Coordinate x3, Coordinate y3, Pixels::ColorDefinition colorDef, bool filled=true)
 Draws a triangle defined by specified three points, with specified RGBA color, on specified surface.
OSDL_DLL bool drawTriangle (Surface &targetSurface, const Point2D &p1, const Point2D &p2, const Point2D &p3, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque, bool filled=true)
 Draws a triangle defined by specified three points, with specified RGBA color, on specified surface.
OSDL_DLL bool drawTriangle (Surface &targetSurface, const Point2D &p1, const Point2D &p2, const Point2D &p3, Pixels::ColorDefinition colorDef, bool filled=true)
 Draws a triangle defined by specified three points, with specified RGBA color, on specified surface.
OSDL_DLL bool drawPolygon (Surface &targetSurface, const listPoint2D &summits, Coordinate x, Coordinate y, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque, bool filled=true)
 Draws a polygon defined by specified list of points, with specified RGBA color, on specified surface.
OSDL_DLL bool drawPolygon (Surface &targetSurface, const listPoint2D &summits, Coordinate x, Coordinate y, Pixels::ColorDefinition colorDef, bool filled=true)
 Draws a polygon defined by specified list of points, with specified RGBA color, on specified surface, at specified location.

Typedef Documentation

typedef Ceylan::CountedPointer<Image> OSDL::Video::TwoDimensional::ImageCountedPtr

Image counted pointer.

Definition at line 80 of file OSDLImage.h.

Definition so that readability increases.

Note:
This is a list of pointers to Point2D instances.

Definition at line 67 of file OSDLPolygon.h.

Definition at line 78 of file OSDLUprightRectangle.h.


Function Documentation

bool OSDL::Video::TwoDimensional::drawBezierCurve ( Surface targetSurface,
const listPoint2D &  controlPoints,
Ceylan::Uint16  numberOfSteps,
Pixels::ColorDefinition  colorDef 
)

Draws a Bezier curve through specified control points, with specified number of steps, with specified color definition, on specified surface.

Parameters:
targetSurface the surface where to draw.
controlPoints a list of points controlling the shape of the curve, which will start at the location of the first point, end at the location of the last point, but will not necessarily go through intermediate points: they will only "attract" the curve. There must be at least three control points, i.e. at least one intermediate point.
numberOfSteps determines how many steps will be computed to interpolate the curve. There must be at least two steps.
colorDef the color definition of curve color.
Returns:
false if and only if something went wrong, for example if surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
Exceptions:
VideoException if the operation is not supported.

Definition at line 85 of file OSDLBezier.cc.

References OSDL::Video::Pixels::convertColorDefinitionToRawPixelColor(), and OSDL::Video::Surface::getSDLSurface().

bool OSDL::Video::TwoDimensional::drawBezierCurve ( Surface targetSurface,
const listPoint2D &  controlPoints,
Ceylan::Uint16  numberOfSteps,
Pixels::ColorElement  red,
Pixels::ColorElement  green,
Pixels::ColorElement  blue,
Pixels::ColorElement  alpha = Pixels::AlphaOpaque 
)

Draws a Bezier curve through specified control points, with specified number of steps, with specified RGBA color, on specified surface.

Parameters:
targetSurface the surface where to draw.
controlPoints a list of points controlling the shape of the curve, which will start at the location of the first point, end at the location of the last point, but will not necessarily go through intermediate points: they will only "attract" the curve. There must be at least three control points, i.e. at least one intermediate point.
numberOfSteps determines how many steps will be computed to interpolate the curve. There must be at least two steps.
red the red color coordinate of curve color.
green the green color coordinate of curve color.
blue the blue color coordinate of curve color.
alpha the alpha color coordinate of curve color.
Returns:
false if and only if something went wrong, for example if surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
Exceptions:
VideoException if the operation is not supported.

Definition at line 68 of file OSDLBezier.cc.

References OSDL::Video::Pixels::convertRGBAToColorDefinition().

bool OSDL::Video::TwoDimensional::drawCircle ( Surface targetSurface,
Coordinate  xCenter,
Coordinate  yCenter,
Length  radius,
Pixels::ColorDefinition  colorDef,
bool  filled = true,
bool  blended = true 
)

Draws a circle whose center is (xCenter,yCenter) of specified radius, with specified color definition, on specified surface.

Parameters:
colorDef the color definition of the drawing.
filled tells whether the circle should be filled (disc).
blended tells whether, for each pixel of the disc, the specified color should be blended with the one of the target pixel (if true), or if the disc color should replace the target one, regardless of any blending (if false). Note that only discs may be drawn without being blended: circles are always blended, therefore if filled is false, blended does not matter.
Returns:
false if and only if something went wrong, for example if surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
A circle will be antialiased if antialias mode is set.
See also:
VideoModule::GetAntiAliasingState
Exceptions:
VideoException if the operation is not supported.

Definition at line 197 of file OSDLConic.cc.

References OSDL::Video::Pixels::convertColorDefinitionToRawPixelColor(), OSDL::Video::Surface::describePixelAt(), OSDL::Video::VideoModule::GetAntiAliasingState(), OSDL::Video::Surface::getSDLSurface(), and OSDL::Video::Pixels::toString().

bool OSDL::Video::TwoDimensional::drawCircle ( Surface targetSurface,
Coordinate  xCenter,
Coordinate  yCenter,
Length  radius,
Pixels::ColorElement  red,
Pixels::ColorElement  green,
Pixels::ColorElement  blue,
Pixels::ColorElement  alpha = Pixels::AlphaOpaque,
bool  filled = true,
bool  blended = true 
)

Conics section includes support for:

  • circle
  • ellipse.

Draws a circle whose center is (xCenter,yCenter) of specified radius, with specified RGBA color, on specified surface.

Parameters:
filled tells whether the circle should be filled (disc).
blended tells whether, for each pixel of the disc, the specified color should be blended with the one of the target pixel (if true), or if the disc color should replace the target one, regardless of any blending (if false). Note that only discs may be drawn without being blended: circles are always blended, therefore if filled is false, blended does not matter.
Returns:
false if and only if something went wrong, for example if surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
A circle will be antialiased if antialias mode is set.
See also:
VideoModule::GetAntiAliasingState
Exceptions:
VideoException if the operation is not supported.

Definition at line 70 of file OSDLConic.cc.

References OSDL::Video::Pixels::convertRGBAToColorDefinition(), OSDL::Video::VideoModule::GetAntiAliasingState(), OSDL::Video::Surface::getSDLSurface(), and OSDL::Video::Pixels::toString().

Referenced by drawDiscWithEdge().

bool OSDL::Video::TwoDimensional::drawDiscWithEdge ( Surface targetSurface,
Coordinate  xCenter,
Coordinate  yCenter,
Length  outerRadius,
Length  innerRadius,
Pixels::ColorDefinition  ringColorDef = Pixels::Blue,
Pixels::ColorDefinition  discColorDef = Pixels::White,
bool  blended = true 
)

Draws a disc whose center is (xCenter,yCenter), of specified radius (totalRadius), filled with specified color discColorDef, with a ring in it, on its border, i.e.

starting from innerRadius to totalRadius, colored with ringColorDef, on specified surface.

Parameters:
targetSurface the surface where to draw.
xCenter the abscissa of the center of the disc.
yCenter the ordinate of the center of the disc.
outerRadius the overall disc radius, including the border ring.
innerRadius,the radius from which the ring is drawn, until totalRadius is reached.
ringColorDef the ring color, the color of the border of this disk.
discColorDef the inner color of the disc.
blended tells whether, for each pixel of the edged disc, the specified color should be blended with the one of the target pixel (if true), or if the specified color should replace the former one, regardless of any blending (if false).
Returns:
false if and only if something went wrong, for example if surface locking failed.
Note:
This method is rather expensive (slow), especially if 'discColorDef' is not fully opaque and if 'blended' is false.
Locks surface if needed, clipping is performed, disc will be antialiased iff antialias mode is set.
See also:
VideoModule::GetAntiAliasingState
Exceptions:
VideoException if the operation is not supported.

Definition at line 349 of file OSDLConic.cc.

References OSDL::Video::Surface::AlphaBlendingBlit, OSDL::Video::Pixels::AlphaOpaque, OSDL::Video::Surface::blitTo(), OSDL::Video::Surface::describePixelAt(), drawCircle(), OSDL::Video::Surface::drawCircle(), OSDL::Video::Surface::setAlphaForColor(), and OSDL::Video::Surface::Software.

bool OSDL::Video::TwoDimensional::drawEllipse ( Surface targetSurface,
Coordinate  xCenter,
Coordinate  yCenter,
Length  horizontalRadius,
Length  verticalRadius,
Pixels::ColorDefinition  colorDef,
bool  filled = true 
)

Draws an ellipse whose center is (xCenter,yCenter), with specified horizontal and vertical radius, with specified color definition, on specified surface.

Parameters:
filled tells whether the ellipse should be filled.
Returns:
false if and only if something went wrong, for example if surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
An unfilled ellipse will be antialiased iff antialias mode is set.
The ellipse axes will be either orthogonal or parallel to the screen axes.
See also:
VideoModule::GetAntiAliasingState
Exceptions:
VideoException if the operation is not supported.

Definition at line 606 of file OSDLConic.cc.

References OSDL::Video::Pixels::convertColorDefinitionToRawPixelColor(), OSDL::Video::VideoModule::GetAntiAliasingState(), and OSDL::Video::Surface::getSDLSurface().

bool OSDL::Video::TwoDimensional::drawEllipse ( Surface targetSurface,
Coordinate  xCenter,
Coordinate  yCenter,
Length  horizontalRadius,
Length  verticalRadius,
Pixels::ColorElement  red,
Pixels::ColorElement  green,
Pixels::ColorElement  blue,
Pixels::ColorElement  alpha = Pixels::AlphaOpaque,
bool  filled = true 
)

Draws an ellipse whose center is (xCenter,yCenter), with specified horizontal and vertical radius, with specified RGBA color, on specified surface.

Parameters:
filled tells whether the ellipse should be filled.
Returns:
false if and only if something went wrong, for example if surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
An unfilled ellipse will be antialiased if antialias mode is set.
The ellipse axes will be either orthogonal or parallel to the screen axes.
See also:
VideoModule::GetAntiAliasingState
Exceptions:
VideoException if the operation is not supported.

Definition at line 556 of file OSDLConic.cc.

References OSDL::Video::VideoModule::GetAntiAliasingState(), and OSDL::Video::Surface::getSDLSurface().

bool OSDL::Video::TwoDimensional::drawPie ( Surface targetSurface,
Coordinate  xCenter,
Coordinate  yCenter,
Length  radius,
Ceylan::Maths::AngleInDegrees  angleStart,
Ceylan::Maths::AngleInDegrees  angleStop,
Pixels::ColorDefinition  colorDef 
)

Draws a polygon-based filled pie whose center is (xCenter,yCenter) of specified radius, with specified RGBA color, on specified surface, starting from angleStart, stopping to angleStop.

Parameters:
targetSurface the surface to draw to.
xCenter the abscissa of the center of the pie.
yCenter the ordinate of the center of the pie.
radius the radius of the pie.
angleStart starting angle of the pie, in degrees.
angleStop stopping angle of the pie, in degrees.
colorDef the color definition of fill color.
Returns:
false if and only if something went wrong, for example if the surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
See also:
VideoModule::GetAntiAliasingState

Definition at line 90 of file OSDLPolygon.cc.

References OSDL::Video::Pixels::convertColorDefinitionToRawPixelColor(), and OSDL::Video::Surface::getSDLSurface().

bool OSDL::Video::TwoDimensional::drawPie ( Surface targetSurface,
Coordinate  xCenter,
Coordinate  yCenter,
Length  radius,
Ceylan::Maths::AngleInDegrees  angleStart,
Ceylan::Maths::AngleInDegrees  angleStop,
Pixels::ColorElement  red,
Pixels::ColorElement  green,
Pixels::ColorElement  blue,
Pixels::ColorElement  alpha = Pixels::AlphaOpaque 
)

Some polygone-based shapes:

  • polygon-approximation of a pie
  • triangle
  • Polygon: true locatable polygon class
  • PolygonSet: set of polygons defined in a same shared referential.

Draws a polygon-based filled pie whose center is (xCenter,yCenter) of specified radius, with specified RGBA color, on specified surface, starting from angleStart, stopping to angleStop.

Parameters:
targetSurface the surface to draw to.
xCenter the abscissa of the center of the pie.
yCenter the ordinate of the center of the pie.
radius the radius of the pie.
angleStart starting angle of the pie, in degrees.
angleStop stopping angle of the pie, in degrees.
red the red color coordinate of fill color.
green the green color coordinate of fill color.
blue the blue color coordinate of fill color.
alpha the alpha color coordinate of fill color.
Returns:
false if and only if something went wrong, for example if the surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
See also:
VideoModule::GetAntiAliasingState

Definition at line 66 of file OSDLPolygon.cc.

References OSDL::Video::Surface::getSDLSurface().

bool OSDL::Video::TwoDimensional::drawPolygon ( Surface targetSurface,
const listPoint2D summits,
Coordinate  x,
Coordinate  y,
Pixels::ColorDefinition  colorDef,
bool  filled = true 
)

Draws a polygon defined by specified list of points, with specified RGBA color, on specified surface, at specified location.

Parameters:
summits could be a 'const' list of 'const' Point2D pointers, but the STL would not be able to match it with mostly used argument 'const list of Point2D non-const pointers'.
x the abscissa the polygon should be translated of, on screen.
y the ordinate the polygon should be translated of, on screen.
filled tells whether the polygon should be filled.
Returns:
false if and only if something went wrong, for example if the surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
Will be antialiased if antialias mode is set.
See also:
VideoModule::GetAntiAliasingState

Definition at line 398 of file OSDLPolygon.cc.

References OSDL::Video::Pixels::convertColorDefinitionToRawPixelColor(), OSDL::Video::VideoModule::GetAntiAliasingState(), and OSDL::Video::Surface::getSDLSurface().

bool OSDL::Video::TwoDimensional::drawPolygon ( Surface targetSurface,
const listPoint2D summits,
Coordinate  x,
Coordinate  y,
Pixels::ColorElement  red,
Pixels::ColorElement  green,
Pixels::ColorElement  blue,
Pixels::ColorElement  alpha = Pixels::AlphaOpaque,
bool  filled = true 
)

Draws a polygon defined by specified list of points, with specified RGBA color, on specified surface.

Parameters:
summits could be a 'const' list of 'const' Point2D pointers, but the STL would not be able to match it with mostly used argument 'const list of Point2D non-const pointers'.
x the abscissa the polygon should be translated of, on screen.
y the ordinate the polygon should be translated of, on screen.
filled tells whether the polygon should be filled.
Returns:
false if and only if something went wrong, for example if the surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
Will be antialiased if antialias mode is set.
See also:
VideoModule::GetAntiAliasingState

Definition at line 308 of file OSDLPolygon.cc.

References OSDL::Video::VideoModule::GetAntiAliasingState(), and OSDL::Video::Surface::getSDLSurface().

Referenced by OSDL::Video::TwoDimensional::PolygonSet::draw(), and OSDL::Video::TwoDimensional::Polygon::draw().

bool OSDL::Video::TwoDimensional::drawTriangle ( Surface targetSurface,
const Point2D p1,
const Point2D p2,
const Point2D p3,
Pixels::ColorDefinition  colorDef,
bool  filled = true 
)

Draws a triangle defined by specified three points, with specified RGBA color, on specified surface.

Parameters:
filled tells whether the triangle should be filled.
Returns:
false if and only if something went wrong, for example if the surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
Will be antialiased if antialias mode is set.
See also:
VideoModule::GetAntiAliasingState

Definition at line 258 of file OSDLPolygon.cc.

References OSDL::Video::Pixels::convertColorDefinitionToRawPixelColor(), OSDL::Video::VideoModule::GetAntiAliasingState(), OSDL::Video::Surface::getSDLSurface(), OSDL::Video::TwoDimensional::Point2D::getX(), and OSDL::Video::TwoDimensional::Point2D::getY().

bool OSDL::Video::TwoDimensional::drawTriangle ( Surface targetSurface,
const Point2D p1,
const Point2D p2,
const Point2D p3,
Pixels::ColorElement  red,
Pixels::ColorElement  green,
Pixels::ColorElement  blue,
Pixels::ColorElement  alpha = Pixels::AlphaOpaque,
bool  filled = true 
)

Draws a triangle defined by specified three points, with specified RGBA color, on specified surface.

Parameters:
filled tells whether the triangle should be filled.
Returns:
false if and only if something went wrong, for example if the surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
Will be antialiased if antialias mode is set.
See also:
VideoModule::GetAntiAliasingState

Definition at line 211 of file OSDLPolygon.cc.

References OSDL::Video::VideoModule::GetAntiAliasingState(), OSDL::Video::Surface::getSDLSurface(), OSDL::Video::TwoDimensional::Point2D::getX(), and OSDL::Video::TwoDimensional::Point2D::getY().

bool OSDL::Video::TwoDimensional::drawTriangle ( Surface targetSurface,
Coordinate  x1,
Coordinate  y1,
Coordinate  x2,
Coordinate  y2,
Coordinate  x3,
Coordinate  y3,
Pixels::ColorDefinition  colorDef,
bool  filled = true 
)

Draws a triangle defined by specified three points, with specified RGBA color, on specified surface.

Parameters:
filled tells whether the triangle should be filled.
Returns:
false if and only if something went wrong, for example if the surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
Will be antialiased if antialias mode is set.
See also:
VideoModule::GetAntiAliasingState

Definition at line 160 of file OSDLPolygon.cc.

References OSDL::Video::Pixels::convertColorDefinitionToRawPixelColor(), OSDL::Video::VideoModule::GetAntiAliasingState(), and OSDL::Video::Surface::getSDLSurface().

bool OSDL::Video::TwoDimensional::drawTriangle ( Surface targetSurface,
Coordinate  x1,
Coordinate  y1,
Coordinate  x2,
Coordinate  y2,
Coordinate  x3,
Coordinate  y3,
Pixels::ColorElement  red,
Pixels::ColorElement  green,
Pixels::ColorElement  blue,
Pixels::ColorElement  alpha = Pixels::AlphaOpaque,
bool  filled = true 
)

Draws a triangle defined by specified three points, with specified RGBA color, on specified surface.

Parameters:
filled tells whether the triangle should be filled.
Returns:
false if and only if something went wrong, for example if the surface locking failed.
Note:
Locks surface if needed.
Clipping is performed.
Will be antialiased if antialias mode is set.
See also:
VideoModule::GetAntiAliasingState

Definition at line 115 of file OSDLPolygon.cc.

References OSDL::Video::VideoModule::GetAntiAliasingState(), and OSDL::Video::Surface::getSDLSurface().

Generated on Mon Nov 29 14:06:09 2010 for OSDL by  doxygen 1.6.3