00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00025 #ifndef _LETTER_CDT_TEST_2DRENDER_H_ 00026 #define _LETTER_CDT_TEST_2DRENDER_H_ 00027 00028 #include <vector> 00029 00030 #include "Point.h" 00031 #include "Line.h" 00032 00033 namespace LetterCDT 00034 { 00035 00044 class LetterCDTTest2dRender 00045 { 00046 public: 00048 LetterCDTTest2dRender(void); 00049 00051 ~LetterCDTTest2dRender(void); 00052 00056 void LoadPresetConfiguration(int width, int height); 00057 00059 void BeginFrame(void); 00060 00065 void SetMaterial(float red, float green, float blue); 00066 00070 void DrawPoints(const std::vector<Point>& points); 00071 00074 void DrawLines(const std::vector<Line>& lines); 00075 00076 void DrawTriangles(const std::vector<Point>& points, 00077 const std::vector<int>& indices); 00078 00080 void EndFrame(void); 00081 00082 private: 00084 const float m_depth; 00085 00087 const float m_pointSize; 00088 00090 LetterCDTTest2dRender(const LetterCDTTest2dRender&); 00091 00093 LetterCDTTest2dRender& operator=(const LetterCDTTest2dRender&); 00094 }; 00095 00096 } 00097 00098 #endif
1.5.9