Iridescence 1.00
Embedded Graphic Framework
Loading...
Searching...
No Matches
DsRenderer Class Reference

DsRenderer is a class that implements all the drawing operations. More...

#include <ds_renderer.h>

Public Member Functions

void setSurface (DsSurface &surface)
 Sets the underlying surface used for drawing.
 
DsSurfacegetSurface (void)
 Gets the underlying surface used for drawing.
 
void pushClipRegion (DsRegion &region)
 Pushes a clipping region to the clipping region stack.
 
void popClipRegion (void)
 Pops a clipping region from the clipping region stack.
 
void unrollClipRegions (uint8_t level)
 Unrolls the clipping region stack back to a specific number of clip regions.
 
void clearClipRegions (void)
 Clears all the clipping regions.
 
DsRenderer newRenderer (DsSurface &surface)
 Creates a new child renderer for the specified surface.
 
void setSupersampling (int32_t ss)
 Sets the supersampling factor.
 
void drawLine (DsPoint p0, DsPoint p1, DsColor color)
 Draws a non-antialiased line of thickness 1 in between two points.
 
void drawRectangle (DsRect rect, uint16_t thickness, DsColor color)
 Draws a rectangle with lines of specified thickness.
 
void drawRoundedRectangle (DsRect rect, DsColor color, uint16_t corner_radius)
 Draws a non-antialiased rectangle with rounded corners using lines of thickness 1.
 
void drawRoundedRectangle (DsRect rect, DsColor color, uint16_t corner_radius_tl, uint16_t corner_radius_tr, uint16_t corner_radius_br, uint16_t corner_radius_bl)
 Draws a non-antialiased rectangle with rounded corners using lines of thickness 1.
 
void fillRectangle (DsRect rect, DsColor color)
 Fills a rectangle using the specified color.
 
void fillRoundedRectangle (DsRect rect, DsColor color, uint16_t corner_radius)
 Fills a rectangle with rounded corners using the specified color.
 
void fillRoundedRectangle (DsRect rect, DsColor color, uint16_t corner_radius_tl, uint16_t corner_radius_tr, uint16_t corner_radius_br, uint16_t corner_radius_bl)
 Fills a rectangle with rounded corners using the specified color.
 
void drawPoly (const DsPoint *points, uint32_t np, DsColor color)
 Draws a non-antialiased closed polygon using lines of thickness 1.
 
void fillPoly (const DsPoint *points, uint32_t np, DsColor color)
 Fills a non-antialiased closed polygon.
 
void drawCircle (DsFPoint center, float radius, float thickness, DsColor color)
 Draws a non-antialiased circle of specified thickness.
 
void fillCircle (DsFPoint center, float radius, DsColor color)
 Fills a non-antialiased circle.
 
void drawEllipse (DsEllipse ellipse, float thickness, DsColor color)
 Draws a non-antialiased ellipse of specified thickness.
 
void fillEllipse (DsEllipse ellipse, DsColor color)
 Fills a non-antialiased ellipse.
 
void drawEllipseArc (DsEllipse ellipse, float thickness, float start_angle, float end_angle, DsColor color)
 Draws a non-antialiased ellipse arc of specified thickness.
 
void fillEllipseArc (DsEllipse ellipse, float start_angle, float end_angle, DsColor color)
 Fills a non-antialiased ellipse arc.
 
void drawCircleArc (DsFPoint center, float radius, float thickness, float start_angle, float end_angle, DsColor color)
 Draws a non-antialiased circle arc of specified thickness.
 
void fillCircleArc (DsFPoint center, float radius, float start_angle, float end_angle, DsColor color)
 Fills a non-antialiased circle arc.
 
void drawLineAA (const DsFPoint &p0, const DsFPoint &p1, float thickness, DsColor color)
 Draws an antialiased line of specified thickness between two points.
 
void drawPolyAA (const DsFPoint *points, uint32_t np, float thickness, DsColor color)
 Draws an antialiased closed polygon using lines of specified thickness.
 
void fillPolyAA (const DsFPoint *points, uint32_t np, DsColor color)
 Fills an antialiased closed polygon.
 
void fillRectangleAA (DsFRect rect, DsColor color)
 Fills an antialiased rectangle using the specified color.
 
void drawRoundedRectangleAA (DsFRect rect, DsColor color, float thickness, float corner_radius)
 Draws an antialiased rectangle with rounded corners and lines of specified thickness.
 
