Arctic Engine
Designed to give you control and not take anything away.
Collaboration diagram for Drawing:

Classes

class  arctic::DecoratedFrame
 
struct  arctic::Font
 
class  arctic::HwSprite
 
class  arctic::Sprite
 

Enumerations

enum  CloneTransform {
  kCloneUntransformed , kCloneRotateCw90 , kCloneRotateCcw90 , kCloneRotate180 ,
  kCloneMirrorLr , kCloneMirrorUd
}
 
enum  DrawBlendingMode {
  kCopyRgba = 0 , kDrawBlendingModeCopyRgba = 0 , kAlphaBlend = 1 , kDrawBlendingModeAlphaBlend = 1 ,
  kColorize = 2 , kDrawBlendingModeColorize = 2 , kDrawBlendingModeAdd = 3 , kDrawBlendingModeSolidColor = 4 ,
  kDrawBlendingModePremultipliedAlphaBlend = 5
}
 
enum  DrawFilterMode { kFilterNearest , kFilterBilinear }
 
enum  arctic::TextOrigin { arctic::kTextOriginBottom = 0 , arctic::kTextOriginFirstBase = 1 , arctic::kTextOriginLastBase = 2 , arctic::kTextOriginTop = 3 }
 The origin point used for rendering. More...
 

Functions

void arctic::Clear ()
 Clear the backbuffer with black color.
 
void arctic::Clear (Rgba color)
 Clear the backbuffer with the color specified.
 
void arctic::DrawCircle (Sprite to_sprite, Vec2Si32 c, Si32 r, Rgba color)
 Draws a solid color filled circle to a sprite.
 
void arctic::DrawCircle (Vec2Si32 c, Si32 r, Rgba color)
 Draws a solid color filled circle.
 
void arctic::DrawLine (Sprite to_sprite, Vec2Si32 a, Vec2Si32 b, Rgba color)
 Draws a solid color line from point a to point b to a sprite.
 
void arctic::DrawLine (Sprite to_sprite, Vec2Si32 a, Vec2Si32 b, Rgba color_a, Rgba color_b)
 Draws a gradient color line from point a to point b to a sprite.
 
void arctic::DrawLine (Vec2Si32 a, Vec2Si32 b, Rgba color)
 Draws a solid color line from point a to point b.
 
void arctic::DrawLine (Vec2Si32 a, Vec2Si32 b, Rgba color_a, Rgba color_b)
 Draws a gradient color line from point a to point b.
 
void arctic::DrawOval (Sprite to_sprite, Vec2Si32 c, Vec2Si32 r, Rgba color)
 Draws a solid color filled oval to a sprite.
 
void arctic::DrawOval (Vec2Si32 c, Vec2Si32 r, Rgba color)
 Draws a solid color filled oval.
 
void arctic::DrawRectangle (Sprite to_sprite, Vec2Si32 ll, Vec2Si32 ur, Rgba color)
 Draws a solid color filled rectangle to a sprite.
 
void arctic::DrawRectangle (Vec2Si32 ll, Vec2Si32 ur, Rgba color)
 Draws a solid color filled rectangle.
 
void arctic::DrawTriangle (Sprite to_sprite, Vec2F a, Vec2F b, Vec2F c, Vec2F ta, Vec2F tb, Vec2F tc, Sprite texture, DrawBlendingMode blending_mode, DrawFilterMode filter_mode, Rgba in_color)
 
void arctic::DrawTriangle (Sprite to_sprite, Vec2Si32 a, Vec2Si32 b, Vec2Si32 c, Rgba color)
 Draws a solid color filled triangle to a sprite.
 
void arctic::DrawTriangle (Sprite to_sprite, Vec2Si32 a, Vec2Si32 b, Vec2Si32 c, Rgba color_a, Rgba color_b, Rgba color_c)
 Draws a gradient color filled triangle to a sprite.
 
void arctic::DrawTriangle (Vec2Si32 a, Vec2Si32 b, Vec2Si32 c, Rgba color)
 Draws a solid color filled triangle.
 
void arctic::DrawTriangle (Vec2Si32 a, Vec2Si32 b, Vec2Si32 c, Rgba color_a, Rgba color_b, Rgba color_c)
 Draws a gradient color filled triangle.
 
Rgba arctic::GetPixel (const Sprite &from_sprite, Si32 x, Si32 y)
 Returns color of a pixel of a sprite at coordinates specified.
 
Rgba arctic::GetPixel (Si32 x, Si32 y)
 Returns color of a pixel at coordinates specified.
 
void arctic::ReplaceColor (Sprite to_sprite, Rgba old_color, Rgba new_color)
 Sets the new color to all the pixels of the old color.
 
void arctic::SetPixel (const Sprite &to_sprite, Si32 x, Si32 y, Rgba color)
 Sets color of a pixel of a sprite at coordinates specified.
 
void arctic::SetPixel (Si32 x, Si32 y, Rgba color)
 Sets color of a pixel at coordinates specified.
 
void arctic::ShowFrame ()
 Show the current backbuffer and update the input state.
 

Detailed Description

Enumeration Type Documentation

◆ TextOrigin

The origin point used for rendering.

Enumerator
kTextOriginBottom 

The bottom of the last text line.

kTextOriginFirstBase 

The base of the first text line.

kTextOriginLastBase 

The base of the last text line.

kTextOriginTop 

The top of the first text line.