Maria GDK 5.0.0.760
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria3D::SurfacePolygonsRenderer Class Reference

#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::VertexBufferPquad_vtx_
 

Detailed Description

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.


The documentation for this class was generated from the following files: