Functions
core/vgui/vgui_section_render.h File Reference
#include <vgui/vgui_gl.h>
#include <vbl/vbl_array_1d.h>

Go to the source code of this file.

Functions

bool pixel_view (unsigned &i0, unsigned &ni, unsigned &j0, unsigned &nj, float &zoomx, float &zoomy)
 Get the required image view given the state of the viewport and scale.
bool vgui_section_render (void const *pixels, unsigned w, unsigned h, float x0, float y0, float x1, float y1, GLenum format, GLenum type, bool hardware_map=false, vbl_array_1d< float > *fLmap=0, vbl_array_1d< float > *fRmap=0, vbl_array_1d< float > *fGmap=0, vbl_array_1d< float > *fBmap=0, vbl_array_1d< float > *fAmap=0)
 Render the pixels onto the frame buffer.
bool vgui_view_render (void const *pixels, unsigned w, unsigned h, float zoomx, float zoomy, GLenum format, GLenum type, bool hardware_map=false, vbl_array_1d< float > *fLmap=0, vbl_array_1d< float > *fRmap=0, vbl_array_1d< float > *fGmap=0, vbl_array_1d< float > *fBmap=0, vbl_array_1d< float > *fAmap=0)

Detailed Description

Author:
fsm

Definition in file vgui_section_render.h.


Function Documentation

bool pixel_view ( unsigned &  i0,
unsigned &  ni,
unsigned &  j0,
unsigned &  nj,
float &  zoomx,
float &  zoomy 
)

Get the required image view given the state of the viewport and scale.

Definition at line 134 of file vgui_section_render.cxx.

bool vgui_section_render ( void const *  pixels,
unsigned  w,
unsigned  h,
float  x0,
float  y0,
float  x1,
float  y1,
GLenum  format,
GLenum  type,
bool  hardware_map = false,
vbl_array_1d< float > *  fLmap = 0,
vbl_array_1d< float > *  fRmap = 0,
vbl_array_1d< float > *  fGmap = 0,
vbl_array_1d< float > *  fBmap = 0,
vbl_array_1d< float > *  fAmap = 0 
)

Render the pixels onto the frame buffer.

This renders the portion of the image within (x0,y0)-(x1,y1). The whole image is rendered if (x0,y0)==(0,0) and (x1,y1)==(w,h). (Actually, for efficiency, only the portion overlapping the viewport is ever rendered.) format and type encode the data encoding in pixels. pixels is assumed to store a row-ordered set of byte-aligned values.

Definition at line 211 of file vgui_section_render.cxx.

bool vgui_view_render ( void const *  pixels,
unsigned  w,
unsigned  h,
float  zoomx,
float  zoomy,
GLenum  format,
GLenum  type,
bool  hardware_map = false,
vbl_array_1d< float > *  fLmap = 0,
vbl_array_1d< float > *  fRmap = 0,
vbl_array_1d< float > *  fGmap = 0,
vbl_array_1d< float > *  fBmap = 0,
vbl_array_1d< float > *  fAmap = 0 
)

Definition at line 259 of file vgui_section_render.cxx.