#include "OSDLTypes.h"
#include "OSDLPixel.h"
#include "SDL.h"
Go to the source code of this file.
Namespaces | |
namespace | OSDL |
Definition of the main OSDL common non-specialized types. | |
namespace | OSDL::Video |
namespace | OSDL::Video::TwoDimensional |
namespace | OSDL::Video::TwoDimensional::Line |
This namespace gathers all line-oriented graphics output. | |
Functions | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::drawHorizontal (Surface &targetSurface, Coordinate xStart, Coordinate xStop, Coordinate y, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque) |
Draws an horizontal line ranging from point (xStart;y), included, to point (xStop;y), which is included if and only if endpoint drawing mode is set, with specified RGBA color. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::drawHorizontal (Surface &targetSurface, Coordinate xStart, Coordinate xStop, Coordinate y, Pixels::PixelColor actualColor) |
Draws an horizontal line ranging from point (xStart;y), included, to point (xStop;y), which is included if and only if endpoint drawing mode is set, with specified RGBA color, already expressed according to targetSurface pixel format. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::drawHorizontal (Surface &targetSurface, Coordinate xStart, Coordinate xStop, Coordinate y, Pixels::ColorDefinition=Pixels::White) |
Draws an horizontal line ranging from point (xStart;y), included, to point (xStop;y), which is included if and only if endpoint drawing mode is set, with specified RGBA color. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::drawVertical (Surface &targetSurface, Coordinate x, Coordinate yStart, Coordinate yStop, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque) |
Draws a vertical line ranging from point (x;yStart), included, to point (x;yStop), which is included if and only if endpoint drawing mode is set, with specified RGBA color. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::drawVertical (Surface &targetSurface, Coordinate x, Coordinate yStart, Coordinate yStop, Pixels::ColorDefinition=Pixels::White) |
Draws a vertical line ranging from point (x;yStart), included, to point (x;yStop), which is included if and only if endpoint drawing mode is set, with specified RGBA color. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::draw (Surface &targetSurface, Coordinate xStart, Coordinate yStart, Coordinate xStop, Coordinate yStop, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque) |
Draws a line ranging from point (xStart;yStart), included, to point (xStop;yStop), which is included if and only if endpoint drawing mode is set, with specified RGBA color. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::draw (Surface &targetSurface, Coordinate xStart, Coordinate yStart, Coordinate xStop, Coordinate yStop, Pixels::ColorDefinition colorDef=Pixels::White) |
Draws a line ranging from point (xStart;yStart), included, to point (xStop;yStop), which is included if and only if endpoint drawing mode is set, with specified RGBA color. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::draw (Surface &targetSurface, Point2D &firstPoint, Point2D &secondPoint, Pixels::ColorElement red, Pixels::ColorElement green, Pixels::ColorElement blue, Pixels::ColorElement alpha=Pixels::AlphaOpaque) |
Draws a line ranging from firstpoint, included, to secondPoint, which is included if and only if endpoint drawing mode is set, with specified RGBA color. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::draw (Surface &targetSurface, Point2D &firstPoint, Point2D &secondPoint, Pixels::ColorDefinition colorDef=Pixels::White) |
Draws a line ranging from firstpoint, included, to secondPoint, which is included if and only if endpoint drawing mode is set, with specified RGBA color. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::drawCross (Surface &targetSurface, const Point2D ¢er, Pixels::ColorDefinition colorDef=Pixels::White, Length squareEdge=5) |
Draws a cross centered in center, included in a square whose length of edge is squareEdge. | |
OSDL_DLL bool | OSDL::Video::TwoDimensional::Line::drawCross (Surface &targetSurface, Coordinate xCenter, Coordinate yCenter, Pixels::ColorDefinition colorDef=Pixels::White, Length squareEdge=5) |
Draws a cross centered in center, included in a square whose length of edge is squareEdge. |