![]() |
Maria GDK 5.0.0.760
Documentation of native code in develop branch
|
#include <M3DSurfacePolygonsRenderer.h>
Public Member Functions | |
SurfacePolygonsRenderer (LocalOrigin *localOrigin, STK::ShaderProgramManager *shaderManager) | |
void | redraw (const STK::Camera &cam, const STK::Viewport &vp) |
void | addPolygon (const Maria::ItemId &id, const std::shared_ptr< SurfacePolygon > &poly) |
Protected Member Functions | |
bool | initShaders () |
Protected Attributes | |
std::shared_ptr< LocalOrigin > | _localOrigin |
std::map< Maria::ItemId, std::shared_ptr< SurfacePolygon > > | _polygonRenders |
std::shared_ptr< STK::ShaderProgramManager > | _shaderManager |
std::shared_ptr< STK::ShaderProgram > | _polygonShader |
std::shared_ptr< STK::VertexBufferP > | quad_vtx_ |
SurfacePolygonsRenderer - Render polygons projected onto the terrain surface. This class renders polygons on the terrain surface using a shadow mapping technique. This gives high accuracy and crisp borders compared to texture mapped polygons.
Only simple colored polygons are supported by this method.