Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CurvatureARBvpARBfpMultiTextureMode Class Reference

A curvature gTexture rendering mode that uses ARB vertex and fragment programs and multitexturing. More...

Inheritance diagram for CurvatureARBvpARBfpMultiTextureMode:

Inheritance graph
[legend]
Collaboration diagram for CurvatureARBvpARBfpMultiTextureMode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CurvatureARBvpARBfpMultiTextureMode ()
 ~CurvatureARBvpARBfpMultiTextureMode ()
virtual void setup_for_drawing_outside_dl (const Patch *patch)
 Setup the OpenGL state for rendering in this mode. This method will be called each time the style is drawn.
virtual void setup_for_drawing_inside_dl (const Patch *patch)
 Setup the OpenGL state for rendering in this mode. This method will be called once inside a display list.
virtual GLStripCBget_new_strip_cb () const
 Get a newly allocated object of the GLStripCB class used by this mode.
virtual void after_drawing_outside_dl (const Patch *patch)
 Perform any operations that should happen after drawing is complete. This method will be called each time the style is drawn.
virtual void after_drawing_inside_dl (const Patch *patch)
 Perform any operations that should happen after drawing is complete. This method will be called once inside a display list.

Private Attributes

GLuint vprog_name
GLuint fprog_name
GLuint line_texture_name
GLuint region_texture_name
GLuint rcurv_texture_name

Classes

class  StripCB

Detailed Description

A curvature gTexture rendering mode that uses ARB vertex and fragment programs and multitexturing.

Definition at line 405 of file curvature_texture.C.


Constructor & Destructor Documentation

CurvatureARBvpARBfpMultiTextureMode::CurvatureARBvpARBfpMultiTextureMode  ) 
 

Definition at line 435 of file curvature_texture.C.

References CURVATURE_FRAGMENT_PROGRAM_STR, CURVATURE_VERTEX_PROGRAM_STR, fprog_name, GLExtensions::gl_arb_fragment_program_supported(), GLExtensions::gl_arb_multitexture_supported(), GLExtensions::gl_arb_vertex_program_supported(), GL_FRAGMENT_PROGRAM_ARB, GL_VERTEX_PROGRAM_ARB, glGenTextures(), line_texture_name, load_ARB_program(), make_2D_texture(), rcurv_texture_name, region_texture_name, and vprog_name.

CurvatureARBvpARBfpMultiTextureMode::~CurvatureARBvpARBfpMultiTextureMode  ) 
 

Definition at line 478 of file curvature_texture.C.

References fprog_name, glDeleteProgramsARB, glDeleteTextures(), line_texture_name, rcurv_texture_name, region_texture_name, and vprog_name.


Member Function Documentation

virtual void RenderingMode::after_drawing_inside_dl const Patch patch  )  [inline, virtual, inherited]
 

Perform any operations that should happen after drawing is complete. This method will be called once inside a display list.

Definition at line 67 of file rendering_mode.H.

Referenced by RenderingModeSingleton< RenderingModeSelectionPolicy >::after_drawing_inside_dl().

virtual void RenderingMode::after_drawing_outside_dl const Patch patch  )  [inline, virtual, inherited]
 

Perform any operations that should happen after drawing is complete. This method will be called each time the style is drawn.

Note:
Code that uses values that vary from redraw to redraw should be put in this method so that the values are not captured once in a display list.

Reimplemented in LineDrawingGLSLMode.

Definition at line 63 of file rendering_mode.H.

Referenced by RenderingModeSingleton< RenderingModeSelectionPolicy >::after_drawing_outside_dl().

virtual GLStripCB* CurvatureARBvpARBfpMultiTextureMode::get_new_strip_cb  )  const [inline, virtual]
 

Get a newly allocated object of the GLStripCB class used by this mode.

Note:
The returned GLStripCB pointer should be deleted by the caller when it is done being used.

Implements RenderingMode.

