RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
clrenderer.h
Go to the documentation of this file.
1 
2 //--------------------------------------------------------------- @License begins
3 // RioEngine: The late night Coke -without whores- debugging sessions
4 // 2012-2015 Leopoldo Lomas Flores. Torreon, Coahuila. MEXICO
5 // leopoldolomas [at] gmail
6 // www.rioengine.com
7 // www.leopoldolomas.info
8 // "You have a problem, you face it like a man."
9 //
10 // This is free and unencumbered software released into the public domain.
11 //
12 // Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
13 // software, either in source code form or as a compiled binary, for any purpose,
14 // commercial or non-commercial, and by any means.
15 //
16 // In jurisdictions that recognize copyright laws, the author or authors of this
17 // software dedicate any and all copyright interest in the software to the public
18 // domain. We make this dedication for the benefit of the public at large and to
19 // the detriment of our heirs and successors. We intend this dedication to be
20 // an overt act of relinquishment in perpetuity of all present and future
21 // rights to this software under copyright law.
22 //
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS
25 // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
27 // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //--------------------------------------------------------------- @License ends
30 
31 #ifndef RIOENGINE_CLENGINE_CLRENDERER_H_
32 #define RIOENGINE_CLENGINE_CLRENDERER_H_
33 
35 
36 class CLScene;
37 class QGLShaderProgram;
38 
39 class CLRenderer {
40 public:
41  static bool drawNode(QGLShaderProgram* program, CLScene* collada_scene, CLNode* node, QColor* color);
42  static bool drawLine(QGLShaderProgram* program, btVector3 &from, btVector3 &to, QColor* color);
43  static bool drawDebugLines(QGLShaderProgram* program, std::map<QString, std::vector<bDebugDraw::LineInfo>>* lines);
44 };
45 
46 #endif // RIOENGINE_CLENGINE_CLRENDERER_H_
static bool drawDebugLines(QGLShaderProgram *program, std::map< QString, std::vector< bDebugDraw::LineInfo >> *lines)
Definition: clrenderer.cpp:172
Definition: clnode.h:37
static bool drawLine(QGLShaderProgram *program, btVector3 &from, btVector3 &to, QColor *color)
Definition: clrenderer.cpp:143
static bool drawNode(QGLShaderProgram *program, CLScene *collada_scene, CLNode *node, QColor *color)
Definition: clrenderer.cpp:41