eXperiment robotics framework

erf_opengl.hpp File Reference

> OpenGL utilities More...

#include <GL/glew.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <fltk/gl.h>
#include <fltk/events.h>
#include <boost/shared_ptr.hpp>
#include <list>
#include <iostream>
#include <erf_xml.hpp>
#include <erf_vec3.hpp>
#include <erf_quaternion.hpp>
#include <erf_manager_glnames.hpp>
#include <erf_tags.hpp>
#include <erf_frame.hpp>
#include "config.h"
#include <fltk/GlWindow.h>
#include <stdarg.h>
#import <opencv/cv.h>
#import <opencv/highgui.h>
#include <fltk/SharedImage.h>

Include dependency graph for erf_opengl.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Hit
 A click on the world is a Hit. More...
class  WorldEventHandler
 A world event handler is responsible for handling world actions, i.e. More...

Defines

#define INIT_PICKING
 contains common code to OpenGL picking operations.
#define printOpenGLError()   printOglError(__FILE__, __LINE__)
#define BUFFER_OFFSET(i)   ((char *)NULL + (i))

Functions

void getWindowXY (const GLdouble wx, const GLdouble wy, const GLdouble wz, GLdouble &xp, GLdouble &yp, GLdouble &zp)
 get the projection on the window(2d) of the world coordinates(3d), i.e.
void getWorldXYZ (const GLint xp, const GLint yp, GLdouble &wx, GLdouble &wy, GLdouble &wz)
 get the world coordinates of a point.
void getWorldXYZ (const GLint xp, const GLint yp, const GLdouble zp, GLdouble &wx, GLdouble &wy, GLdouble &wz)
 get the world coordinates of a point.
template<class Num_T>
void P_MATRIX_GL (const int r, const int c, const Num_T *glmatrix)
bool glew_check ()
int printOglError (char *file, int line)
void CheckErrorsGL (const char *location, ostream &os)


Detailed Description

> OpenGL utilities

Definition in file erf_opengl.hpp.


Define Documentation

#define BUFFER_OFFSET (  )     ((char *)NULL + (i))

#define INIT_PICKING

Value:

GLdouble model[4*4]; \
 GLdouble proj[4*4]; \
 GLint view[4]; \
 glGetDoublev(GL_MODELVIEW_MATRIX, model); \
 glGetDoublev(GL_PROJECTION_MATRIX, proj); \
 glGetIntegerv(GL_VIEWPORT, view);
contains common code to OpenGL picking operations.

Definition at line 37 of file erf_opengl.hpp.

 
#define printOpenGLError (  )     printOglError(__FILE__, __LINE__)

Definition at line 79 of file erf_opengl.hpp.


Function Documentation

void CheckErrorsGL ( const char *  location,
ostream &  os 
)

bool glew_check (  ) 

template<class Num_T>
void P_MATRIX_GL ( const int  r,
const int  c,
const Num_T *  glmatrix 
) [inline]

int printOglError ( char *  file,
int  line 
)


The miarn project - written by Joao Xavier