void drawRoundedRectangleAA (DsFRect rect, DsColor color, float thickness, float corner_radius_tl, float corner_radius_tr, float corner_radius_br, float corner_radius_bl)
 Draws an antialiased rectangle with rounded corners and lines of specified thickness.
 
void fillRoundedRectangleAA (DsFRect rect, DsColor color, float corner_radius)
 Fills an antialiased rectangle with rounded corners using the specified color.
 
void fillRoundedRectangleAA (DsFRect rect, DsColor color, float corner_radius_tl, float corner_radius_tr, float corner_radius_br, float corner_radius_bl)
 Fills an antialiased rectangle with rounded corners using the specified color.
 
void drawEllipseAA (DsEllipse ellipse, float thickness, DsColor color)
 Draws an antialiased ellipse of specified thickness.
 
void fillEllipseAA (DsEllipse ellipse, DsColor color)
 Fills an antialiased ellipse.
 
void drawCircleAA (DsFPoint center, float radius, float thickness, DsColor color)
 Draws an antialiased circle of specified thickness.
 
void fillCircleAA (DsFPoint center, float radius, DsColor color)
 Fills an antialiased circle.
 
void drawEllipseArcAA (DsEllipse ellipse, float thickness, float start, float end, DsColor color)
 Draws an antialiased ellipse arc of specified thickness.
 
void fillEllipseArcAA (DsEllipse ellipse, float start, float end, DsColor color)
 Fills an antialiased ellipse arc.
 
void drawCircleArcAA (DsFPoint center, float radius, float thickness, float start, float end, DsColor color)
 Draws an antialiased circle arc of specified thickness.
 
void fillCircleArcAA (DsFPoint center, float radius, float start, float end, DsColor color)
 Fills an antialiased circle arc.
 
DsRect renderText (DsPoint pos, const ds_bitmap_font_t *font, DsColor color, const char *text, size_t length=DsString::npos)
 Renders text.
 
DsRect renderMultilineText (DsPoint pos, const ds_bitmap_font_t *font, DsColor color, const DsAlignment &line_alignment, float row_spacing, const char *text, size_t length=DsString::npos)
 Renders multiline text. It does this by interpreting the CR and LF characters.
 
DsRect renderTextAligned (const DsRect &boundary, const DsAlignment &alignment, const DsPoint &offset, const ds_bitmap_font_t *font, DsColor color, const char *text, size_t length=DsString::npos)
 Renders text in aligned mode.
 
DsRect renderMultilineTextAligned (const DsRect &boundary, const DsAlignment &text_alignment, const DsPoint &offset, const ds_bitmap_font_t *font, DsColor color, const DsAlignment &line_alignment, float row_spacing, const char *text, size_t length=DsString::npos)
 Renders multiline text in aligned mode. It does this by interpreting the CR and LF characters.
 
DsRect renderTextCentered (DsPoint pos, const ds_bitmap_font_t *font, DsColor color, const char *text, size_t length=DsString::npos)
 Renders text centered on a point.
 
DsRect renderMultilineTextCentered (DsPoint pos, const ds_bitmap_font_t *font, DsColor color, const DsAlignment &line_alignment, float row_spacing, const char *text, size_t length=DsString::npos)
 Renders multiline text centered on a point. It does this by interpreting the CR and LF characters.
 
void moveClipRegions (const DsFPoint &offset)
 

Static Public Member Functions

static bool clipLine (const DsRect &bounds, int32_t &x0, int32_t &y0, int32_t &x1, int32_t &y1)
 

Friends

class DsScreen
 

Detailed Description

DsRenderer is a class that implements all the drawing operations.

DsRenderer has member functions which perform both antialiased and non-antialiased drawing. The rendered holds a reference to a DsSurface which is the destination for all drawing operations. Use setSurface() / getSurface() to set and get the drawing surface. The antialiasing supersampling level can be set using the setSupersampling() member function.

Member Function Documentation

◆ drawCircle()

void DsRenderer::drawCircle ( DsFPoint  center,
float  radius,
float  thickness,
DsColor  color 
)
inline

Draws a non-antialiased circle of specified thickness.

Parameters
centerCoordinate of the center
radiusRadius in pixels
thicknessThickness in pixels
colorColor to use

◆ drawCircleAA()

void DsRenderer::drawCircleAA ( DsFPoint  center,
float  radius,
float  thickness,
DsColor  color 
)
inline

