Functions
core/vgui/vgui_section_render.cxx File Reference
#include "vgui_section_render.h"
#include <vcl_cmath.h>
#include <vcl_cassert.h>
#include <vcl_climits.h>
#include <vgui/internals/vgui_rasterpos.h>
#include <vgui/internals/vgui_accelerate.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, vbl_array_1d< float > *fLmap, vbl_array_1d< float > *fRmap, vbl_array_1d< float > *fGmap, vbl_array_1d< float > *fBmap, vbl_array_1d< float > *fAmap)
 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, vbl_array_1d< float > *fLmap, vbl_array_1d< float > *fRmap, vbl_array_1d< float > *fGmap, vbl_array_1d< float > *fBmap, vbl_array_1d< float > *fAmap)

Detailed Description

Author:
fsm

Definition in file vgui_section_render.cxx.


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,
vbl_array_1d< float > *  fLmap,
vbl_array_1d< float > *  fRmap,
vbl_array_1d< float > *  fGmap,
vbl_array_1d< float > *  fBmap,
vbl_array_1d< float > *  fAmap 
)

Definition at line 259 of file vgui_section_render.cxx.