#include <gl_view.H>
Collaboration diagram for GL_VIEW:
Public Member Functions | |
GL_VIEW () | |
virtual | ~GL_VIEW () |
virtual void | set_size (int w, int h, int x, int y) |
virtual void | set_cursor (int i) |
virtual int | get_cursor () |
virtual void | set_stereo (stereo_mode m) |
virtual void | set_focus () |
virtual int | paint () |
virtual void | swap_buffers () |
virtual void | prepare_buf_read () |
virtual void | end_buf_read () |
virtual void | read_pixels (uchar *, bool alpha=false) |
virtual int | stencil_draw (STENCILCB *, GELlist *objs=0) |
virtual void | draw_bb (mlib::CWpt_list &) const |
Static Public Member Functions | |
static double | gl_version () |
static bool | poly_ext_available () |
static void | init_polygon_offset () |
static void | init_polygon_offset (float factor, float units, GLenum mode=GL_POLYGON_OFFSET_FILL) |
static void | end_polygon_offset () |
static void | init_point_smooth (GLfloat size, GLbitfield mask=0, GLfloat *a=0) |
static void | init_line_smooth (GLfloat width, GLbitfield mask=0, GLfloat *a=0) |
static void | end_point_smooth () |
static void | end_line_smooth () |
static void | draw_pts (mlib::CWpt_list &pts, CCOLOR &color, double alpha, double size) |
static void | draw_wpt_list (mlib::CWpt_list &pts, CCOLOR &color, double alpha, double width, bool do_stipple) |
static void | draw_lines (CARRAY< mlib::Wline > &lines, CCOLOR &color, double alpha, double width, bool do_stipple) |
static int | depth_compare (const void *a, const void *b) |
static bool | print_gl_errors (Cstr_ptr &) |
Protected Member Functions | |
void | setup_light (int i) |
virtual void | setup_lights (CAMdata::eye=CAMdata::MIDDLE) |
virtual void | sort_blended_objects (CGELlist &) |
virtual void | clear_draw_buffer () |
virtual void | setup_stencil () |
virtual void | setup_scissor () |
virtual void | draw_setup () |
virtual int | draw_frame (CAMdata::eye=CAMdata::MIDDLE) |
virtual int | draw_objects (CGELlist &, CAMdata::eye=CAMdata::MIDDLE) |
virtual void | load_proj_mat (CAMdata::eye) |
virtual void | load_cam_mat (CAMdata::eye) |
Static Protected Member Functions | |
static void | check_point_sizes () |
static void | check_line_widths () |
Protected Attributes | |
bool | _paintResize |
bool | _resizePending |
bool | _focusPending |
int | _resizeW |
int | _resizeH |
int | _resizeX |
int | _resizeY |
GELlist | _opaque |
GELlist | _blended |
Static Protected Attributes | |
static bool | _checked_point_sizes = false |
static bool | _checked_line_widths = false |
static GLfloat | _min_point_size = 0 |
static GLfloat | _max_point_size = 0 |
static GLfloat | _min_line_width = 0 |
static GLfloat | _max_line_width = 0 |
Definition at line 17 of file gl_view.H.
|
|
|
|
|
Definition at line 785 of file gl_view.C. References _checked_line_widths, _max_line_width, _min_line_width, Config::get_var_bool(), GL_LINE_WIDTH_GRANULARITY, GL_LINE_WIDTH_RANGE, and glGetFloatv(). Referenced by init_line_smooth(). |
|
Definition at line 763 of file gl_view.C. References _checked_point_sizes, _max_point_size, _min_point_size, Config::get_var_bool(), GL_POINT_SIZE_GRANULARITY, GL_POINT_SIZE_RANGE, and glGetFloatv(). Referenced by init_point_smooth(). |
|
Definition at line 197 of file gl_view.C. References GL_BACK, GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_FRONT, glClear(), glClearColor(), glDrawBuffer(), and RCOLOR_ID. Referenced by draw_setup(), and set_size(). |
|
Definition at line 502 of file gl_view.C. References is_valid_3D_object(), and VIEW::peek_cam(). Referenced by TexMemRefImage::draw_objects(), and sort_blended_objects(). |
|
|
|
Definition at line 164 of file gl_view.C. References draw_objects(), and tris. Referenced by paint(), and read_pixels(). |
|
|
|
|
Referenced by ControlFrameTexture::draw_selected_verts(). |
|
Definition at line 136 of file gl_view.C. References clear_draw_buffer(), GL_DEPTH_TEST, GL_LEQUAL, GL_STENCIL_TEST, GL_TRUE, glDepthFunc(), glDepthMask(), glDisable(), glEnable(), setup_scissor(), and setup_stencil(). Referenced by paint(), and read_pixels(). |
|
|
|
Definition at line 624 of file gl_view.C. References GL_PACK_ALIGNMENT, and glPixelStorei(). |
|
Definition at line 849 of file gl_view.C. References glPopAttrib(). Referenced by ZcrossTexture::draw(), GestureBoxDrawer::draw(), GestureDrawer::draw(), DEBUG_ELLIPSE::draw(), CreasesTexture::draw(), ControlFrameTexture::draw_level(), SHOW_TRIS::draw_lines(), ControlFrameTexture::draw_selected_edges(), and GtexUtil::draw_strip(). |
|
Definition at line 843 of file gl_view.C. References glPopAttrib(). Referenced by DEBUG_ELLIPSE::draw(). |
|
Definition at line 757 of file gl_view.C. References GL_POLYGON_OFFSET_FILL, and glDisable(). Referenced by GEOM::draw(), SHOW_TRIS::draw_filled(), OGLTexture::draw_id_triangles(), draw_objects(), GEOM::draw_ref_img(), and GEOM::draw_vis_ref(). |
|
|
|
Definition at line 726 of file gl_view.C. References GL_VERSION, and glGetString(). |
|
|
Definition at line 807 of file gl_view.C. References _max_point_size, _min_point_size, check_point_sizes(), err_msg(), GL_BLEND, GL_COLOR_BUFFER_BIT, GL_ENABLE_BIT, GL_HINT_BIT, GL_NICEST, GL_ONE_MINUS_SRC_ALPHA, GL_POINT_BIT, GL_POINT_SMOOTH, GL_POINT_SMOOTH_HINT, GL_SRC_ALPHA, glBlendFunc(), glEnable(), glHint(), glPointSize(), glPushAttrib(), and max(). Referenced by DEBUG_ELLIPSE::draw(). |
|
Definition at line 746 of file gl_view.C. References glEnable(), and glPolygonOffset(). |
|
Definition at line 44 of file gl_view.H. References Config::get_var_dbl(), and GL_POLYGON_OFFSET_FILL. Referenced by GEOM::draw(), ControlLineTexture::draw(), SHOW_TRIS::draw_filled(), OGLTexture::draw_id_triangles(), draw_objects(), GEOM::draw_ref_img(), and GEOM::draw_vis_ref(). |
|
Definition at line 33 of file gl_view.C. References CCAMdataptr, CVIEWptr, and glLoadMatrixd(). Referenced by draw_objects(). |
|
Definition at line 27 of file gl_view.C. References glLoadMatrixd(). Referenced by draw_objects(). |
|
Definition at line 59 of file gl_view.C. References _focusPending, _paintResize, _resizeH, _resizePending, _resizeW, _resizeX, _resizeY, brcase, draw_frame(), draw_setup(), Config::get_var_int(), GL_BACK_LEFT, GL_BACK_RIGHT, GL_DEPTH_BUFFER_BIT, glClear(), glDrawBuffer(), glViewport(), multithread, NONE, ARRAY< T >::num(), Animator::on(), Animator::play_on(), Animator::rend_on(), set_size(), tris, and VIEWS. |
|
Definition at line 737 of file gl_view.C. References GL_EXTENSIONS, and glGetString(). |
|
Definition at line 631 of file gl_view.C. References GL_BACK, GL_PACK_ALIGNMENT, glPixelStorei(), and glReadBuffer(). |
|
|
Definition at line 638 of file gl_view.C. References draw_frame(), draw_setup(), GL_RGB, GL_RGBA, GL_UNSIGNED_BYTE, and glReadPixels(). |
|
|
|
Definition at line 34 of file gl_view.H. References _focusPending. |
|
Definition at line 664 of file gl_view.C. References _paintResize, _resizeH, _resizePending, _resizeW, _resizeX, _resizeY, clear_draw_buffer(), Config::get_var_dbl(), GL_BACK, GL_FRONT, glDrawBuffer(), glViewport(), multithread, ARRAY< T >::num(), and VIEWS. Referenced by paint(). |
|
|
|
|
Definition at line 598 of file gl_view.C. References GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_TWO_SIDE, GL_LIGHTING, glDisable(), glEnable(), glLightModelfv(), glLightModeli(), VIEW::max_lights(), print_gl_errors(), and setup_light(). Referenced by draw_objects(). |
|
Definition at line 280 of file gl_view.C. References GL_SCISSOR_TEST, glEnable(), and glScissor(). Referenced by draw_setup(). |
|
Definition at line 232 of file gl_view.C. References GL_ALWAYS, GL_EQUAL, GL_KEEP, GL_LIGHTING, GL_MODELVIEW, GL_PROJECTION, GL_QUADS, GL_REPLACE, GL_STENCIL_BUFFER_BIT, GL_STENCIL_TEST, glBegin(), glClear(), glClearStencil(), glDisable(), glEnable(), glEnd(), glLoadIdentity(), glLoadMatrixd(), glMatrixMode(), glPopMatrix(), glPushMatrix(), glStencilFunc(), glStencilOp(), glVertex2dv(), and ARRAY< T >::num(). Referenced by draw_setup(). |
|
Definition at line 531 of file gl_view.C. References _blended, _opaque, ARRAY< T >::clear(), depth_compare(), ARRAY< T >::num(), and ARRAY< T >::sort(). Referenced by draw_objects(). |
|
Definition at line 454 of file gl_view.C. References BAD_IND, draw_objects(), GL_EQUAL, GL_KEEP, glStencilFunc(), and glStencilOp(). |
|
Definition at line 182 of file gl_view.C. References GL_SCISSOR_TEST, glDisable(), glFlush(), in_swap_buffers(), and print_gl_errors(). |
|
Definition at line 182 of file gl_view.H. Referenced by draw_objects(), and sort_blended_objects(). |
|
Definition at line 170 of file gl_view.H. Referenced by check_line_widths(). |
|
Definition at line 169 of file gl_view.H. Referenced by check_point_sizes(). |
|
Definition at line 178 of file gl_view.H. Referenced by paint(), and set_focus(). |
|
Definition at line 174 of file gl_view.H. Referenced by check_line_widths(), and init_line_smooth(). |
|
Definition at line 172 of file gl_view.H. Referenced by check_point_sizes(), and init_point_smooth(). |
|
Definition at line 173 of file gl_view.H. Referenced by check_line_widths(), and init_line_smooth(). |
|
Definition at line 171 of file gl_view.H. Referenced by check_point_sizes(), and init_point_smooth(). |
|
Definition at line 181 of file gl_view.H. Referenced by draw_objects(), and sort_blended_objects(). |
|
Definition at line 176 of file gl_view.H. Referenced by paint(), and set_size(). |
|
Definition at line 179 of file gl_view.H. Referenced by paint(), and set_size(). |
|
Definition at line 177 of file gl_view.H. Referenced by paint(), and set_size(). |
|
Definition at line 179 of file gl_view.H. Referenced by paint(), and set_size(). |
|
Definition at line 179 of file gl_view.H. Referenced by paint(), and set_size(). |
|
Definition at line 179 of file gl_view.H. Referenced by paint(), and set_size(). |