Draws an antialiased circle of specified thickness.

Parameters
centerCoordinate of the center
radiusRadius in pixels
thicknessThickness in pixels
colorColor to use

◆ drawCircleArc()

void DsRenderer::drawCircleArc ( DsFPoint  center,
float  radius,
float  thickness,
float  start_angle,
float  end_angle,
DsColor  color 
)
inline

Draws a non-antialiased circle arc of specified thickness.

Parameters
centerCoordinate of the center
radiusRadius in pixels
thicknessThickness in pixels
start_angleStart angle in degrees
end_angleEnd angle in degrees
colorColor to use

◆ drawCircleArcAA()

void DsRenderer::drawCircleArcAA ( DsFPoint  center,
float  radius,
float  thickness,
float  start,
float  end,
DsColor  color 
)
inline

Draws an antialiased circle arc of specified thickness.

Parameters
centerCoordinate of the center
radiusRadius in pixels
thicknessThickness in pixels
startStart angle in degrees
endEnd angle in degrees
colorColor to use

◆ drawEllipse()

void DsRenderer::drawEllipse ( DsEllipse  ellipse,
float  thickness,
DsColor  color 
)

Draws a non-antialiased ellipse of specified thickness.

The ellipse can only be drawed in a fixed rotation, by specifying the X and Y radii.

Parameters
ellipseDsEllipse object describing the geometry of the ellipse
thicknessThickness in pixels
colorColor to use

◆ drawEllipseAA()

void DsRenderer::drawEllipseAA ( DsEllipse  ellipse,
float  thickness,
DsColor  color 
)

Draws an antialiased ellipse of specified thickness.

The ellipse can only be drawed in a fixed rotation, by specifying the X and Y radii.

Parameters
ellipseDsEllipse object describing the geometry of the ellipse
thicknessThickness in pixels
colorColor to use

◆ drawEllipseArc()

void DsRenderer::drawEllipseArc ( DsEllipse  ellipse,
float  thickness,
float  start_angle,
float  end_angle,
DsColor  color 
)

Draws a non-antialiased ellipse arc of specified thickness.

The ellipse arc can only be drawed in a fixed rotation, by specifying the X and Y radii.

Parameters
ellipseDsEllipse object describing the geometry of the ellipse
thicknessThickness in pixels
start_angleStart angle in degrees
end_angleEnd angle in degrees
colorColor to use

◆ drawEllipseArcAA()

void DsRenderer::drawEllipseArcAA ( DsEllipse  ellipse,
float  thickness,
float  start,
float  end,
DsColor  color 
)

Draws an antialiased ellipse arc of specified thickness.

The ellipse arc can only be drawed in a fixed rotation, by specifying the X and Y radii.

Parameters
ellipseDsEllipse object describing the geometry of the ellipse
thicknessThickness in pixels
startStart angle in degrees
endEnd angle in degrees
colorColor to use

◆ drawLine()

void DsRenderer::drawLine ( DsPoint  p0,
DsPoint  p1,
DsColor  color 
)

Draws a non-antialiased line of thickness 1 in between two points.

Parameters
p0First point
p1Second point
colorColor to use

◆ drawLineAA()

void DsRenderer::drawLineAA ( const DsFPoint p0,
const DsFPoint p1,
float  thickness,
DsColor  color 
)

Draws an antialiased line of specified thickness between two points.

Parameters
p0First point
p1Second point
thicknessThickness in pixels
colorColor to use

◆ drawPoly()

void DsRenderer::drawPoly ( const DsPoint points,
uint32_t  np,
DsColor  color 
)

Draws a non-antialiased closed polygon using lines of thickness 1.

Parameters
pointsPointer to an array of DsPoint objects defining the vertices
npNumber of points in the "points" array (minimum 3)
colorColor to use

◆ drawPolyAA()

void DsRenderer::drawPolyAA ( const DsFPoint points,
uint32_t  np,
float  thickness,
DsColor  color 
)

Draws an antialiased closed polygon using lines of specified thickness.

Parameters
pointsPointer to an array of DsFPoint objects defining the vertices
npNumber of points in the "points" array (minimum 3)
thicknessLine thickness in pixels
colorColor to use

◆ drawRectangle()

void DsRenderer::drawRectangle ( DsRect  rect,
uint16_t  thickness,
DsColor  color 
)

