libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::OpenGLMapData Class Reference

#include <OpenGLMapData.h>

Public Member Functions

void AddAttrib (std::string attribName, GLint length, GLuint type, size_t positionOffset)
 
void AddNewElement (GLuint element)
 
void AddNewTexture (unsigned char *texture)
 
void AddNewVertex (GLfloat vertex)
 
void AddUniform (std::string uniformName, float value)
 
void BindBuffers ()
 
void clearData ()
 
void Draw ()
 
const glm::mat4 & GetModel () const
 
int GetNumOfVertices ()
 
const glm::mat4 & GetProjection () const
 
GLuint getShaderProgram ()
 
size_t GetTexturesSize ()
 
GLuint getVAO ()
 
int GetVerticesNumber ()
 
const glm::mat4 & GetView () const
 
bool InitContext ()
 
void LoadFragmentShader (std::string fileName)
 
void LoadProgram ()
 
void LoadVertexShader (std::string fileName)
 
void LoadVertices ()
 
void ScaleModel (float zoomSize)
 
void SetModel ()
 
void SetProjection (float width, float height)
 
void SetVerticesSize (int size)
 
void SetView (float lookX, float lookY)
 
void SwapData ()
 
 ~OpenGLMapData ()
 

Constructor & Destructor Documentation

osmscout::OpenGLMapData::~OpenGLMapData ( )
inline

Member Function Documentation

void osmscout::OpenGLMapData::AddAttrib ( std::string  attribName,
GLint  length,
GLuint  type,
size_t  positionOffset 
)
inline
void osmscout::OpenGLMapData::AddNewElement ( GLuint  element)
inline
void osmscout::OpenGLMapData::AddNewTexture ( unsigned char *  texture)
inline
void osmscout::OpenGLMapData::AddNewVertex ( GLfloat  vertex)
inline
void osmscout::OpenGLMapData::AddUniform ( std::string  uniformName,
float  value 
)
inline
void osmscout::OpenGLMapData::BindBuffers ( )
inline
void osmscout::OpenGLMapData::clearData ( )
inline
void osmscout::OpenGLMapData::Draw ( )
inline
const glm::mat4& osmscout::OpenGLMapData::GetModel ( ) const
inline
int osmscout::OpenGLMapData::GetNumOfVertices ( )
inline
const glm::mat4& osmscout::OpenGLMapData::GetProjection ( ) const
inline
GLuint osmscout::OpenGLMapData::getShaderProgram ( )
inline
size_t osmscout::OpenGLMapData::GetTexturesSize ( )
inline
GLuint osmscout::OpenGLMapData::getVAO ( )
inline
int osmscout::OpenGLMapData::GetVerticesNumber ( )
inline
const glm::mat4& osmscout::OpenGLMapData::GetView ( ) const
inline
bool osmscout::OpenGLMapData::InitContext ( )
inline
void osmscout::OpenGLMapData::LoadFragmentShader ( std::string  fileName)
inline
void osmscout::OpenGLMapData::LoadProgram ( )
inline
void osmscout::OpenGLMapData::LoadVertexShader ( std::string  fileName)
inline
void osmscout::OpenGLMapData::LoadVertices ( )
inline
void osmscout::OpenGLMapData::ScaleModel ( float  zoomSize)
inline

References SetModel().

void osmscout::OpenGLMapData::SetModel ( )
inline

Referenced by ScaleModel().

void osmscout::OpenGLMapData::SetProjection ( float  width,
float  height 
)
inline
void osmscout::OpenGLMapData::SetVerticesSize ( int  size)
inline
void osmscout::OpenGLMapData::SetView ( float  lookX,
float  lookY 
)
inline
void osmscout::OpenGLMapData::SwapData ( )
inline

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