SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
Namespaces | Enumerations | Functions
gl_helpers.h File Reference
#include <iostream>
#include <map>
#include "image_ref.h"
#include "image.h"
#include "byte.h"
#include "rgb.h"
#include "rgb8.h"
#include "rgba.h"
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#include "gl_types.h"
#include "TooN.h"
#include "se3.h"
#include "so3.h"
#include "se2.h"
#include "so2.h"

Go to the source code of this file.

Namespaces

 CVD
 

Enumerations

enum  CVD::TEXT_STYLE { CVD::FILL = 0, CVD::OUTLINE = 1, CVD::NICE = 2 }
 different style for font rendering More...
 

Functions

void CVD::glVertex (const ImageRef &i)
 
void CVD::glTexCoord (const ImageRef &i)
 
void CVD::glRasterPos (const ImageRef &i)
 
void CVD::glRect (const ImageRef &p, const ImageRef &q)
 
void CVD::glVertex (const TooN::Vector< 2 > &v)
 
void CVD::glVertex (const TooN::Vector< 3 > &v)
 
void CVD::glVertex (const TooN::Vector< 4 > &v)
 
void CVD::glTexCoord (const TooN::Vector< 2 > &v)
 
void CVD::glTexCoord (const TooN::Vector< 3 > &v)
 
void CVD::glTexCoord (const TooN::Vector< 4 > &v)
 
void CVD::glRect (const TooN::Vector< 2 > &p, const TooN::Vector< 2 > &q)
 
void CVD::glRasterPos (const TooN::Vector< 2 > &v)
 
void CVD::glRasterPos (const TooN::Vector< 3 > &v)
 
void CVD::glRasterPos (const TooN::Vector< 4 > &v)
 
void CVD::glNormal (const TooN::Vector< 3 > &n)
 
void CVD::glTranslate (const ImageRef &v)
 
template<int N>
void CVD::glTranslate (const TooN::Vector< N > &v)
 
template<>
void CVD::glTranslate (const TooN::Vector< 2 > &v)
 
template<>
void CVD::glTranslate (const TooN::Vector< 1 > &v)
 
template<int N, class P , class A >
void CVD::glMultMatrix (const TooN::Matrix< N, N, P, A > &m)
 
template<class P , class A >
void CVD::glMultMatrix (const TooN::Matrix< 3, 3, P, A > &m)
 
template<class P , class A >
void CVD::glMultMatrix (const TooN::Matrix< 2, 2, P, A > &m)
 
template<typename P >
void CVD::glMultMatrix (const TooN::SO3< P > &so3)
 
template<typename P >
void CVD::glMultMatrix (const TooN::SE3< P > &se3)
 
template<typename P >
void CVD::glMultMatrix (const TooN::SO2< P > &so2)
 
template<typename P >
void CVD::glMultMatrix (const TooN::SE2< P > &se2)
 
void CVD::glOrtho (const CVD::ImageRef &size, const double nearPlane=-1.0, const double farPlane=1.0)
 
void CVD::glOrtho (const TooN::Vector< 6 > &param)
 
template<typename P , typename A >
void CVD::glFrustum (const TooN::Vector< 4, P, A > &params, double width, double height, double nearPlane=0.1, double farPlane=100)
 
template<class CAMERA >
void CVD::glFrustum (const CAMERA &camera, double width, double height, double nearPlane=0.1, double farPlane=100)
 
void CVD::glFrustum (const TooN::Vector< 6 > &param)
 
void CVD::glColor (const TooN::Vector< 3 > &v)
 
void CVD::glColor (const TooN::Vector< 4 > &v)
 
void CVD::glClearColor (const TooN::Vector< 4 > &v)
 
void CVD::glClearColor (const TooN::Vector< 3 > &v)
 
void CVD::glColor (const TooN::Vector<-1 > &v)
 
template<class P1 , class P2 >
void CVD::glLine (const P1 &x1, const P2 &x2)
 
template<class C >
void CVD::glVertex (const C &list)
 
void CVD::glColor (const CVD::Rgb< byte > &c)
 
void CVD::glColor (const CVD::Rgb< float > &c)
 
void CVD::glColor3 (const CVD::Rgb8 &c)
 
void CVD::glColor4 (const CVD::Rgb8 &c)
 
void CVD::glColor (const CVD::Rgba< unsigned char > &c)
 
void CVD::glColor (const CVD::Rgba< float > &c)
 
template<class C >
void CVD::glDrawPixels (const SubImage< C > &i)
 
template<class C >
void CVD::glReadPixels (BasicImage< C > &i, ImageRef origin=ImageRef(0, 0))
 
template<class C >
Image< C > CVD::glReadPixels (ImageRef size, ImageRef origin=ImageRef(0, 0))
 
template<class C >
void CVD::glTexSubImage2D (const SubImage< C > &i, GLint xoffset=0, GLint yoffset=0, GLenum target=GL_TEXTURE_2D, GLint level=0)
 
template<class C >
void CVD::glTexImage2D (const SubImage< C > &i, GLint border=0, GLenum target=GL_TEXTURE_2D, GLint level=0)
 
void CVD::glPrintErrors (void)
 
void CVD::glSetFont (const std::string &fontname)
 
const std::string & CVD::glGetFont ()
 returns the name of the currently active font More...
 
std::pair< double, double > CVD::glDrawText (const std::string &text, enum TEXT_STYLE style=NICE, double spacing=1.5, double kerning=0.1)
 
std::pair< double, double > CVD::glGetExtends (const std::string &text, double spacing=1.5, double kerning=0.1)
 returns the size of the bounding box of a text to be rendered, similar to glDrawText but without any visual output More...