Draws a rectangle with lines of specified thickness.

The rectangle size applies to the outside of the lines (in case the line thickness is higher than 1).

Parameters
rectThe rectangle to draw
thicknessThickness in pixels of the lines used for drawing the rectangle
colorColor to use

◆ drawRoundedRectangle() [1/2]

void DsRenderer::drawRoundedRectangle ( DsRect  rect,
DsColor  color,
uint16_t  corner_radius 
)
inline

Draws a non-antialiased rectangle with rounded corners using lines of thickness 1.

Parameters
rectThe rectangle to draw
colorColor to use
corner_radiusCorner radius

◆ drawRoundedRectangle() [2/2]

void DsRenderer::drawRoundedRectangle ( DsRect  rect,
DsColor  color,
uint16_t  corner_radius_tl,
uint16_t  corner_radius_tr,
uint16_t  corner_radius_br,
uint16_t  corner_radius_bl 
)

Draws a non-antialiased rectangle with rounded corners using lines of thickness 1.

Parameters
rectThe rectangle to draw
colorColor to use
corner_radius_tlTop left corner radius
corner_radius_trTop right corner radius
corner_radius_brBottom right corner radius
corner_radius_blBottom left corner radius

◆ drawRoundedRectangleAA() [1/2]

void DsRenderer::drawRoundedRectangleAA ( DsFRect  rect,
DsColor  color,
float  thickness,
float  corner_radius 
)
inline

Draws an antialiased rectangle with rounded corners and lines of specified thickness.

Parameters
rectThe rectangle to draw
colorColor to use
thicknessThickness in pixels of the lines used for drawing the rectangle
corner_radiusCorner radius

◆ drawRoundedRectangleAA() [2/2]

void DsRenderer::drawRoundedRectangleAA ( DsFRect  rect,
DsColor  color,
float  thickness,
float  corner_radius_tl,
float  corner_radius_tr,
float  corner_radius_br,
float  corner_radius_bl 
)

Draws an antialiased rectangle with rounded corners and lines of specified thickness.

Parameters
rectThe rectangle to draw
colorColor to use
thicknessThickness in pixels of the lines used for drawing the rectangle
corner_radius_tlTop left corner radius
corner_radius_trTop right corner radius
corner_radius_brBottom right corner radius
corner_radius_blBottom left corner radius

◆ fillCircle()

void DsRenderer::fillCircle ( DsFPoint  center,
float  radius,
DsColor  color 
)
inline

Fills a non-antialiased circle.

Parameters
centerCoordinate of the center
radiusRadius in pixels
colorColor to use

◆ fillCircleAA()

void DsRenderer::fillCircleAA ( DsFPoint  center,
float  radius,
DsColor  color 
)
inline

Fills an antialiased circle.

Parameters
centerCoordinate of the center
radiusRadius in pixels
colorColor to use

◆ fillCircleArc()

void DsRenderer::fillCircleArc ( DsFPoint  center,
float  radius,
float  start_angle,
float  end_angle,
DsColor  color 
)
inline

Fills a non-antialiased circle arc.

Parameters
centerCoordinate of the center
radiusRadius in pixels
start_angleStart angle in degrees
end_angleEnd angle in degrees
colorColor to use

◆ fillCircleArcAA()

void DsRenderer::fillCircleArcAA ( DsFPoint  center,
float  radius,
float  start,
float  end,
DsColor  color 
)
inline

Fills an antialiased circle arc.

Parameters
centerCoordinate of the center
radiusRadius in pixels
startStart angle in degrees
endEnd angle in degrees
colorColor to use

◆ fillEllipse()

void DsRenderer::fillEllipse ( DsEllipse  ellipse,
DsColor  color 
)

Fills a non-antialiased ellipse.

The ellipse can only be filled in a fixed rotation, by specifying the X and Y radii.

Parameters
ellipseDsEllipse object describing the geometry of the ellipse
colorColor to use

◆ fillEllipseAA()

void DsRenderer::fillEllipseAA ( DsEllipse  ellipse,
DsColor  color 
)

Fills an antialiased ellipse.

The ellipse can only be filled in a fixed rotation, by specifying the X and Y radii.

Parameters
ellipseDsEllipse object describing the geometry of the ellipse
colorColor to use

◆ fillEllipseArc()

void DsRenderer::fillEllipseArc ( DsEllipse  ellipse,
float  start_angle,
float  end_angle,
DsColor  color 
)

