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 (OpenGLTextureRef 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 ()
 
GLuint GetTexture ()
 
int GetTextureHeight ()
 
int GetTextureWidth ()
 
int GetTextureWidth (int index)
 
int GetTextureWidthSum (int index)
 
GLuint getVAO ()
 
int GetVerticesNumber ()
 
const glm::mat4 & GetView () const
 
bool InitContext ()
 
void LoadFragmentShader (std::string fileName)
 
void LoadGreyTextures ()
 
void LoadProgram ()
 
void LoadTextures ()
 
void LoadVertexShader (std::string fileName)
 
void LoadVertices ()
 
void SetModel ()
 
void SetProjection (float width, float height)
 
void SetTextureHeight (int textheight)
 
void SetVerticesSize (int size)
 
void SetView (float, float)
 
void SwapData ()
 
void SwapData (int stride)
 
 ~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 ( OpenGLTextureRef  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
GLuint osmscout::OpenGLMapData::GetTexture ( )
inline
int osmscout::OpenGLMapData::GetTextureHeight ( )
inline
int osmscout::OpenGLMapData::GetTextureWidth ( )
inline
int osmscout::OpenGLMapData::GetTextureWidth ( int  index)
inline
int osmscout::OpenGLMapData::GetTextureWidthSum ( int  index)
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::LoadGreyTextures ( )
inline
void osmscout::OpenGLMapData::LoadProgram ( )
inline
void osmscout::OpenGLMapData::LoadTextures ( )
inline
void osmscout::OpenGLMapData::LoadVertexShader ( std::string  fileName)
inline
void osmscout::OpenGLMapData::LoadVertices ( )
inline
void osmscout::OpenGLMapData::SetModel ( )
inline
void osmscout::OpenGLMapData::SetProjection ( float  width,
float  height 
)
inline
void osmscout::OpenGLMapData::SetTextureHeight ( int  textheight)
inline
void osmscout::OpenGLMapData::SetVerticesSize ( int  size)
inline
void osmscout::OpenGLMapData::SetView ( float  ,
float   
)
inline
void osmscout::OpenGLMapData::SwapData ( )
inline
void osmscout::OpenGLMapData::SwapData ( int  stride)
inline

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