![]() |
Maria GDK 5.0.0.760
Documentation of native code in develop branch
|
#include <M3DSurfacePolygon.h>
Public Member Functions | |
SurfacePolygon (const STK::Polygon3d &geo, const STK::Vector4f &col) | |
void | setColor (const STK::Vector4f &c) |
const STK::Vector4f & | getColor () const |
void | setGeometry (const STK::Polygon3d &poly) |
Geometry is given as Lon,Lat points. | |
const STK::Polygon3d & | getGeometry () 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 |
SurfacePolygon - A polygon projected onto the terrain.