Fills a non-antialiased ellipse arc.

The ellipse arc can only be drawed in a fixed rotation, by specifying the X and Y radii.

Parameters
ellipseDsEllipse object describing the geometry of the ellipse
start_angleStart angle in degrees
end_angleEnd angle in degrees
colorColor to use

◆ fillEllipseArcAA()

void DsRenderer::fillEllipseArcAA ( DsEllipse  ellipse,
float  start,
float  end,
DsColor  color 
)

Fills an antialiased ellipse arc.

The ellipse arc can only be drawed in a fixed rotation, by specifying the X and Y radii.

Parameters
ellipseDsEllipse object describing the geometry of the ellipse
startStart angle in degrees
endEnd angle in degrees
colorColor to use

◆ fillPoly()

void DsRenderer::fillPoly ( const DsPoint points,
uint32_t  np,
DsColor  color 
)

Fills a non-antialiased closed polygon.

Parameters
pointsPointer to an array of DsPoint objects defining the vertices
npNumber of points in the "points" array (minumum 3)
colorColor to use

◆ fillPolyAA()

void DsRenderer::fillPolyAA ( const DsFPoint points,
uint32_t  np,
DsColor  color 
)

Fills an antialiased closed polygon.

Parameters
pointsPointer to an array of DsFPoint objects defining the vertices
npNumber of points in the "points" array (minimum 3)
colorColor to use

◆ fillRectangle()

void DsRenderer::fillRectangle ( DsRect  rect,
DsColor  color 
)

Fills a rectangle using the specified color.

Parameters
rectThe rectangle to draw
colorColor to use

◆ fillRectangleAA()

void DsRenderer::fillRectangleAA ( DsFRect  rect,
DsColor  color 
)
inline

Fills an antialiased rectangle using the specified color.

Parameters
rectThe rectangle to draw
colorColor to use

◆ fillRoundedRectangle() [1/2]

void DsRenderer::fillRoundedRectangle ( DsRect  rect,
DsColor  color,
uint16_t  corner_radius 
)
inline

Fills a rectangle with rounded corners using the specified color.

Parameters
rectThe rectangle to draw
colorColor to use
corner_radiusCorner radius

◆ fillRoundedRectangle() [2/2]

void DsRenderer::fillRoundedRectangle ( DsRect  rect,
DsColor  color,
uint16_t  corner_radius_tl,
uint16_t  corner_radius_tr,
uint16_t  corner_radius_br,
uint16_t  corner_radius_bl 
)

Fills a rectangle with rounded corners using the specified color.

Parameters
rectThe rectangle to draw
colorColor to use
corner_radius_tlTop left corner radius
corner_radius_trTop right corner radius
corner_radius_brBottom right corner radius
corner_radius_blBottom left corner radius

◆ fillRoundedRectangleAA() [1/2]

void DsRenderer::fillRoundedRectangleAA ( DsFRect  rect,
DsColor  color,
float  corner_radius 
)
inline

Fills an antialiased rectangle with rounded corners using the specified color.

Parameters
rectThe rectangle to draw
colorColor to use
corner_radiusCorner radius

◆ fillRoundedRectangleAA() [2/2]

void DsRenderer::fillRoundedRectangleAA ( DsFRect  rect,
DsColor  color,
float  corner_radius_tl,
float  corner_radius_tr,
float  corner_radius_br,
float  corner_radius_bl 
)

Fills an antialiased rectangle with rounded corners using the specified color.

Parameters
rectThe rectangle to draw
colorColor to use
corner_radius_tlTop left corner radius
corner_radius_trTop right corner radius
corner_radius_brBottom right corner radius
corner_radius_blBottom left corner radius

◆ getSurface()

DsSurface & DsRenderer::getSurface ( void  )

Gets the underlying surface used for drawing.

Returns
The DsSurface object

◆ newRenderer()

DsRenderer DsRenderer::newRenderer ( DsSurface surface)

Creates a new child renderer for the specified surface.

The new child rendered shares all resources with the parent renderer.

Parameters
surfaceThe DsSurface object

◆ pushClipRegion()

void DsRenderer::pushClipRegion ( DsRegion region)

Pushes a clipping region to the clipping region stack.

Parameters
regionClipping region. This is a class derived from DsRegion.

◆ renderMultilineText()

