Arctic Engine
Designed to give you control and not take anything away.
|
Classes | |
class | arctic::DecoratedFrame |
class | arctic::Font |
Class representing a font. More... | |
class | arctic::FontInstance |
Class representing a font instance. More... | |
class | arctic::HwSprite |
struct | arctic::HwSpriteDrawing |
class | arctic::Sprite |
Functions | |
Vec2F | arctic::BlockEdgePos (Vec2F lower_left_pos, Vec2F size, float corner_radius, Vec2F direction) |
Calculate the position of a point on the edge of a block. More... | |
void | arctic::Clear () |
Clear the backbuffer with black color. | |
void | arctic::Clear (Rgba color) |
Clear the backbuffer with the color specified. More... | |
void | arctic::DrawArrow (Sprite &to_sprite, Vec2F source_pos, Vec2F destination_pos, float body_width, float head_width, float head_length, Rgba color) |
Draw an arrow shape. More... | |
void | arctic::DrawArrow (Sprite &to_sprite, Vec2F source_pos, Vec2F destination_pos, float body_width, float head_width, float head_length, Rgba color, float border_size, Rgba border_color) |
Draw an arrow shape. The shape has a border. More... | |
void | arctic::DrawBlock (Sprite &to_sprite, Vec2F lower_left_pos, Vec2F size, float corner_radius, Rgba color) |
Draw a rounded corner rectangular block shape. More... | |
void | arctic::DrawBlock (Sprite &to_sprite, Vec2F lower_left_pos, Vec2F size, float corner_radius, Rgba color, float border_size, Rgba border_color) |
Draw a rounded corner rectangular block shape. The shape has a border. More... | |
void | arctic::DrawCircle (Sprite to_sprite, Vec2Si32 c, Si32 r, Rgba color) |
Draws a solid color filled circle to a sprite. More... | |
void | arctic::DrawCircle (Vec2Si32 c, Si32 r, Rgba color) |
Draws a solid color filled circle. More... | |
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. More... | |
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. More... | |
void | arctic::DrawLine (Vec2Si32 a, Vec2Si32 b, Rgba color) |
Draws a solid color line from point a to point b. More... | |
void | arctic::DrawLine (Vec2Si32 a, Vec2Si32 b, Rgba color_a, Rgba color_b) |
Draws a gradient color line from point a to point b. More... | |
void | arctic::DrawOval (Sprite to_sprite, Rgba color, Vec2Si32 ll, Vec2Si32 ur) |
Draws a solid color filled oval to a sprite. More... | |
void | arctic::DrawOval (Sprite to_sprite, Vec2Si32 c, Vec2Si32 r, Rgba color) |
Draws a solid color filled oval to a sprite. More... | |
void | arctic::DrawOval (Vec2Si32 c, Vec2Si32 r, Rgba color) |
Draws a solid color filled oval. More... | |
void | arctic::DrawRectangle (Sprite to_sprite, Vec2Si32 ll, Vec2Si32 ur, Rgba color) |
Draws a solid color filled rectangle to a sprite. More... | |
void | arctic::DrawRectangle (Vec2Si32 ll, Vec2Si32 ur, Rgba color) |
Draws a solid color filled rectangle. More... | |
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) |
Draws a textured triangle to a sprite. More... | |
void | arctic::DrawTriangle (Sprite to_sprite, Vec2Si32 a, Vec2Si32 b, Vec2Si32 c, Rgba color) |
Draws a solid color filled triangle to a sprite. More... | |
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. More... | |
void | arctic::DrawTriangle (Vec2Si32 a, Vec2Si32 b, Vec2Si32 c, Rgba color) |
Draws a solid color filled triangle. More... | |
void | arctic::DrawTriangle (Vec2Si32 a, Vec2Si32 b, Vec2Si32 c, Rgba color_a, Rgba color_b, Rgba color_c) |
Draws a gradient color filled triangle. More... | |
Rgba | arctic::GetPixel (const Sprite &from_sprite, Si32 x, Si32 y) |
Returns color of a pixel of a sprite at coordinates specified. More... | |
Rgba | arctic::GetPixel (Si32 x, Si32 y) |
Returns color of a pixel at coordinates specified. More... | |
void | arctic::ReplaceColor (Sprite to_sprite, Rgba old_color, Rgba new_color) |
Sets the new color to all the pixels of the old color. More... | |
void | arctic::SetPixel (const Sprite &to_sprite, Si32 x, Si32 y, Rgba color) |
Sets color of a pixel of a sprite at coordinates specified. More... | |
void | arctic::SetPixel (Si32 x, Si32 y, Rgba color) |
Sets color of a pixel at coordinates specified. More... | |
void | arctic::ShowFrame () |
Show the current backbuffer and update the input state. | |
Enum representing the transformation to apply when cloning a sprite.
Enum representing the blending mode for drawing.
enum arctic::TextOrigin |
The origin point used for rendering.
Vec2F arctic::BlockEdgePos | ( | Vec2F | lower_left_pos, |
Vec2F | size, | ||
float | corner_radius, | ||
Vec2F | direction | ||
) |
Calculate the position of a point on the edge of a block.
[in] | lower_left_pos | Lower-left block corner position. |
[in] | size | Block size. |
[in] | corner_radius | External radius of block corners. |
[in] | direction | Direction vector from the center of the block to the edge. |
void arctic::Clear | ( | Rgba | color | ) |
Clear the backbuffer with the color specified.
[in] | color | Color to clear the backbuffer with. |
void arctic::DrawArrow | ( | Sprite & | to_sprite, |
Vec2F | source_pos, | ||
Vec2F | destination_pos, | ||
float | body_width, | ||
float | head_width, | ||
float | head_length, | ||
Rgba | color | ||
) |
Draw an arrow shape.
[in] | to_sprite | Sprite to draw the arrow on. |
[in] | source_pos | Tail position (source point). |
[in] | destination_pos | Head position (destination point). |
[in] | body_width | Tail width. |
[in] | head_width | Head width. |
[in] | head_length | Head length. |
[in] | color | Fill color of the arrow. |
void arctic::DrawArrow | ( | Sprite & | to_sprite, |
Vec2F | source_pos, | ||
Vec2F | destination_pos, | ||
float | body_width, | ||
float | head_width, | ||
float | head_length, | ||
Rgba | color, | ||
float | border_size, | ||
Rgba | border_color | ||
) |
Draw an arrow shape. The shape has a border.
[in] | to_sprite | Sprite to draw the arrow on. |
[in] | source_pos | Tail position (source point). |
[in] | destination_pos | Head position (destination point). |
[in] | body_width | Tail width. |
[in] | head_width | Head width. |
[in] | head_length | Head length. |
[in] | color | Fill color of the arrow. |
[in] | border_size | Border width. |
[in] | border_color | Border color. |
void arctic::DrawBlock | ( | Sprite & | to_sprite, |
Vec2F | lower_left_pos, | ||
Vec2F | size, | ||
float | corner_radius, | ||
Rgba | color | ||
) |
Draw a rounded corner rectangular block shape.
[in] | to_sprite | Sprite to draw the block on. |
[in] | lower_left_pos | Lower-left block corner position (as if it was not rounded). |
[in] | size | Block size. |
[in] | corner_radius | External radius of block corners. |
[in] | color | Fill color of the block. |
void arctic::DrawBlock | ( | Sprite & | to_sprite, |
Vec2F | lower_left_pos, | ||
Vec2F | size, | ||
float | corner_radius, | ||
Rgba | color, | ||
float | border_size, | ||
Rgba | border_color | ||
) |
Draw a rounded corner rectangular block shape. The shape has a border.
[in] | to_sprite | Sprite to draw the block on. |
[in] | lower_left_pos | Lower-left block corner position (as if it was not rounded). |
[in] | size | Block size. |
[in] | corner_radius | External radius of block corners. |
[in] | color | Fill color of the block. |
[in] | border_size | Border width. |
[in] | border_color | Border color. |
Draws a solid color filled circle to a sprite.
[in] | to_sprite | Sprite to draw the circle on. |
[in] | c | Center of the circle. |
[in] | r | Radius of the circle. |
[in] | color | Color of the circle. |
Draws a solid color filled circle.
[in] | c | Center of the circle. |
[in] | r | Radius of the circle. |
[in] | color | Color of the circle. |
Draws a solid color line from point a to point b to a sprite.
[in] | to_sprite | Sprite to draw the line on. |
[in] | a | Starting point of the line. |
[in] | b | Ending point of the line. |
[in] | color | Color of the line. |
Draws a gradient color line from point a to point b to a sprite.
[in] | to_sprite | Sprite to draw the line on. |
[in] | a | Starting point of the line. |
[in] | b | Ending point of the line. |
[in] | color_a | Color at the starting point. |
[in] | color_b | Color at the ending point. |
Draws a solid color line from point a to point b.
[in] | a | Starting point of the line. |
[in] | b | Ending point of the line. |
[in] | color | Color of the line. |
Draws a gradient color line from point a to point b.
[in] | a | Starting point of the line. |
[in] | b | Ending point of the line. |
[in] | color_a | Color at the starting point. |
[in] | color_b | Color at the ending point. |
Draws a solid color filled oval to a sprite.
[in] | to_sprite | Sprite to draw the oval on. |
[in] | color | Color of the oval. |
[in] | ll | Lower-left corner of the bounding box. |
[in] | ur | Upper-right corner of the bounding box. |
Draws a solid color filled oval to a sprite.
[in] | to_sprite | Sprite to draw the oval on. |
[in] | c | Center of the oval. |
[in] | r | Radii of the oval (x and y). |
[in] | color | Color of the oval. |
Draws a solid color filled oval.
[in] | c | Center of the oval. |
[in] | r | Radii of the oval (x and y). |
[in] | color | Color of the oval. |
Draws a solid color filled rectangle to a sprite.
[in] | to_sprite | Sprite to draw the rectangle on. |
[in] | ll | Lower-left corner of the rectangle. |
[in] | ur | Upper-right corner of the rectangle. |
[in] | color | Color of the rectangle. |
Draws a solid color filled rectangle.
[in] | ll | Lower-left corner of the rectangle. |
[in] | ur | Upper-right corner of the rectangle. |
[in] | color | Color of the 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 | ||
) |
Draws a textured triangle to a sprite.
[in] | to_sprite | Sprite to draw the triangle on. |
[in] | a | First vertex of the triangle. |
[in] | b | Second vertex of the triangle. |
[in] | c | Third vertex of the triangle. |
[in] | ta | Texture coordinate for the first vertex. |
[in] | tb | Texture coordinate for the second vertex. |
[in] | tc | Texture coordinate for the third vertex. |
[in] | texture | Texture to apply to the triangle. |
[in] | blending_mode | Blending mode for drawing the triangle. |
[in] | filter_mode | Filter mode for the texture. |
[in] | in_color | Color to multiply the texture with. |
Draws a solid color filled triangle to a sprite.
[in] | to_sprite | Sprite to draw the triangle on. |
[in] | a | First vertex of the triangle. |
[in] | b | Second vertex of the triangle. |
[in] | c | Third vertex of the triangle. |
[in] | color | Color of the triangle. |
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.
[in] | to_sprite | Sprite to draw the triangle on. |
[in] | a | First vertex of the triangle. |
[in] | b | Second vertex of the triangle. |
[in] | c | Third vertex of the triangle. |
[in] | color_a | Color at the first vertex. |
[in] | color_b | Color at the second vertex. |
[in] | color_c | Color at the third vertex. |
Draws a solid color filled triangle.
[in] | a | First vertex of the triangle. |
[in] | b | Second vertex of the triangle. |
[in] | c | Third vertex of the triangle. |
[in] | color | Color of the 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.
[in] | a | First vertex of the triangle. |
[in] | b | Second vertex of the triangle. |
[in] | c | Third vertex of the triangle. |
[in] | color_a | Color at the first vertex. |
[in] | color_b | Color at the second vertex. |
[in] | color_c | Color at the third vertex. |
Returns color of a pixel of a sprite at coordinates specified.
[in] | from_sprite | Sprite to get the pixel from. |
[in] | x | X-coordinate of the pixel. |
[in] | y | Y-coordinate of the pixel. |
Rgba arctic::GetPixel | ( | Si32 | x, |
Si32 | y | ||
) |
Returns color of a pixel at coordinates specified.
[in] | x | X-coordinate of the pixel. |
[in] | y | Y-coordinate of the pixel. |
Sets the new color to all the pixels of the old color.
[in] | to_sprite | Sprite to replace colors in. |
[in] | old_color | Color to be replaced. |
[in] | new_color | Color to replace with. |
Sets color of a pixel of a sprite at coordinates specified.
[in] | to_sprite | Sprite to set the pixel in. |
[in] | x | X-coordinate of the pixel. |
[in] | y | Y-coordinate of the pixel. |
[in] | color | Color to set the pixel to. |
void arctic::SetPixel | ( | Si32 | x, |
Si32 | y, | ||
Rgba | color | ||
) |
Sets color of a pixel at coordinates specified.
[in] | x | X-coordinate of the pixel. |
[in] | y | Y-coordinate of the pixel. |
[in] | color | Color to set the pixel to. |