vcg::gl_surface Class Reference

#include <gl_surface.h>

List of all members.

Public Types

typedef gl_surface this_type

Public Member Functions

bool begin_read_color (int attachment)
bool begin_read_depth (void)
bool begin_write (void)
bool clear (void)
int color_attachments_count (void) const
bool draw_color_attachment (int x, int y, int width, int height, int attachment)
bool draw_depth_attachment (int x, int y, int width, int height)
bool end_read_color (int attachment)
bool end_read_depth (void)
bool end_write (void)
GLenum get_color_attachment_format (int attachment) const
bool get_color_pixels (int attachment, GLenum format, GLenum type, void *pixels)
GLenum get_depth_attachment_format (void) const
bool get_depth_pixels (GLenum format, GLenum type, void *pixels)
int get_height (void) const
int get_width (void) const
 gl_surface (void)
bool has_depth_attachment (void) const
bool is_valid (void) const
bool set (int width, int height, const std::vector< GLenum > &color_formats, GLenum depth_format)
bool set_color_only (int width, int height, const std::vector< GLenum > &color_formats)
bool set_color_only (int width, int height, GLenum color_format)
bool set_color_pixels (int attachment, GLenum format, GLenum type, const void *pixels)
bool set_depth_only (int width, int height, GLenum depth_format)
bool set_depth_pixels (GLenum format, GLenum type, const void *pixels)
bool set_simple (int width, int height)
 ~gl_surface (void)

Protected Attributes

std::vector< GLenum > color_formats
std::vector< GLuint > color_texs
GLenum depth_format
GLuint depth_tex
GLuint fb
int height
int width

Detailed Description

Definition at line 140 of file gl_surface.h.


Member Typedef Documentation

Definition at line 144 of file gl_surface.h.


Constructor & Destructor Documentation

vcg::gl_surface::gl_surface ( void   )  [inline]

Definition at line 146 of file gl_surface.h.

vcg::gl_surface::~gl_surface ( void   )  [inline]

Definition at line 151 of file gl_surface.h.


Member Function Documentation

bool vcg::gl_surface::begin_read_color ( int  attachment  )  [inline]

Definition at line 385 of file gl_surface.h.

bool vcg::gl_surface::begin_read_depth ( void   )  [inline]

Definition at line 405 of file gl_surface.h.

bool vcg::gl_surface::begin_write ( void   )  [inline]

Definition at line 425 of file gl_surface.h.

bool vcg::gl_surface::clear ( void   )  [inline]

Definition at line 274 of file gl_surface.h.

int vcg::gl_surface::color_attachments_count ( void   )  const [inline]

Definition at line 316 of file gl_surface.h.

bool vcg::gl_surface::draw_color_attachment ( int  x,
int  y,
int  width,
int  height,
int  attachment 
) [inline]

Definition at line 449 of file gl_surface.h.

bool vcg::gl_surface::draw_depth_attachment ( int  x,
int  y,
int  width,
int  height 
) [inline]

Definition at line 486 of file gl_surface.h.

bool vcg::gl_surface::end_read_color ( int  attachment  )  [inline]

Definition at line 395 of file gl_surface.h.

bool vcg::gl_surface::end_read_depth ( void   )  [inline]

Definition at line 415 of file gl_surface.h.

bool vcg::gl_surface::end_write ( void   )  [inline]

Definition at line 438 of file gl_surface.h.

GLenum vcg::gl_surface::get_color_attachment_format ( int  attachment  )  const [inline]

Definition at line 321 of file gl_surface.h.

bool vcg::gl_surface::get_color_pixels ( int  attachment,
GLenum  format,
GLenum  type,
void *  pixels 
) [inline]

Definition at line 353 of file gl_surface.h.

GLenum vcg::gl_surface::get_depth_attachment_format ( void   )  const [inline]

Definition at line 334 of file gl_surface.h.

bool vcg::gl_surface::get_depth_pixels ( GLenum  format,
GLenum  type,
void *  pixels 
) [inline]

Definition at line 374 of file gl_surface.h.

int vcg::gl_surface::get_height ( void   )  const [inline]

Definition at line 311 of file gl_surface.h.

int vcg::gl_surface::get_width ( void   )  const [inline]

Definition at line 306 of file gl_surface.h.

bool vcg::gl_surface::has_depth_attachment ( void   )  const [inline]

Definition at line 329 of file gl_surface.h.

bool vcg::gl_surface::is_valid ( void   )  const [inline]

Definition at line 301 of file gl_surface.h.

bool vcg::gl_surface::set ( int  width,
int  height,
const std::vector< GLenum > &  color_formats,
GLenum  depth_format 
) [inline]

Definition at line 156 of file gl_surface.h.

bool vcg::gl_surface::set_color_only ( int  width,
int  height,
const std::vector< GLenum > &  color_formats 
) [inline]

Definition at line 262 of file gl_surface.h.

bool vcg::gl_surface::set_color_only ( int  width,
int  height,
GLenum  color_format 
) [inline]

Definition at line 254 of file gl_surface.h.

bool vcg::gl_surface::set_color_pixels ( int  attachment,
GLenum  format,
GLenum  type,
const void *  pixels 
) [inline]

Definition at line 342 of file gl_surface.h.

bool vcg::gl_surface::set_depth_only ( int  width,
int  height,
GLenum  depth_format 
) [inline]

Definition at line 267 of file gl_surface.h.

bool vcg::gl_surface::set_depth_pixels ( GLenum  format,
GLenum  type,
const void *  pixels 
) [inline]

Definition at line 364 of file gl_surface.h.

bool vcg::gl_surface::set_simple ( int  width,
int  height 
) [inline]

Definition at line 246 of file gl_surface.h.


Member Data Documentation

std::vector<GLenum> vcg::gl_surface::color_formats [protected]

Definition at line 527 of file gl_surface.h.

std::vector<GLuint> vcg::gl_surface::color_texs [protected]

Definition at line 528 of file gl_surface.h.

GLenum vcg::gl_surface::depth_format [protected]

Definition at line 529 of file gl_surface.h.

GLuint vcg::gl_surface::depth_tex [protected]

Definition at line 530 of file gl_surface.h.

GLuint vcg::gl_surface::fb [protected]

Definition at line 531 of file gl_surface.h.

int vcg::gl_surface::height [protected]

Definition at line 526 of file gl_surface.h.

int vcg::gl_surface::width [protected]

Definition at line 525 of file gl_surface.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:00 2013