#include <iostream>
#include <map>
#include <cvd/image_ref.h>
#include <cvd/image.h>
#include <cvd/byte.h>
#include <cvd/rgb.h>
#include <cvd/rgb8.h>
#include <cvd/rgba.h>
#include <cvd/config.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <cvd/internal/gl_types.h>
#include <cvd/la.h>
Go to the source code of this file.
Namespaces | |
namespace | CVD |
Enumerations | |
enum | CVD::TEXT_STYLE { CVD::FILL = 0, CVD::OUTLINE = 1, CVD::NICE = 2 } |
different style for font rendering More... | |
Functions | |
void | CVD::glColor (const CVD::Rgba< float > &c) |
void | CVD::glColor (const CVD::Rgba< unsigned char > &c) |
void | CVD::glColor (const CVD::Rgb< float > &c) |
void | CVD::glColor (const CVD::Rgb< byte > &c) |
void | CVD::glColor3 (const CVD::Rgb8 &c) |
void | CVD::glColor4 (const CVD::Rgb8 &c) |
template<class C > | |
void | CVD::glDrawPixels (const SubImage< C > &i) |
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 | |
const std::string & | CVD::glGetFont () |
returns the name of the currently active font | |
template<class P1 , class P2 > | |
void | CVD::glLine (const P1 &x1, const P2 &x2) |
void | CVD::glPrintErrors (void) |
void | CVD::glRasterPos (const ImageRef &i) |
template<class C > | |
Image< C > | CVD::glReadPixels (ImageRef size, ImageRef origin=ImageRef(0, 0)) |
template<class C > | |
void | CVD::glReadPixels (BasicImage< C > &i, ImageRef origin=ImageRef(0, 0)) |
void | CVD::glRect (const ImageRef &p, const ImageRef &q) |
void | CVD::glSetFont (const std::string &fontname) |
void | CVD::glTexCoord (const ImageRef &i) |
template<class C > | |
void | CVD::glTexImage2D (const SubImage< C > &i, GLint border=0, GLenum target=GL_TEXTURE_2D, GLint level=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::glVertex (const C &list) |
void | CVD::glVertex (const ImageRef &i) |