DsRect DsRenderer::renderMultilineText ( DsPoint  pos,
const ds_bitmap_font_t font,
DsColor  color,
const DsAlignment line_alignment,
float  row_spacing,
const char *  text,
size_t  length = DsString::npos 
)

Renders multiline text. It does this by interpreting the CR and LF characters.

Parameters
posCoordinate of the rendering operation
fontPointer to the font to use
colorText color
line_alignmentThe line alignment mode
row_spacingRow spacing multiplier (1.0 means keep original font row spacing)
textNull termianted string representing the text to render
lengthMaximum number of characters to render (default is all characters)
Returns
Rectangle enclosing the rendered text

◆ renderMultilineTextAligned()

DsRect DsRenderer::renderMultilineTextAligned ( const DsRect boundary,
const DsAlignment text_alignment,
const DsPoint offset,
const ds_bitmap_font_t font,
DsColor  color,
const DsAlignment line_alignment,
float  row_spacing,
const char *  text,
size_t  length = DsString::npos 
)

Renders multiline text in aligned mode. It does this by interpreting the CR and LF characters.

Parameters
boundaryRectangle representing the boundary for rendering the text
alignmentThe alighment mode inside the boundary
ofsetThe offset to apply to the aligned text
fontPointer to the font to use
colorText color
line_alignmentThe line alignment mode
row_spacingRow spacing multiplier (1.0 means keep original font row spacing)
textNull termianted string representing the text to render
lengthMaximum number of characters to render (default is all characters)
Returns
Rectangle enclosing the rendered text

◆ renderMultilineTextCentered()

DsRect DsRenderer::renderMultilineTextCentered ( DsPoint  pos,
const ds_bitmap_font_t font,
DsColor  color,
const DsAlignment line_alignment,
float  row_spacing,
const char *  text,
size_t  length = DsString::npos 
)

Renders multiline text centered on a point. It does this by interpreting the CR and LF characters.

Parameters
posThe position to center the text on
fontPointer to the font to use
colorText color
line_alignmentThe line alignment mode
row_spacingRow spacing multiplier (1.0 means keep original font row spacing)
textNull termianted string representing the text to render
lengthMaximum number of characters to render (default is all characters)
Returns
Rectangle enclosing the rendered text

◆ renderText()

DsRect DsRenderer::renderText ( DsPoint  pos,
const ds_bitmap_font_t font,
DsColor  color,
const char *  text,
size_t  length = DsString::npos 
)

Renders text.

Parameters
posCoordinate of the rendering operation
fontPointer to the font to use
colorText color
textNull termianted string representing the text to render
lengthMaximum number of characters to render (default is all characters)
Returns
Rectangle enclosing the rendered text

◆ renderTextAligned()

DsRect DsRenderer::renderTextAligned ( const DsRect boundary,
const DsAlignment alignment,
const DsPoint offset,
const ds_bitmap_font_t font,
DsColor  color,
const char *  text,
size_t  length = DsString::npos 
)

Renders text in aligned mode.

Parameters
boundaryRectangle representing the boundary for rendering the text
alignmentThe alighment mode inside the boundary
ofsetThe offset to apply to the aligned text
fontPointer to the font to use
colorText color
textNull termianted string representing the text to render
lengthMaximum number of characters to render (default is all characters)
Returns
Rectangle enclosing the rendered text

◆ renderTextCentered()

DsRect DsRenderer::renderTextCentered ( DsPoint  pos,
const ds_bitmap_font_t font,
DsColor  color,
const char *  text,
size_t  length = DsString::npos 
)

Renders text centered on a point.

Parameters
posThe position to center the text on
fontPointer to the font to use
colorText color
textNull termianted string representing the text to render
lengthMaximum number of characters to render (default is all characters)
Returns
Rectangle enclosing the rendered text

◆ setSupersampling()

void DsRenderer::setSupersampling ( int32_t  ss)

Sets the supersampling factor.

Parameters
ssSupersampling factor [1 .. 5]. A higher factor produces better antialiased results but requires more processing power. The default value is 3.

◆ setSurface()

void DsRenderer::setSurface ( DsSurface surface)

Sets the underlying surface used for drawing.

Parameters
surfaceThe DsSurface object

◆ unrollClipRegions()

void DsRenderer::unrollClipRegions ( uint8_t  level)

Unrolls the clipping region stack back to a specific number of clip regions.

Parameters
levelNumber of levels to leave in the stack

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