Definition at line 425 of file curvature_texture.C.

void CurvatureARBvpARBfpMultiTextureMode::setup_for_drawing_inside_dl const Patch patch  )  [virtual]
 

Setup the OpenGL state for rendering in this mode. This method will be called once inside a display list.

Reimplemented from RenderingMode.

Definition at line 577 of file curvature_texture.C.

References fprog_name, GL_FRAGMENT_PROGRAM_ARB, GL_TEXTURE0, GL_TEXTURE0_ARB, GL_TEXTURE1_ARB, GL_TEXTURE2_ARB, GL_TEXTURE_2D, GL_VERTEX_PROGRAM_ARB, glActiveTextureARB, glBindProgramARB, glBindTexture(), glEnable(), glProgramEnvParameter4fARB, line_texture_name, rcurv_texture_name, region_texture_name, and vprog_name.

void CurvatureARBvpARBfpMultiTextureMode::setup_for_drawing_outside_dl const Patch patch  )  [virtual]
 

Setup the OpenGL state for rendering in this mode. This method will be called each time the style is drawn.

Note:
Code that uses values that vary from redraw to redraw should be put in this method so that the values are not captured once in a display list.

Reimplemented from RenderingMode.

Definition at line 503 of file curvature_texture.C.

References BMESH::avg_len(), VIEW::eye(), CurvatureTexture::FILTER_GAUSSIAN, CurvatureTexture::FILTER_MEAN, CurvatureTexture::FILTER_RADIAL, fprog_name, CurvatureTexture::get_draw_gaussian_curv(), CurvatureTexture::get_draw_mean_curv(), CurvatureTexture::get_draw_radial_curv(), CurvatureTexture::get_gaussian_filter(), CurvatureTexture::get_mean_filter(), CurvatureTexture::get_radial_filter(), CurvatureTexture::get_sugcontour_thresh(), GL_FRAGMENT_PROGRAM_ARB, GL_VERTEX_PROGRAM_ARB, glBindProgramARB, glEnable(), glProgramEnvParameter4fARB, Patch::mesh(), sqr(), and vprog_name.


Member Data Documentation

GLuint CurvatureARBvpARBfpMultiTextureMode::fprog_name [private]
 

Definition at line 430 of file curvature_texture.C.

Referenced by CurvatureARBvpARBfpMultiTextureMode(), setup_for_drawing_inside_dl(), setup_for_drawing_outside_dl(), and ~CurvatureARBvpARBfpMultiTextureMode().

GLuint CurvatureARBvpARBfpMultiTextureMode::line_texture_name [private]
 

Definition at line 431 of file curvature_texture.C.

Referenced by CurvatureARBvpARBfpMultiTextureMode(), setup_for_drawing_inside_dl(), and ~CurvatureARBvpARBfpMultiTextureMode().

GLuint CurvatureARBvpARBfpMultiTextureMode::rcurv_texture_name [private]
 

Definition at line 431 of file curvature_texture.C.

Referenced by CurvatureARBvpARBfpMultiTextureMode(), setup_for_drawing_inside_dl(), and ~CurvatureARBvpARBfpMultiTextureMode().

GLuint CurvatureARBvpARBfpMultiTextureMode::region_texture_name [private]
 

Definition at line 431 of file curvature_texture.C.

Referenced by CurvatureARBvpARBfpMultiTextureMode(), setup_for_drawing_inside_dl(), and ~CurvatureARBvpARBfpMultiTextureMode().

GLuint CurvatureARBvpARBfpMultiTextureMode::vprog_name [private]
 

Definition at line 430 of file curvature_texture.C.

Referenced by CurvatureARBvpARBfpMultiTextureMode(), setup_for_drawing_inside_dl(), setup_for_drawing_outside_dl(), and ~CurvatureARBvpARBfpMultiTextureMode().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:45:00 2006 for jot by  doxygen 1.4.4