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

#include <M3DSurfacePolygon.h>

Public Member Functions

 SurfacePolygon (const STK::Polygon3d &geo, const STK::Vector4f &col)
 
void setColor (const STK::Vector4f &c)
 
const STK::Vector4fgetColor () const
 
void setGeometry (const STK::Polygon3d &poly)
 Geometry is given as Lon,Lat points.
 
const STK::Polygon3dgetGeometry () const
 
void render (const STK::Camera &cam, STK::ShaderProgram &shader, const LocalOrigin &localOrigin)
 
void clearBuffers ()
 

Protected Member Functions

bool calcBuffers ()
 

Protected Attributes

STK::Vector4f _color
 
GLuint _vtxBuffer
 
GLuint _idxBuffer
 
int _idxBufferSize
 
STK::Vector3d _origin
 
STK::Polygon3d _geometry
 

Detailed Description

SurfacePolygon - A polygon projected onto the terrain.


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