|
Apollo 11.0
自动驾驶开放平台
|
#include <grid.h>
Public 成员函数 | |
| Grid (int cellCountBySide=1) | |
| ~Grid () | |
| GLenum | GetPrimitiveType (void) const |
| void | SetupExtraUniforms (void) |
| int | red (void) const |
| int | green (void) const |
| int | blue (void) const |
| const QColor & | grid_color (void) const |
| void | set_grid_color (const QColor &color) |
| void | SetCellCount (int cellCount) |
| int | CellCount (void) const |
Public 成员函数 继承自 RenderableObject | |
| RenderableObject (int vertex_count=1, int vertex_element_count=3, const std::shared_ptr< QOpenGLShaderProgram > &shaderProgram=NullRenderableObj) | |
| virtual | ~RenderableObject (void) |
| bool | is_renderable (void) const |
| void | set_is_renderable (bool b) |
| int | vertex_count (void) const |
| void | set_vertex_count (int vertexCount) |
| int | vertex_element_count (void) const |
| void | set_vertex_element_count (int vertexElementCount) |
| int | VertexBufferSize (void) const |
| void | set_shader_program (const std::shared_ptr< QOpenGLShaderProgram > &shaderProgram) |
| bool | haveShaderProgram (void) |
| bool | Init (std::shared_ptr< QOpenGLShaderProgram > &shaderProgram=NullRenderableObj) |
| void | Destroy (void) |
| void | Render (const QMatrix4x4 *mvp=nullptr) |
Protected 成员函数 | |
| virtual bool | FillVertexBuffer (GLfloat *pBuffer) |
Protected 成员函数 继承自 RenderableObject | |
| virtual void | Draw (void) |
| virtual void | SetupAllAttrPointer (void) |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 RenderableObject | |
| static std::shared_ptr< QOpenGLShaderProgram > | CreateShaderProgram (const QString &vertexShaderFileName, const QString &fragShaderFileName) |
静态 Public 属性 继承自 RenderableObject | |
| static std::shared_ptr< QOpenGLShaderProgram > | NullRenderableObj |
Protected 属性 继承自 RenderableObject | |
| bool | is_init_ |
| bool | is_renderable_ |
| int | vertex_count_ |
| int | vertex_element_count_ |
| std::shared_ptr< QOpenGLShaderProgram > | shader_program_ |
| QOpenGLVertexArrayObject | vao_ |
| QOpenGLBuffer | vbo_ |
|
explicit |
|
inline |
|
protectedvirtual |
实现了 RenderableObject.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
重载 RenderableObject .