SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Texture2D.h
Go to the documentation of this file.
1 
7 #ifndef __SCV_TEXTURE_2D_H__
8 #define __SCV_TEXTURE_2D_H__
9 
10 #ifndef DOXYGEN_SKIP_THIS
11 #include "TextureInterface.h"
12 #include "MatrixTemplate.h"
13 #include "ColorRGBA.h"
14 #endif // DOXYGEN_SKIP_THIS
15 
16 namespace scv {
17 
19 class Texture2D : public TextureInterface {
20 public:
21  // Draw functions
22  static void drawPoint(MatrixTemplate<ColorRGBA>& matrix, const scv::Point &p, const ColorRGBA& color);
23  static void rect(MatrixTemplate<ColorRGBA>& matrix, const scv::Point &p1, const scv::Point &p2, const ColorRGBA& color);
24  static void rect(MatrixTemplate<ColorRGBA>& matrix, const scv::Point &p1, const scv::Point &p2, const ColorRGBA& color, int thickness);
25  static void rectFill(MatrixTemplate<ColorRGBA>& matrix, const scv::Point &p1, const scv::Point &p2, const ColorRGBA& color);
26  static void rectFill(MatrixTemplate<ColorRGBA>& matrix, const scv::Point &p1, const scv::Point &p2, const ColorRGBA& colorBorder, const ColorRGBA& colorFill);
27  static void line(MatrixTemplate<ColorRGBA>& matrix, Point p1, Point p2, const ColorRGBA& color);
28 };
29 
30 } // namespace scv
31 
32 #endif // __SCV_TEXTURE_2D_H__