AlpacaLibary  1.63
A closed source C++ bot for OSRS
Paint.hpp
Go to the documentation of this file.
1 #ifndef PAINT_HPP_INCLUDED
2 #define PAINT_HPP_INCLUDED
3 
4 #include <vector>
5 #include "Types/Convex.hpp"
6 #include "Types/Tile.hpp"
7 
8 namespace Paint
9 {
10  struct Pixel
11  {
12  std::uint8_t Red;
13  std::uint8_t Green;
14  std::uint8_t Blue;
15  std::uint8_t Alpha;
16  };
17 
18  std::uint32_t* GetPixels();
19  void Clear();
20  void DrawDot(const Point& P, double Radius, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
21  void DrawPoint(const Point& P, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
22  void DrawPoints(const std::vector<Point>& Points, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
23  void DrawLine(const Point& A, const Point& B, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
24  void DrawLines(const std::vector<Point>& A, const std::vector<Point>& B, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
25  void DrawBox(const Box& B, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
26  void DrawSquare(const Box& B, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
27  void DrawConvex(const Convex& C, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
28  void DrawTile(const Tile& T, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
29  void DrawModel(const std::vector<Point>& Model, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
30  void DrawString(const std::string& String, const Point& P, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha);
31  void DrawPixels(const std::vector<Pixel> Pixels, std::uint32_t Width, std::uint32_t Height, const Point& P);
32  void SwapBuffer();
33 }
34 
35 #endif // PAINT_HPP_INCLUDED
Definition: Box.hpp:11
Definition: Convex.hpp:9
Definition: Point.hpp:10
Definition: Tile.hpp:8
Definition: Paint.hpp:9
void DrawModel(const std::vector< Point > &Model, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void DrawPixels(const std::vector< Pixel > Pixels, std::uint32_t Width, std::uint32_t Height, const Point &P)
void DrawBox(const Box &B, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void DrawLines(const std::vector< Point > &A, const std::vector< Point > &B, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void DrawConvex(const Convex &C, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void DrawLine(const Point &A, const Point &B, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void DrawString(const std::string &String, const Point &P, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void Clear()
std::uint32_t * GetPixels()
void SwapBuffer()
void DrawSquare(const Box &B, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void DrawTile(const Tile &T, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void DrawPoints(const std::vector< Point > &Points, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void DrawDot(const Point &P, double Radius, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
void DrawPoint(const Point &P, std::uint8_t Red, std::uint8_t Green, std::uint8_t Blue, std::uint8_t Alpha)
std::uint8_t Red
Definition: Paint.hpp:12
std::uint8_t Blue
Definition: Paint.hpp:14
std::uint8_t Green
Definition: Paint.hpp:13
std::uint8_t Alpha
Definition: Paint.hpp:15