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

GLSLXToonShader Class Reference

#include <glsl_xtoon.H>

Inheritance diagram for GLSLXToonShader:

Inheritance graph
[legend]
Collaboration diagram for GLSLXToonShader:

Collaboration graph
[legend]
List of all members.

Public Types

enum  ref_img_t {
  REF_IMG_NONE = 0, REF_IMG_ID = 1, REF_IMG_COLOR = 2, REF_IMG_COLOR_2 = 4,
  REF_IMG_ID_PRE1 = 8, REF_IMG_ID_PRE2 = 16, REF_IMG_ID_PRE3 = 32, REF_IMG_ID_PRE4 = 64,
  REF_IMG_TEX_MEM = 128
}

Public Member Functions

 GLSLXToonShader (Patch *patch=0)
 DEFINE_RTTI_METHODS3 ("GLSL XToon", GLSLXToonShader *, BasicTexture, CDATA_ITEM *)
void set_tex (Cstr_ptr &full_path_name)
virtual bool get_variable_locs ()
virtual bool set_uniform_variables () const
virtual void init_textures ()
virtual void activate_textures ()
virtual void set_gl_state (GLbitfield mask=0) const
virtual DATA_ITEMdup () const
virtual Cstr_ptr & get_tex_name () const
virtual void set_tex_name (Cstr_ptr &tn)
virtual str_ptr get_layer_name () const
virtual void set_layer_name (Cstr_ptr ln)
virtual int get_use_paper () const
virtual void set_use_paper (int p)
virtual int get_travel_paper () const
virtual void set_travel_paper (int t)
virtual int get_transparent () const
virtual int get_annotate () const
virtual double get_alpha () const
virtual void set_alpha (double a)
virtual COLOR get_color () const
virtual int set_color (CCOLOR &c)
virtual int get_light_index () const
virtual void set_light_index (int i)
virtual int get_light_dir () const
virtual void set_light_dir (int d)
virtual int get_light_cam () const
virtual void set_light_cam (int c)
virtual mlib::Wvec get_light_coords () const
virtual void set_light_coords (mlib::CWvec &c)
virtual double get_target_length () const
virtual void set_target_length (double t)
virtual double get_max_factor () const
virtual void set_max_factor (double f)
virtual double get_smooth_factor () const
virtual void set_smooth_factor (double f)
virtual double get_smooth_detail () const
virtual void set_smooth_detail (int d)
void put_layer_name (TAGformat &d) const
void get_layer_name (TAGformat &d)
void put_tex_name (TAGformat &d) const
void get_tex_name (TAGformat &d)
int & use_paper_ ()
int & travel_paper_ ()
double & alpha_ ()
COLORcolor_ ()
int & light_index_ ()
int & light_dir_ ()
int & light_cam_ ()
mlib::Wveclight_coords_ ()
void set_detail_map (int dmap)
bool normals_smoothed ()
bool normals_elliptic ()
bool normals_spheric ()
bool normals_cylindric ()
void update_curvatures (bool b)
void set_inv_detail (bool b)
void set_normals (int i)
 DEFINE_RTTI_METHODS3 ("GLSLShader", GLSLShader *, BasicTexture, CDATA_ITEM *)
 DEFINE_RTTI_METHODS3 ("Textured patch", GTexture *, DATA_ITEM, CDATA_ITEM *)
str_ptr shader_path () const
str_ptr vp_name (Cstr_ptr &name) const
str_ptr fp_name (Cstr_ptr &name) const
bool get_uniform_loc (Cstr_ptr &name, GLint &loc)
GLint get_uniform_loc (Cstr_ptr &name)
virtual GLuint & program ()
virtual booldid_init ()
virtual bool bind_attributes (GLuint prog)
virtual void restore_gl_state () const
virtual int draw (CVIEWptr &v)
 DEFINE_RTTI_METHODS2 ("BasicTexture", OGLTexture, CDATA_ITEM *)
 DEFINE_RTTI_METHODS2 ("OGLTexture", GTexture, CDATA_ITEM *)
virtual void changed ()
virtual int dl_valid (CVIEWptr &v)
bool set_face_culling () const
int draw_id_sils (bool omit_concave_sils, GLfloat width)
int draw_id_triangles (bool use_polygon_offset, bool draw_id_colors, double offset_factor=Config::get_var_dbl("BMESH_OFFSET_FACTOR", 12.0, true), double offset_units=Config::get_var_dbl("BMESH_OFFSET_UNITS", 1.0, true))
int draw_id_creases (GLfloat width)
int draw_stencil ()
void draw_vert_and_edge_strips (bool disable_lights=0, GLfloat line_width=3, GLfloat point_size=5, bool set_color=1, CCOLOR &color=COLOR::black) const
virtual int draw_vis_ref ()
virtual int draw_id_ref ()
STAT_STR_RET type () const
Patchpatch () const
BMESHmesh () const
StripCBcb () const
void set_cb (StripCB *cb)
GTexturectrl () const
void set_ctrl (GTexture *c)
virtual GTexture_list gtextures () const
virtual void set_patch (Patch *p)
virtual void push_alpha (double a)
virtual void pop_alpha ()
double alpha () const
virtual bool draws_filled () const
virtual void draw_with_alpha (double alpha)
virtual void draw_filled_tris (double alpha)
virtual void draw_non_filled_tris (double alpha)
virtual int read_stream (istream &, str_list &)
virtual int write_data (ostream &) const
virtual int write_stream (ostream &os) const
virtual CTAGlist & tags () const
virtual void add_tags () const
virtual STDdstreamformat (STDdstream &d) const
virtual STDdstreamdecode (STDdstream &d)
virtual void recompute ()
virtual STAT_STR_RET class_name () const =0
virtual int is_of_type (Cstr_ptr &t) const
virtual int draw_id_ref_pre1 ()
virtual int draw_id_ref_pre2 ()
virtual int draw_id_ref_pre3 ()
virtual int draw_id_ref_pre4 ()
virtual int draw_color_ref ()
virtual int draw_color_ref_2 ()
virtual int draw_tex_mem_ref ()
virtual ref_img_t use_ref_image ()
virtual int draw_ref_img (ref_img_t t)
virtual int draw_final (CVIEWptr &)

Static Public Member Functions

static bool load_texture (TEXTUREglptr &tex)
static bool activate_texture (TEXTUREglptr &tex)
static STAT_STR_RET static_name ()
static STAT_STR_RET static_name ()
static int add_decoder (Cstr_ptr &d, DATA_ITEM *di, int copy=-1)
static void set_default_decoder (DATA_ITEM *(*d)(STDdstream &, Cstr_ptr &, DATA_ITEM *))
static DATA_ITEMDecode (STDdstream &d, int DelayDecoding=0)
static DATA_ITEMlookup (Cstr_ptr &d)
static HASHdi_hash ()

Protected Member Functions

virtual str_ptr vp_filename ()
virtual str_ptr fp_filename ()
bool init ()
void activate_program ()
void deactivate_program () const
virtual str_list vp_filenames ()
virtual str_list fp_filenames ()
virtual void set_ref_tex_shader ()
virtual void use_ref_tex_shader ()
void delete_dl ()
void check_patch_texture_map ()

Static Protected Member Functions

static void use_program (GLuint prog)
static void delete_program (GLuint &prog)
static void delete_shader (GLuint shader)
static void delete_shaders (CARRAY< GLuint > &shaders)
static void print_shader_source (GLuint shader)
static void print_info (Cstr_ptr &gtex_name, GLuint obj)
static bool link_program (Cstr_ptr &gtex_name, GLuint prog)
static bool compile_shader (Cstr_ptr &gtex_name, GLuint shader)
static GLuint load_shader (Cstr_ptr &gtex_name, Cstr_ptr &filename, GLenum type)
static bool load_shaders (Cstr_ptr &gtex_name, Cstr_list &filenames, ARRAY< GLuint > &shaders, GLenum type)
static char * read_file (Cstr_ptr &gtex_name, Cstr_ptr &filename, GLint &len)
static bool attach_shaders (CARRAY< GLuint > &shaders, GLuint prog)

Protected Attributes

TEXTUREglptr _tex
Image _image
str_ptr _tex_name
str_ptr _layer_name
int _use_paper
int _travel_paper
int _transparent
int _annotate
COLOR _color
double _alpha
int _light_index
int _light_dir
int _light_cam
mlib::Wvec _light_coords
int _detail_map
double _target_length
double _max_factor
bool _normals_smoothed
bool _normals_elliptic
bool _normals_spheric
bool _normals_cylindric
double _smooth_factor
bool _update_curvatures
double _frame_rate
int _nb_stat_frames
bool _invert_detail
bool _update_uniforms
bool _tex_is_good
int _smoothNormal
int _smoothDetail
GLint _tex_loc
GLint _Dmap_loc
GLint _Sdtl_loc
GLint _Sfct_loc
GLint _trgt_loc
GLint _Mfct_loc
GLint _Fpnt_loc
GLint _Lidx_loc
GLint _Ldir_loc
GLint _Lcam_loc
GLint _Lcoord_loc
GLuint _program
bool _did_init
BasicTexture_tex_ref_shader
DLhandler _dl
Patch_patch
StripCB_cb
ARRAY< double > _alphas
GTexture_ctrl
int _copy
TAGlist _DEFINERtags

Static Protected Attributes

static Cstr_ptr _type_name
static Cstr_ptr _begin_tag
static Cstr_ptr _end_tag

Detailed Description

Definition at line 15 of file glsl_xtoon.H.


Member Enumeration Documentation

enum RefImageClient::ref_img_t [inherited]
 

Enumerator:
REF_IMG_NONE 
REF_IMG_ID 
REF_IMG_COLOR 
REF_IMG_COLOR_2 
REF_IMG_ID_PRE1 
REF_IMG_ID_PRE2 
REF_IMG_ID_PRE3 
REF_IMG_ID_PRE4 
REF_IMG_TEX_MEM 

Definition at line 25 of file ref_img_client.H.


Constructor & Destructor Documentation

GLSLXToonShader::GLSLXToonShader Patch patch = 0  ) 
 

Definition at line 98 of file glsl_xtoon.C.

References _tex_name, and set_tex().


Member Function Documentation

void GLSLShader::activate_program  )  [inline, protected, inherited]
 

Definition at line 137 of file glsl_shader.H.

References GLSLShader::program(), and GLSLShader::use_program().

Referenced by GLSLPaperShader::begin_glsl_paper(), GLSLShader::draw(), GLSLToonShader::draw_start(), and GLSLShader::init().

bool GLSLShader::activate_texture TEXTUREglptr &  tex  )  [static, inherited]
 

Definition at line 414 of file glsl_shader.C.

References GLSLShader::load_texture().

Referenced by HalftoneShaderEx::activate_textures(), HalftoneShader::activate_textures(), activate_textures(), GLSLToonShaderHalo::activate_textures(), GLSLToonShader::activate_textures(), GLSLPerlinTest::activate_textures(), GLSLPaperShader::activate_textures(), and GLSLMarbleShader::activate_textures().

void GLSLXToonShader::activate_textures  )  [virtual]
 

Reimplemented from GLSLShader.

Definition at line 185 of file glsl_xtoon.C.

References _tex, and GLSLShader::activate_texture().

int DATA_ITEM::add_decoder Cstr_ptr &  d,
DATA_ITEM di,
int  copy = -1
[static, inherited]
 

Definition at line 41 of file data_item.C.

References DATA_ITEM::_hash, and HASH::add().

Referenced by JOTvar< OBJ, TYPE >::check_inst_name(), FUNC_ITEM::FUNC_ITEM(), hashdist::hashdist(), JOTvar< OBJ, TYPE >::JOTvar(), and DISTRIB::notify_exist().

virtual void DATA_ITEM::add_tags  )  const [inline, virtual, inherited]
 

Definition at line 205 of file data_item.H.

double GTexture::alpha  )  const [inline, inherited]
 

Definition at line 82 of file gtexture.H.

References GTexture::_alphas, GTexture::_patch, ARRAY< T >::empty(), Patch::has_transp(), ARRAY< T >::last(), and Patch::transp().

Referenced by ZcrossTexture::draw(), XToonTexture::draw(), WireframeTexture::draw(), ToonTexture_1D::draw(), SolidColorTexture::draw(), SmoothShadeTexture::draw(), SilsTexture::draw(), VertUVTexture::draw(), VertNormalsTexture::draw(), LineDrawingTexture::draw(), FlatShadeTexture::draw(), CurvatureTexture::draw(), CreasesTexture::draw(), ControlFrameTexture::draw_level(), ControlFrameTexture::draw_selected_edges(), ControlFrameTexture::draw_selected_faces(), ControlFrameTexture::draw_selected_verts(), MSLDShader::set_gl_state(), HalftoneShaderEx::set_gl_state(), HalftoneShader::set_gl_state(), GLSLShader::set_gl_state(), GLSLHatching::set_gl_state(), DotsShader_EX::set_gl_state(), and DotsShader::set_gl_state().

double& GLSLXToonShader::alpha_  )  [inline]
 

Definition at line 106 of file glsl_xtoon.H.

References _alpha.

bool GLSLShader::attach_shaders CARRAY< GLuint > &  shaders,
GLuint  prog
[static, protected, inherited]
 

Definition at line 273 of file glsl_shader.C.

References glAttachObjectARB, glAttachShader, and need_arb_ext.

Referenced by GLSLShader::init().

virtual bool GLSLShader::bind_attributes GLuint  prog  )  [inline, virtual, inherited]
 

Definition at line 88 of file glsl_shader.H.

Referenced by GLSLShader::init().

StripCB* GTexture::cb  )  const [inline, inherited]
 

Definition at line 44 of file gtexture.H.

References GTexture::_cb.

Referenced by HalftoneShaderEx::changed(), DotsShader_EX::changed(), DotsShader_EX::DotsShader_EX(), LineDrawingTexture::draw(), HalftoneShaderEx::draw(), CurvatureTexture::draw(), ColorIDTexture::draw_edges(), OGLTexture::draw_stencil(), DotsShader_EX::draw_tex_mem_ref(), ColorIDTexture::draw_verts(), HalftoneShaderEx::get_variable_locs(), get_variable_locs(), DotsShader_EX::get_variable_locs(), HalftoneShaderEx::HalftoneShaderEx(), set_normals(), HalftoneShaderEx::set_patch(), and DotsShader_EX::set_patch().

virtual void BasicTexture::changed  )  [inline, virtual, inherited]
 

Reimplemented from GTexture.

Reimplemented in DotsShader_EX, and HalftoneShaderEx.

Definition at line 80 of file basic_texture.H.

References BasicTexture::_dl, and DLhandler::invalidate().

Referenced by HalftoneShaderEx::changed(), DotsShader_EX::changed(), TriStripsTexture::pop_alpha(), TriStripsTexture::push_alpha(), ColorIDTexture::set_polygon_mode(), MSLDShader::set_tone_shader(), GLSLHatching::set_tone_shader(), and DotsShader::set_tone_shader().

void OGLTexture::check_patch_texture_map  )  [protected, inherited]
 

Definition at line 264 of file basic_texture.C.

References GTexture::_patch, Cstr_ptr, APPEAR::has_texture(), NULL_STR, Patch::set_texture(), Patch::set_texture_file(), and Patch::texture_file().

Referenced by SmoothShadeTexture::draw(), LineDrawingTexture::draw(), FlatShadeTexture::draw(), and CurvatureTexture::draw().

virtual STAT_STR_RET DATA_ITEM::class_name  )  const [pure virtual, inherited]
 

Implemented in hashdist, JOTvar< OBJ, TYPE >, TDI< T >, and FUNC_ITEM.

Referenced by DATA_ITEM::decode(), DATA_ITEM::Decode(), GLSLShader::draw(), DATA_ITEM::format(), GLSLShader::get_uniform_loc(), GLSLShader::init(), DISTRIB::interpret(), BaseJOTappConfig::load(), next_texture(), GEOM::print(), DEFINER::print(), BMESH::print(), print_gel(), Patch::put_textures(), BMESH::read_jot_stream(), GTexture::type(), SolidColorTexture::write_stream(), and GTexture::write_stream().

COLOR& GLSLXToonShader::color_  )  [inline]
 

Definition at line 107 of file glsl_xtoon.H.

References _color.

bool GLSLShader::compile_shader Cstr_ptr &  gtex_name,
GLuint  shader
[static, protected, inherited]
 

Definition at line 121 of file glsl_shader.C.

References debug, GL_COMPILE_STATUS, GL_OBJECT_COMPILE_STATUS_ARB, GL_TRUE, glCompileShader, glCompileShaderARB, glGetObjectParameterivARB, glGetShaderiv, need_arb_ext, and GLSLShader::print_info().

Referenced by GLSLShader::load_shader().

GTexture* GTexture::ctrl  )  const [inline, inherited]
 

Definition at line 47 of file gtexture.H.

References GTexture::_ctrl.

void GLSLShader::deactivate_program  )  const [inline, protected, inherited]
 

Definition at line 138 of file glsl_shader.H.

References GLSLShader::use_program().

Referenced by GLSLShader::draw(), GLSLToonShader::draw_end(), GLSLPaperShader::end_glsl_paper(), and GLSLShader::init().

DATA_ITEM * DATA_ITEM::Decode STDdstream d,
int  DelayDecoding = 0
[static, inherited]
 

Definition at line 57 of file data_item.C.

References DATA_ITEM::_copy, DATA_ITEM::_decode_unknown, DATA_ITEM::class_name(), DATA_ITEM::decode(), DATA_ITEM::dup(), Config::get_var_bool(), and DATA_ITEM::lookup().

Referenced by JOThash::get(), DISTRIB::interpret(), and operator>>().

STDdstream & DATA_ITEM::decode STDdstream d  )  [virtual, inherited]
 

Reimplemented in JOTsend_geom, and BMESH.

Definition at line 145 of file data_item.C.

References DATA_ITEM::class_name(), COMMENT::decode(), j, COMMENT::name(), TAGformat::read_end_id(), TAGformat::read_id(), DATA_ITEM::recompute(), and DATA_ITEM::tags().

Referenced by DATA_ITEM::Decode(), BMESH::decode(), JOTio::get(), BMESH::get_patches(), Patch::get_texture(), VIEW::get_view_animator(), and VIEW::get_view_data_file().

OGLTexture::DEFINE_RTTI_METHODS2 "OGLTexture"  ,
GTexture  ,
CDATA_ITEM * 
[inherited]
 

BasicTexture::DEFINE_RTTI_METHODS2 "BasicTexture"  ,
OGLTexture  ,
CDATA_ITEM * 
[inherited]
 

GTexture::DEFINE_RTTI_METHODS3 "Textured patch"  ,
GTexture ,
DATA_ITEM  ,
CDATA_ITEM * 
[inherited]
 

GLSLShader::DEFINE_RTTI_METHODS3 "GLSLShader"  ,
GLSLShader ,
BasicTexture  ,
CDATA_ITEM * 
[inherited]
 

GLSLXToonShader::DEFINE_RTTI_METHODS3 "GLSL XToon"  ,
GLSLXToonShader ,
BasicTexture  ,
CDATA_ITEM * 
 

void BasicTexture::delete_dl  )  [inline, protected, inherited]
 

Definition at line 91 of file basic_texture.H.

References BasicTexture::_dl, and DLhandler::delete_all_dl().

Referenced by BasicTexture::~BasicTexture().

void GLSLShader::delete_program GLuint &  prog  )  [static, protected, inherited]
 

Definition at line 33 of file glsl_shader.C.

References glDeleteObjectARB, glDeleteProgram, and need_arb_ext.

Referenced by GLSLShader::init(), and GLSLShader::~GLSLShader().

void GLSLShader::delete_shader GLuint  shader  )  [static, protected, inherited]
 

Definition at line 163 of file glsl_shader.C.

References glDeleteObjectARB, glDeleteShader, and need_arb_ext.

Referenced by GLSLShader::delete_shaders(), and GLSLShader::load_shader().

void GLSLShader::delete_shaders CARRAY< GLuint > &  shaders  )  [static, protected, inherited]
 

Definition at line 173 of file glsl_shader.C.

References GLSLShader::delete_shader().

Referenced by GLSLShader::load_shaders().

static HASH* DATA_ITEM::di_hash  )  [inline, static, inherited]
 

Definition at line 225 of file data_item.H.

References DATA_ITEM::_hash.

virtual bool& GLSLShader::did_init  )  [inline, virtual, inherited]
 

Reimplemented in DotsShader, DotsShader_EX, GLSLHaloShader, GLSLHatching, GLSLNormalShader, GLSLPaperShader, GLSLLightingShader, GLSLSolidShader, GLSLToonShader, and MSLDShader.

Definition at line 81 of file glsl_shader.H.

References GLSLShader::_did_init.

Referenced by GLSLShader::init().

int BasicTexture::dl_valid CVIEWptr &  v  )  [virtual, inherited]
 

Definition at line 310 of file basic_texture.C.

References BasicTexture::_dl, GTexture::_patch, Patch::stamp(), and DLhandler::valid().

Referenced by XToonTexture::draw(), ToonTexture_1D::draw(), SmoothShadeTexture::draw(), LineDrawingTexture::draw(), GLSLShader::draw(), CurvatureTexture::draw(), and BasicTexture::draw().

int GLSLShader::draw CVIEWptr &  v  )  [virtual, inherited]
 

Reimplemented from BasicTexture.

Reimplemented in GLSLLightingShader, and HalftoneShaderEx.

Definition at line 458 of file glsl_shader.C.

References GTexture::_cb, BasicTexture::_dl, GTexture::_patch, GLSLShader::activate_program(), GLSLShader::activate_textures(), DATA_ITEM::class_name(), DLhandler::close_dl(), GLSLShader::deactivate_program(), debug, DLhandler::dl(), BasicTexture::dl_valid(), BasicTexture::draw(), Patch::draw_tri_strips(), DLhandler::get_dl(), GL_COMPILE, glNewList(), GLSLShader::init(), GLSLShader::init_textures(), Patch::num_faces(), GL_VIEW::print_gl_errors(), GLSLShader::program(), GLSLShader::restore_gl_state(), GLSLShader::set_gl_state(), GLSLShader::set_uniform_variables(), and Patch::stamp().

Referenced by HalftoneShaderEx::draw(), GLSLLightingShader::draw(), HalftoneShaderEx::draw_tex_mem_ref(), and HalftoneShader::draw_tex_mem_ref().

virtual int RefImageClient::draw_color_ref  )  [inline, virtual, inherited]
 

Reimplemented in GELset.

Definition at line 55 of file ref_img_client.H.

Referenced by RefImageClient::draw_ref_img(), and RefImageClient::draw_tex_mem_ref().

virtual int RefImageClient::draw_color_ref_2  )  [inline, virtual, inherited]
 

Reimplemented in GELset.

Definition at line 56 of file ref_img_client.H.

Referenced by RefImageClient::draw_ref_img().

virtual void GTexture::draw_filled_tris double  alpha  )  [inline, virtual, inherited]
 

Reimplemented in ControlLineTexture, HiddenLineTexture, KeyLineTexture, and NormalsTexture.

Definition at line 112 of file gtexture.H.

References GTexture::draw_with_alpha(), and GTexture::draws_filled().

Referenced by FaderTexture::draw().

virtual int RefImageClient::draw_final CVIEWptr &   )  [inline, virtual, inherited]
 

Reimplemented in GELset, GEOM, GESTURE, ControlLineTexture, HiddenLineTexture, BMESH, and Patch.

Definition at line 100 of file ref_img_client.H.

Referenced by Patch::draw_final(), HiddenLineTexture::draw_final(), and ControlLineTexture::draw_final().

int OGLTexture::draw_id_creases GLfloat  width  )  [inherited]
 

Definition at line 211 of file basic_texture.C.

References GTexture::_patch, Patch::cur_creases(), and ColorIDTexture::draw_edges().

int OGLTexture::draw_id_ref  )  [virtual, inherited]
 

Reimplemented from RefImageClient.

Definition at line 139 of file basic_texture.C.

References GTexture::_patch, ColorIDTexture::draw(), ColorIDTexture::draw_black(), Patch::get_tex(), VIEW::peek(), RefImageClient::REF_IMG_ID, DATA_ITEM::static_name(), and RefImageClient::use_ref_image().

virtual int RefImageClient::draw_id_ref_pre1  )  [inline, virtual, inherited]
 

Reimplemented in GELset.

Definition at line 51 of file ref_img_client.H.

Referenced by RefImageClient::draw_ref_img().

virtual int RefImageClient::draw_id_ref_pre2  )  [inline, virtual, inherited]
 

Reimplemented in GELset.

Definition at line 52 of file ref_img_client.H.

Referenced by RefImageClient::draw_ref_img().

virtual int RefImageClient::draw_id_ref_pre3  )  [inline, virtual, inherited]
 

Reimplemented in GELset.

Definition at line 53 of file ref_img_client.H.

Referenced by RefImageClient::draw_ref_img().

virtual int RefImageClient::draw_id_ref_pre4  )  [inline, virtual, inherited]
 

Reimplemented in GELset.

Definition at line 54 of file ref_img_client.H.

Referenced by RefImageClient::draw_ref_img().

int OGLTexture::draw_id_sils bool  omit_concave_sils,
GLfloat  width
[inherited]
 

Definition at line 160 of file basic_texture.C.

References GTexture::_patch, Patch::cur_sils(), ColorIDTexture::draw_edges(), and EdgeStrip::get_filtered().

int OGLTexture::draw_id_triangles bool  use_polygon_offset,
bool  draw_id_colors,
double  offset_factor = Config::get_var_dbl("BMESH_OFFSET_FACTOR", 12.0, true),
double  offset_units = Config::get_var_dbl("BMESH_OFFSET_UNITS", 1.0, true)
[inherited]
 

Definition at line 186 of file basic_texture.C.

References GTexture::_patch, ColorIDTexture::draw(), ColorIDTexture::draw_black(), GL_VIEW::end_polygon_offset(), err_msg(), Patch::get_tex(), GL_VIEW::init_polygon_offset(), Patch::num_faces(), VIEW::peek(), and DATA_ITEM::static_name().

virtual void GTexture::draw_non_filled_tris double  alpha  )  [inline, virtual, inherited]
 

Reimplemented in ControlLineTexture, HiddenLineTexture, KeyLineTexture, and NormalsTexture.

Definition at line 116 of file gtexture.H.

References GTexture::draw_with_alpha(), and GTexture::draws_filled().

Referenced by FaderTexture::draw().

virtual int RefImageClient::draw_ref_img ref_img_t  t  )  [inline, virtual, inherited]
 

Definition at line 82 of file ref_img_client.H.

References brcase, brdefault, RefImageClient::draw_color_ref(), RefImageClient::draw_color_ref_2(), RefImageClient::draw_id_ref(), RefImageClient::draw_id_ref_pre1(), RefImageClient::draw_id_ref_pre2(), RefImageClient::draw_id_ref_pre3(), RefImageClient::draw_id_ref_pre4(), RefImageClient::draw_tex_mem_ref(), RefImageClient::REF_IMG_COLOR, RefImageClient::REF_IMG_COLOR_2, RefImageClient::REF_IMG_ID, RefImageClient::REF_IMG_ID_PRE1, RefImageClient::REF_IMG_ID_PRE2, RefImageClient::REF_IMG_ID_PRE3, RefImageClient::REF_IMG_ID_PRE4, and RefImageClient::REF_IMG_TEX_MEM.

Referenced by Patch::draw_ref_img().

int OGLTexture::draw_stencil  )  [inherited]
 

Definition at line 91 of file basic_texture.C.

References GTexture::_patch, GTexture::cb(), Patch::draw_tri_strips(), GL_ALWAYS, GL_DEPTH_TEST, GL_INCR, GL_KEEP, glColorMask(), glDisable(), glEnable(), glStencilFunc(), and glStencilOp().

virtual int RefImageClient::draw_tex_mem_ref  )  [inline, virtual, inherited]
 

Reimplemented in DotsShader, DotsShader_EX, GLSLHatching, HalftoneShader, HalftoneShaderEx, and MSLDShader.

Definition at line 57 of file ref_img_client.H.

References RefImageClient::draw_color_ref().

Referenced by RefImageClient::draw_ref_img().

void OGLTexture::draw_vert_and_edge_strips bool  disable_lights = 0,
GLfloat  line_width = 3,
GLfloat  point_size = 5,
bool  set_color = 1,
CCOLOR color = COLOR::black
const [inherited]
 

Definition at line 224 of file basic_texture.C.

References GTexture::_cb, GTexture::_patch, Patch::draw_edge_strips(), Patch::draw_vert_strips(), GL_LIGHTING, glColor3dv(), glDisable(), glLineWidth(), glPointSize(), Patch::num_edge_strips(), and Patch::num_vert_strips().

int OGLTexture::draw_vis_ref  )  [virtual, inherited]
 

Reimplemented from RefImageClient.

Reimplemented in ControlFrameTexture, ControlLineTexture, SilFrameTexture, SilsTexture, WireframeTexture, ZcrossFrameTexture, and ZcrossTexture.

Definition at line 127 of file basic_texture.C.

References GTexture::_patch, BMESHdrawable::draw(), Patch::get_tex(), VIEW::peek(), and DATA_ITEM::static_name().

Referenced by ControlLineTexture::draw_vis_ref().

virtual void GTexture::draw_with_alpha double  alpha  )  [inline, virtual, inherited]
 

Definition at line 97 of file gtexture.H.

References BMESHdrawable::draw(), VIEW::peek(), GTexture::pop_alpha(), and GTexture::push_alpha().

Referenced by FaderTexture::draw(), NormalsTexture::draw_filled_tris(), KeyLineTexture::draw_filled_tris(), HiddenLineTexture::draw_filled_tris(), GTexture::draw_filled_tris(), ControlLineTexture::draw_filled_tris(), NormalsTexture::draw_non_filled_tris(), KeyLineTexture::draw_non_filled_tris(), HiddenLineTexture::draw_non_filled_tris(), GTexture::draw_non_filled_tris(), and ControlLineTexture::draw_non_filled_tris().

virtual bool GTexture::draws_filled  )  const [inline, virtual, inherited]
 

Reimplemented in ControlFrameTexture, VertNormalsTexture, VertUVTexture, SilFrameTexture, SilsTexture, WireframeTexture, ZcrossFrameTexture, and ZcrossTexture.

Definition at line 95 of file gtexture.H.

Referenced by FaderTexture::draw(), GTexture::draw_filled_tris(), and GTexture::draw_non_filled_tris().

virtual DATA_ITEM* GLSLXToonShader::dup  )  const [inline, virtual]
 

Reimplemented from GLSLShader.

Definition at line 52 of file glsl_xtoon.H.

STDdstream & DATA_ITEM::format STDdstream d  )  const [virtual, inherited]
 

Reimplemented in Animator, JOTdone, JOTsend_geom, and BMESH.

Definition at line 194 of file data_item.C.

References DATA_ITEM::class_name(), TAGformat::end_id(), Config::get_var_bool(), TAGformat::id(), DATA_ITEM::tags(), and STDdstream::write_newline().

Referenced by JOTdone::format(), BMESH::format(), Animator::format(), JOTio::put(), and VIEW::put_view_data_file().

virtual str_ptr GLSLXToonShader::fp_filename  )  [inline, protected, virtual]
 

Reimplemented from GLSLShader.

Definition at line 181 of file glsl_xtoon.H.

References GLSLShader::fp_name().

virtual str_list GLSLShader::fp_filenames  )  [inline, protected, virtual, inherited]
 

Definition at line 191 of file glsl_shader.H.

References GLSLShader::fp_filename().

Referenced by GLSLShader::init().

str_ptr GLSLShader::fp_name Cstr_ptr &  name  )  const [inline, inherited]
 

Definition at line 52 of file glsl_shader.H.

References GLSLShader::shader_path().

Referenced by MSLDShader::fp_filename(), HalftoneShaderEx::fp_filename(), HalftoneShader::fp_filename(), fp_filename(), GLSLToonShaderHalo::fp_filename(), GLSLToonShader::fp_filename(), GLSLSolidShader::fp_filename(), GLSLLightingShader::fp_filename(), GLSLShader::fp_filename(), GLSLPerlinTest::fp_filename(), GLSLPaperShader::fp_filename(), GLSLNormalShader::fp_filename(), GLSLMarbleShader::fp_filename(), GLSLHatching::fp_filename(), GLSLHaloShader::fp_filename(), DotsShader_EX::fp_filename(), and DotsShader::fp_filename().

virtual double GLSLXToonShader::get_alpha  )  const [inline, virtual]
 

Definition at line 76 of file glsl_xtoon.H.

References _alpha.

virtual int GLSLXToonShader::get_annotate  )  const [inline, virtual]
 

Definition at line 75 of file glsl_xtoon.H.

References _annotate.

virtual COLOR GLSLXToonShader::get_color  )  const [inline, virtual]
 

Definition at line 78 of file glsl_xtoon.H.

References _color.

void GLSLXToonShader::get_layer_name TAGformat d  ) 
 

virtual str_ptr GLSLXToonShader::get_layer_name  )  const [inline, virtual]
 

Definition at line 68 of file glsl_xtoon.H.

References _layer_name.

virtual int GLSLXToonShader::get_light_cam  )  const [inline, virtual]
 

Definition at line 84 of file glsl_xtoon.H.

References _light_cam.

virtual mlib::Wvec GLSLXToonShader::get_light_coords  )  const [inline, virtual]
 

Definition at line 86 of file glsl_xtoon.H.

References _light_coords.

virtual int GLSLXToonShader::get_light_dir  )  const [inline, virtual]
 

Definition at line 82 of file glsl_xtoon.H.

References _light_dir.

virtual int GLSLXToonShader::get_light_index  )  const [inline, virtual]
 

Definition at line 80 of file glsl_xtoon.H.

References _light_index.

virtual double GLSLXToonShader::get_max_factor  )  const [inline, virtual]
 

Definition at line 90 of file glsl_xtoon.H.

References _max_factor.

virtual double GLSLXToonShader::get_smooth_detail  )  const [inline, virtual]
 

Definition at line 94 of file glsl_xtoon.H.

References _smoothDetail.

virtual double GLSLXToonShader::get_smooth_factor  )  const [inline, virtual]
 

Definition at line 92 of file glsl_xtoon.H.

References _smooth_factor.

virtual double GLSLXToonShader::get_target_length  )  const [inline, virtual]
 

Definition at line 88 of file glsl_xtoon.H.

References _target_length.

void GLSLXToonShader::get_tex_name TAGformat d  ) 
 

virtual Cstr_ptr& GLSLXToonShader::get_tex_name  )  const [inline, virtual]
 

Definition at line 59 of file glsl_xtoon.H.

References _tex_name.

virtual int GLSLXToonShader::get_transparent  )  const [inline, virtual]
 

Definition at line 74 of file glsl_xtoon.H.

References _transparent.

virtual int GLSLXToonShader::get_travel_paper  )  const [inline, virtual]
 

Definition at line 72 of file glsl_xtoon.H.

References _travel_paper.

GLint GLSLShader::get_uniform_loc Cstr_ptr &  name  )  [inline, inherited]
 

Definition at line 58 of file glsl_shader.H.

References GLSLShader::get_uniform_loc().

bool GLSLShader::get_uniform_loc Cstr_ptr &  name,
GLint &  loc
[inherited]
 

Definition at line 376 of file glsl_shader.C.

References DATA_ITEM::class_name(), glGetUniformLocation, and GLSLShader::program().

Referenced by GLSLShader::get_uniform_loc(), MSLDShader::get_variable_locs(), HalftoneShaderEx::get_variable_locs(), HalftoneShader::get_variable_locs(), get_variable_locs(), GLSLToonShaderHalo::get_variable_locs(), GLSLToonShader::get_variable_locs(), GLSLPerlinTest::get_variable_locs(), GLSLPaperShader::get_variable_locs(), GLSLMarbleShader::get_variable_locs(), GLSLHatching::get_variable_locs(), GLSLHaloShader::get_variable_locs(), DotsShader_EX::get_variable_locs(), DotsShader::get_variable_locs(), and GLSLPaperShader::set_uniform_variables().

virtual int GLSLXToonShader::get_use_paper  )  const [inline, virtual]
 

Definition at line 70 of file glsl_xtoon.H.

bool GLSLXToonShader::get_variable_locs  )  [virtual]
 

Reimplemented from GLSLShader.

Definition at line 191 of file glsl_xtoon.C.

References GTexture::_cb, _Dmap_loc, _Fpnt_loc, _Lcam_loc, _Lcoord_loc, _Ldir_loc, _Lidx_loc, _Mfct_loc, GLSLShader::_program, _Sdtl_loc, _Sfct_loc, _smoothNormal, _tex_loc, _trgt_loc, GTexture::cb(), GLSLShader::get_uniform_loc(), glGetAttribLocation, XToonStripCB::set_blendType(), and XToonStripCB::set_loc().

virtual GTexture_list GTexture::gtextures  )  const [inline, virtual, inherited]
 

Reimplemented in ColorIDTexture, ControlLineTexture, DotsShader, DotsShader_EX, GLSLHatching, HalftoneShader, HalftoneShaderEx, HiddenLineTexture, KeyLineTexture, MSLDShader, NormalsTexture, SilFrameTexture, WireframeTexture, and ZcrossFrameTexture.

Definition at line 58 of file gtexture.H.

Referenced by GTexture::pop_alpha(), GTexture::push_alpha(), and GTexture::set_patch().

bool GLSLShader::init  )  [protected, inherited]
 

Definition at line 286 of file glsl_shader.C.

References GLSLShader::activate_program(), GLSLShader::attach_shaders(), GLSLShader::bind_attributes(), DATA_ITEM::class_name(), GLSLShader::deactivate_program(), debug, GLSLShader::delete_program(), GLSLShader::did_init(), GLSLShader::fp_filenames(), GLSLShader::get_variable_locs(), GL_FRAGMENT_SHADER, GL_FRAGMENT_SHADER_ARB, GL_VERTEX_SHADER, GL_VERTEX_SHADER_ARB, glCreateProgram, glCreateProgramObjectARB, GLEW_VERSION_1_5, GLEW_VERSION_2_0, GLSLShader::link_program(), GLSLShader::load_shaders(), need_arb_ext, GL_VIEW::print_gl_errors(), GLSLShader::program(), and GLSLShader::vp_filenames().

Referenced by GLSLPaperShader::begin_glsl_paper(), GLSLShader::draw(), and GLSLToonShader::draw_start().

void GLSLXToonShader::init_textures  )  [virtual]
 

Reimplemented from GLSLShader.

Definition at line 177 of file glsl_xtoon.C.

References _tex, and GLSLShader::load_texture().

virtual int DATA_ITEM::is_of_type Cstr_ptr &  t  )  const [inline, virtual, inherited]
 

Definition at line 214 of file data_item.H.

References IS.

Referenced by BMESH::operator=().

int& GLSLXToonShader::light_cam_  )  [inline]
 

Definition at line 110 of file glsl_xtoon.H.

References _light_cam.

mlib::Wvec& GLSLXToonShader::light_coords_  )  [inline]
 

Definition at line 111 of file glsl_xtoon.H.

References _light_coords.

int& GLSLXToonShader::light_dir_  )  [inline]
 

Definition at line 109 of file glsl_xtoon.H.

References _light_dir.

int& GLSLXToonShader::light_index_  )  [inline]
 

Definition at line 108 of file glsl_xtoon.H.

References _light_index.

bool GLSLShader::link_program Cstr_ptr &  gtex_name,
GLuint  prog
[static, protected, inherited]
 

Definition at line 81 of file glsl_shader.C.

References debug, GL_LINK_STATUS, GL_OBJECT_LINK_STATUS_ARB, GL_OBJECT_VALIDATE_STATUS_ARB, GL_TRUE, glGetObjectParameterivARB, glGetProgramInfoLog, glGetProgramiv, glLinkProgram, glLinkProgramARB, glValidateProgramARB, need_arb_ext, and GLSLShader::print_info().

Referenced by GLSLShader::init().

GLuint GLSLShader::load_shader Cstr_ptr &  gtex_name,
Cstr_ptr &  filename,
GLenum  type
[static, protected, inherited]
 

Definition at line 180 of file glsl_shader.C.

References GLSLShader::compile_shader(), debug, GLSLShader::delete_shader(), glCreateShader, glCreateShaderObjectARB, glGetInfoLogARB, glGetShaderInfoLog, glShaderSource, glShaderSourceARB, need_arb_ext, and GLSLShader::read_file().

Referenced by GLSLShader::load_shaders().

bool GLSLShader::load_shaders Cstr_ptr &  gtex_name,
Cstr_list &  filenames,
ARRAY< GLuint > &  shaders,
GLenum  type
[static, protected, inherited]
 

Definition at line 243 of file glsl_shader.C.

References debug, GLSLShader::delete_shaders(), GLSLShader::load_shader(), need_arb_ext, and GLSLShader::print_shader_source().

Referenced by GLSLShader::init().

bool GLSLShader::load_texture TEXTUREglptr &  tex  )  [static, inherited]
 

Definition at line 391 of file glsl_shader.C.

Referenced by GLSLShader::activate_texture(), init_textures(), GLSLToonShaderHalo::init_textures(), GLSLToonShader::init_textures(), GLSLPerlinTest::init_textures(), GLSLPaperShader::init_textures(), and GLSLMarbleShader::init_textures().

static DATA_ITEM* DATA_ITEM::lookup Cstr_ptr &  d  )  [inline, static, inherited]
 

Definition at line 222 of file data_item.H.

References DATA_ITEM::_hash, and HASH::find().

Referenced by DATA_ITEM::Decode(), FUNC_ITEM::FUNC_ITEM(), Patch::get_tex(), and BMESH::read_jot_stream().

BMESH* GTexture::mesh  )  const [inline, inherited]
 

Definition at line 42 of file gtexture.H.

References GTexture::_patch, and Patch::mesh().

Referenced by ControlFrameTexture::build_strip(), VertUVTexture::draw(), VertNormalsTexture::draw(), ControlLineTexture::draw(), ControlFrameTexture::draw_level(), and OGLTexture::set_face_culling().

bool GLSLXToonShader::normals_cylindric  )  [inline]
 

Definition at line 116 of file glsl_xtoon.H.

References _normals_cylindric.

bool GLSLXToonShader::normals_elliptic  )  [inline]
 

Definition at line 114 of file glsl_xtoon.H.

References _normals_elliptic.

bool GLSLXToonShader::normals_smoothed  )  [inline]
 

Definition at line 113 of file glsl_xtoon.H.

References _normals_smoothed.

bool GLSLXToonShader::normals_spheric  )  [inline]
 

Definition at line 115 of file glsl_xtoon.H.

References _normals_spheric.

Patch* GTexture::patch  )  const [inline, inherited]
 

Definition at line 41 of file gtexture.H.

References GTexture::_patch.

Referenced by VertUVTexture::compute_UV_grads(), HalftoneShaderEx::draw(), ControlFrameTexture::draw_selected_edges(), ControlFrameTexture::draw_selected_faces(), ControlFrameTexture::draw_selected_verts(), and DotsShader_EX::draw_tex_mem_ref().

virtual void GTexture::pop_alpha  )  [inline, virtual, inherited]
 

Reimplemented in TriStripsTexture.

Definition at line 78 of file gtexture.H.

References GTexture::_alphas, GTexture::gtextures(), ARRAY< T >::pop(), and GTexture_list::pop_alpha().

Referenced by GTexture::draw_with_alpha(), TriStripsTexture::pop_alpha(), and GTexture_list::pop_alpha().

void GLSLShader::print_info Cstr_ptr &  gtex_name,
GLuint  obj
[static, protected, inherited]
 

Definition at line 62 of file glsl_shader.C.

References GL_OBJECT_INFO_LOG_LENGTH_ARB, glGetInfoLogARB, glGetObjectParameterivARB, and GL_VIEW::print_gl_errors().

Referenced by GLSLShader::compile_shader(), and GLSLShader::link_program().

void GLSLShader::print_shader_source GLuint  shader  )  [static, protected, inherited]
 

Definition at line 46 of file glsl_shader.C.

References GL_OBJECT_SHADER_SOURCE_LENGTH_ARB, glGetObjectParameterivARB, and glGetShaderSourceARB.

Referenced by GLSLShader::load_shaders().

virtual GLuint& GLSLShader::program  )  [inline, virtual, inherited]
 

Reimplemented in DotsShader, DotsShader_EX, GLSLHaloShader, GLSLHatching, GLSLNormalShader, GLSLPaperShader, GLSLLightingShader, GLSLSolidShader, GLSLToonShader, and MSLDShader.

Definition at line 80 of file glsl_shader.H.

References GLSLShader::_program.

Referenced by GLSLShader::activate_program(), GLSLShader::draw(), GLSLShader::get_uniform_loc(), HalftoneShaderEx::get_variable_locs(), and GLSLShader::init().

virtual void GTexture::push_alpha double  a  )  [inline, virtual, inherited]
 

Reimplemented in TriStripsTexture.

Definition at line 74 of file gtexture.H.

References GTexture::_alphas, GTexture::gtextures(), and GTexture_list::push_alpha().

Referenced by GTexture::draw_with_alpha(), TriStripsTexture::push_alpha(), and GTexture_list::push_alpha().

void GLSLXToonShader::put_layer_name TAGformat d  )  const
 

void GLSLXToonShader::put_tex_name TAGformat d  )  const
 

char * GLSLShader::read_file Cstr_ptr &  gtex_name,
Cstr_ptr &  filename,
GLint &  len
[static, protected, inherited]
 

Definition at line 137 of file glsl_shader.C.

Referenced by GLSLShader::load_shader().

virtual int GTexture::read_stream istream &  ,
str_list
[inline, virtual, inherited]
 

Reimplemented in SolidColorTexture.

Definition at line 123 of file gtexture.H.

Referenced by Patch::read_texture().

virtual void DATA_ITEM::recompute  )  [inline, virtual, inherited]
 

Reimplemented in Patch.

Definition at line 208 of file data_item.H.

Referenced by DATA_ITEM::decode().

void GLSLShader::restore_gl_state  )  const [virtual, inherited]
 

Definition at line 439 of file glsl_shader.C.

References glPopAttrib().

Referenced by GLSLShader::draw(), GLSLToonShader::draw_end(), and GLSLPaperShader::end_glsl_paper().

virtual void GLSLXToonShader::set_alpha double  a  )  [inline, virtual]
 

Definition at line 77 of file glsl_xtoon.H.

References _alpha, and _update_uniforms.

void GTexture::set_cb StripCB cb  )  [inline, inherited]
 

Definition at line 45 of file gtexture.H.

References GTexture::_cb.

Referenced by LineDrawingTexture::draw(), and CurvatureTexture::draw().

virtual int GLSLXToonShader::set_color CCOLOR c  )  [inline, virtual]
 

Reimplemented from GTexture.

Definition at line 79 of file glsl_xtoon.H.

References _color, and _update_uniforms.

void GTexture::set_ctrl GTexture c  )  [inline, inherited]
 

Definition at line 48 of file gtexture.H.

References GTexture::_ctrl.

Referenced by FaderTexture::draw(), and FaderTexture::FaderTexture().

static void DATA_ITEM::set_default_decoder DATA_ITEM *(*)(STDdstream &, Cstr_ptr &, DATA_ITEM *)  d  )  [inline, static, inherited]
 

Definition at line 218 of file data_item.H.

References DATA_ITEM::_decode_unknown.

void GLSLXToonShader::set_detail_map int  dmap  )  [inline]
 

Definition at line 112 of file glsl_xtoon.H.

References _detail_map, and _update_uniforms.

bool OGLTexture::set_face_culling  )  const [inherited]
 

Definition at line 112 of file basic_texture.C.

References get_cur_mesh(), Config::get_var_bool(), GL_CULL_FACE, glDisable(), glEnable(), BMESH::is_closed_surface(), and GTexture::mesh().

Referenced by XToonTexture::draw(), ToonTexture_1D::draw(), SolidColorTexture::draw(), SmoothShadeTexture::draw(), FlatShadeTexture::draw(), ColorIDTexture::draw(), and GLSLShader::set_gl_state().

void GLSLXToonShader::set_gl_state GLbitfield  mask = 0  )  const [virtual]
 

Reimplemented from GLSLShader.

Definition at line 169 of file glsl_xtoon.C.

References GL_BLEND, GL_COLOR_BUFFER_BIT, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, glBlendFunc(), glEnable(), and GLSLShader::set_gl_state().

void GLSLXToonShader::set_inv_detail bool  b  )  [inline]
 

Definition at line 118 of file glsl_xtoon.H.

References _invert_detail, and _update_uniforms.

virtual void GLSLXToonShader::set_layer_name Cstr_ptr  ln  )  [inline, virtual]
 

Definition at line 69 of file glsl_xtoon.H.

References _layer_name, and _update_uniforms.

virtual void GLSLXToonShader::set_light_cam int  c  )  [inline, virtual]
 

Definition at line 85 of file glsl_xtoon.H.

References _light_cam, and _update_uniforms.

virtual void GLSLXToonShader::set_light_coords mlib::CWvec c  )  [inline, virtual]
 

Definition at line 87 of file glsl_xtoon.H.

References _light_coords, and _update_uniforms.

virtual void GLSLXToonShader::set_light_dir int  d  )  [inline, virtual]
 

Definition at line 83 of file glsl_xtoon.H.

References _light_dir, and _update_uniforms.

virtual void GLSLXToonShader::set_light_index int  i  )  [inline, virtual]
 

Definition at line 81 of file glsl_xtoon.H.

References _light_index, and _update_uniforms.

virtual void GLSLXToonShader::set_max_factor double  f  )  [inline, virtual]
 

Definition at line 91 of file glsl_xtoon.H.

References _max_factor, and _update_uniforms.

void GLSLXToonShader::set_normals int  i  ) 
 

Definition at line 133 of file glsl_xtoon.C.

References GTexture::_cb, _normals_cylindric, _normals_elliptic, _normals_smoothed, _normals_spheric, GTexture::_patch, _smoothNormal, GTexture::cb(), Patch::changed(), and XToonStripCB::set_blendType().

virtual void GTexture::set_patch Patch p  )  [inline, virtual, inherited]
 

Reimplemented in DotsShader_EX, and HalftoneShaderEx.

Definition at line 60 of file gtexture.H.

References GTexture::_patch, GTexture::changed(), GTexture::gtextures(), and GTexture_list::set_patch().

Referenced by GLSLPaperShader::begin_glsl_paper(), GLSLPaperShader::end_glsl_paper(), Patch::get_tex(), HalftoneShaderEx::set_patch(), GTexture_list::set_patch(), and DotsShader_EX::set_patch().

void GLSLShader::set_ref_tex_shader  )  [protected, virtual, inherited]
 

Definition at line 445 of file glsl_shader.C.

References GLSLShader::_tex_ref_shader.

virtual void GLSLXToonShader::set_smooth_detail int  d  )  [inline, virtual]
 

Definition at line 95 of file glsl_xtoon.H.

References _smoothDetail, and _update_uniforms.

virtual void GLSLXToonShader::set_smooth_factor double  f  )  [inline, virtual]
 

Definition at line 93 of file glsl_xtoon.H.

References _smooth_factor, and _update_uniforms.

virtual void GLSLXToonShader::set_target_length double  t  )  [inline, virtual]
 

Definition at line 89 of file glsl_xtoon.H.

References _target_length, and _update_uniforms.

void GLSLXToonShader::set_tex Cstr_ptr &  full_path_name  ) 
 

Definition at line 155 of file glsl_xtoon.C.

References _tex, GL_CLAMP_TO_EDGE, and Config::JOT_ROOT().

Referenced by GLSLXToonShader(), and set_tex_name().

virtual void GLSLXToonShader::set_tex_name Cstr_ptr &  tn  )  [inline, virtual]
 

Definition at line 60 of file glsl_xtoon.H.

References _tex_name, and set_tex().

virtual void GLSLXToonShader::set_travel_paper int  t  )  [inline, virtual]
 

Definition at line 73 of file glsl_xtoon.H.

References _travel_paper, and _update_uniforms.

bool GLSLXToonShader::set_uniform_variables  )  const [virtual]
 

Reimplemented from GLSLShader.

Definition at line 215 of file glsl_xtoon.C.

References _detail_map, _Dmap_loc, _Fpnt_loc, _Lcam_loc, _Lcoord_loc, _Ldir_loc, _Lidx_loc, _light_cam, _light_coords, _light_dir, _light_index, _max_factor, _Mfct_loc, _Sdtl_loc, _Sfct_loc, _smooth_factor, _smoothDetail, _target_length, _tex, _tex_loc, _trgt_loc, GL_TEXTURE0, glUniform1f, glUniform1i, glUniform3fv, glUniform4fv, and VIEW::peek_cam().

virtual void GLSLXToonShader::set_use_paper int  p  )  [inline, virtual]
 

Definition at line 71 of file glsl_xtoon.H.

References _update_uniforms, and _use_paper.

str_ptr GLSLShader::shader_path  )  const [inline, inherited]
 

Definition at line 48 of file glsl_shader.H.

References Config::JOT_ROOT().

Referenced by GLSLShader::fp_name(), and GLSLShader::vp_name().

static STAT_STR_RET RefImageClient::static_name  )  [inline, static, inherited]
 

Definition at line 44 of file ref_img_client.H.

References RET_STAT_STR.

Referenced by BMESH::operator=().

STAT_STR_RET DATA_ITEM::static_name  )  [static, inherited]
 

Definition at line 31 of file data_item.C.

References RET_STAT_STR.

Referenced by BALLwidget_anchor::BALLwidget_anchor(), CAMwidget_anchor::CAMwidget_anchor(), Patch::cur_tex(), OGLTexture::draw_id_ref(), OGLTexture::draw_id_triangles(), OGLTexture::draw_vis_ref(), VIEW::get_view_animator(), GRIDwidget_anchor::GRIDwidget_anchor(), and toggle_sil_frame().

CTAGlist & GTexture::tags  )  const [virtual, inherited]
 

Reimplemented from DATA_ITEM.

Reimplemented in SolidColorTexture, ToonTexture_1D, and XToonTexture.

Definition at line 15 of file gtexture.C.

Referenced by XToonTexture::tags(), ToonTexture_1D::tags(), and SolidColorTexture::tags().

int& GLSLXToonShader::travel_paper_  )  [inline]
 

Definition at line 105 of file glsl_xtoon.H.

References _travel_paper.

STAT_STR_RET GTexture::type  )  const [inline, inherited]
 

Definition at line 37 of file gtexture.H.

References DATA_ITEM::class_name().

void GLSLXToonShader::update_curvatures bool  b  ) 
 

int& GLSLXToonShader::use_paper_  )  [inline]
 

Definition at line 104 of file glsl_xtoon.H.

References _use_paper.

void GLSLShader::use_program GLuint  prog  )  [static, protected, inherited]
 

Definition at line 366 of file glsl_shader.C.

References glUseProgram, glUseProgramObjectARB, and need_arb_ext.

Referenced by GLSLShader::activate_program(), and GLSLShader::deactivate_program().

virtual ref_img_t RefImageClient::use_ref_image  )  [inline, virtual, inherited]
 

Reimplemented in GEOM, DotsShader, DotsShader_EX, GLSLHatching, HalftoneShader, HalftoneShaderEx, MSLDShader, BMESH, and Patch.

Definition at line 60 of file ref_img_client.H.

References RefImageClient::REF_IMG_NONE.

Referenced by OGLTexture::draw_id_ref(), and Patch::use_ref_image().

void GLSLShader::use_ref_tex_shader  )  [protected, virtual, inherited]
 

Definition at line 452 of file glsl_shader.C.

virtual str_ptr GLSLXToonShader::vp_filename  )  [inline, protected, virtual]
 

Reimplemented from GLSLShader.

Definition at line 180 of file glsl_xtoon.H.

References GLSLShader::vp_name().

virtual str_list GLSLShader::vp_filenames  )  [inline, protected, virtual, inherited]
 

Definition at line 186 of file glsl_shader.H.

References GLSLShader::vp_filename().

Referenced by GLSLShader::init().

str_ptr GLSLShader::vp_name Cstr_ptr &  name  )  const [inline, inherited]
 

Definition at line 51 of file glsl_shader.H.

References GLSLShader::shader_path().

Referenced by MSLDShader::vp_filename(), HalftoneShaderEx::vp_filename(), HalftoneShader::vp_filename(), vp_filename(), GLSLToonShaderHalo::vp_filename(), GLSLToonShader::vp_filename(), GLSLSolidShader::vp_filename(), GLSLLightingShader::vp_filename(), GLSLShader::vp_filename(), GLSLPerlinTest::vp_filename(), GLSLPaperShader::vp_filename(), GLSLNormalShader::vp_filename(), GLSLMarbleShader::vp_filename(), GLSLHatching::vp_filename(), GLSLHaloShader::vp_filename(), DotsShader_EX::vp_filename(), and DotsShader::vp_filename().

virtual int GTexture::write_data ostream &   )  const [inline, virtual, inherited]
 

Definition at line 124 of file gtexture.H.

Referenced by GTexture::write_stream().

virtual int GTexture::write_stream ostream &  os  )  const [inline, virtual, inherited]
 

Reimplemented in SolidColorTexture.

Definition at line 125 of file gtexture.H.

References GTexture::_begin_tag, GTexture::_end_tag, DATA_ITEM::class_name(), and GTexture::write_data().

Referenced by GTexture_list::write_stream().


Member Data Documentation

double GLSLXToonShader::_alpha [protected]
 

Definition at line 139 of file glsl_xtoon.H.

Referenced by alpha_(), get_alpha(), and set_alpha().

ARRAY<double> GTexture::_alphas [protected, inherited]
 

Definition at line 145 of file gtexture.H.

Referenced by GTexture::alpha(), GTexture::pop_alpha(), and GTexture::push_alpha().

int GLSLXToonShader::_annotate [protected]
 

Definition at line 137 of file glsl_xtoon.H.

Referenced by get_annotate().

Cstr_ptr GTexture::_begin_tag [static, protected, inherited]
 

Definition at line 153 of file gtexture.H.

Referenced by SolidColorTexture::write_stream(), and GTexture::write_stream().

StripCB* GTexture::_cb [protected, inherited]
 

Definition at line 141 of file gtexture.H.

Referenced by GTexture::cb(), XToonTexture::draw(), WireframeTexture::draw(), TriStripsTexture::draw(), ToonTexture_1D::draw(), SolidColorTexture::draw(), SmoothShadeTexture::draw(), SilsTexture::draw(), LineDrawingTexture::draw(), GLSLShader::draw(), FlatShadeTexture::draw(), CurvatureTexture::draw(), CreasesTexture::draw(), ColorIDTexture::draw(), ControlFrameTexture::draw_level(), OGLTexture::draw_vert_and_edge_strips(), get_variable_locs(), GTexture::set_cb(), set_normals(), and GTexture::~GTexture().

COLOR GLSLXToonShader::_color [protected]
 

Definition at line 138 of file glsl_xtoon.H.

Referenced by color_(), get_color(), and set_color().

int DATA_ITEM::_copy [protected, inherited]
 

Definition at line 197 of file data_item.H.

Referenced by DATA_ITEM::Decode().

GTexture* GTexture::_ctrl [protected, inherited]
 

Definition at line 149 of file gtexture.H.

Referenced by GTexture::ctrl(), ZcrossTexture::draw(), ZcrossFrameTexture::draw(), XToonTexture::draw(), WireframeTexture::draw(), ToonTexture_1D::draw(), SolidColorTexture::draw(), SmoothShadeTexture::draw(), SilsTexture::draw(), SilFrameTexture::draw(), NormalsTexture::draw(), VertUVTexture::draw(), VertNormalsTexture::draw(), LineDrawingTexture::draw(), KeyLineTexture::draw(), HiddenLineTexture::draw(), FlatShadeTexture::draw(), CurvatureTexture::draw(), CreasesTexture::draw(), ControlLineTexture::draw(), ControlFrameTexture::draw(), HiddenLineTexture::draw_final(), ControlLineTexture::draw_final(), and GTexture::set_ctrl().

TAGlist DATA_ITEM::_DEFINERtags [protected, inherited]
 

Definition at line 198 of file data_item.H.

Referenced by DATA_ITEM::tags().

int GLSLXToonShader::_detail_map [protected]
 

Definition at line 144 of file glsl_xtoon.H.

Referenced by set_detail_map(), and set_uniform_variables().

bool GLSLShader::_did_init [protected, inherited]
 

Reimplemented in DotsShader, DotsShader_EX, GLSLHaloShader, GLSLHatching, GLSLNormalShader, GLSLPaperShader, GLSLLightingShader, GLSLSolidShader, GLSLToonShader, and MSLDShader.

Definition at line 126 of file glsl_shader.H.

Referenced by GLSLShader::did_init().

DLhandler BasicTexture::_dl [protected, inherited]
 

Definition at line 89 of file basic_texture.H.

Referenced by BasicTexture::changed(), BasicTexture::delete_dl(), BasicTexture::dl_valid(), XToonTexture::draw(), WireframeTexture::draw(), ToonTexture_1D::draw(), SolidColorTexture::draw(), SmoothShadeTexture::draw(), VertUVTexture::draw(), VertNormalsTexture::draw(), LineDrawingTexture::draw(), GLSLShader::draw(), FlatShadeTexture::draw(), CurvatureTexture::draw(), CreasesTexture::draw(), ControlFrameTexture::draw(), ColorIDTexture::draw(), and BasicTexture::draw().

GLint GLSLXToonShader::_Dmap_loc [protected]
 

Definition at line 164 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

Cstr_ptr GTexture::_end_tag [static, protected, inherited]
 

Definition at line 154 of file gtexture.H.

Referenced by SolidColorTexture::write_stream(), and GTexture::write_stream().

GLint GLSLXToonShader::_Fpnt_loc [protected]
 

Definition at line 169 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

double GLSLXToonShader::_frame_rate [protected]
 

Definition at line 153 of file glsl_xtoon.H.

Image GLSLXToonShader::_image [protected]
 

Definition at line 131 of file glsl_xtoon.H.

bool GLSLXToonShader::_invert_detail [protected]
 

Definition at line 155 of file glsl_xtoon.H.

Referenced by set_inv_detail().

str_ptr GLSLXToonShader::_layer_name [protected]
 

Definition at line 133 of file glsl_xtoon.H.

Referenced by get_layer_name(), and set_layer_name().

GLint GLSLXToonShader::_Lcam_loc [protected]
 

Definition at line 172 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

GLint GLSLXToonShader::_Lcoord_loc [protected]
 

Definition at line 173 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

GLint GLSLXToonShader::_Ldir_loc [protected]
 

Definition at line 171 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

GLint GLSLXToonShader::_Lidx_loc [protected]
 

Definition at line 170 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

int GLSLXToonShader::_light_cam [protected]
 

Definition at line 142 of file glsl_xtoon.H.

Referenced by get_light_cam(), light_cam_(), set_light_cam(), and set_uniform_variables().

mlib::Wvec GLSLXToonShader::_light_coords [protected]
 

Definition at line 143 of file glsl_xtoon.H.

Referenced by get_light_coords(), light_coords_(), set_light_coords(), and set_uniform_variables().

int GLSLXToonShader::_light_dir [protected]
 

Definition at line 141 of file glsl_xtoon.H.

Referenced by get_light_dir(), light_dir_(), set_light_dir(), and set_uniform_variables().

int GLSLXToonShader::_light_index [protected]
 

Definition at line 140 of file glsl_xtoon.H.

Referenced by get_light_index(), light_index_(), set_light_index(), and set_uniform_variables().

double GLSLXToonShader::_max_factor [protected]
 

Definition at line 146 of file glsl_xtoon.H.

Referenced by get_max_factor(), set_max_factor(), and set_uniform_variables().

GLint GLSLXToonShader::_Mfct_loc [protected]
 

Definition at line 168 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

int GLSLXToonShader::_nb_stat_frames [protected]
 

Definition at line 154 of file glsl_xtoon.H.

bool GLSLXToonShader::_normals_cylindric [protected]
 

Definition at line 150 of file glsl_xtoon.H.

Referenced by normals_cylindric(), and set_normals().

bool GLSLXToonShader::_normals_elliptic [protected]
 

Definition at line 148 of file glsl_xtoon.H.

Referenced by normals_elliptic(), and set_normals().

bool GLSLXToonShader::_normals_smoothed [protected]
 

Definition at line 147 of file glsl_xtoon.H.

Referenced by normals_smoothed(), and set_normals().

bool GLSLXToonShader::_normals_spheric [protected]
 

Definition at line 149 of file glsl_xtoon.H.

Referenced by normals_spheric(), and set_normals().

Patch* GTexture::_patch [protected, inherited]
 

Definition at line 140 of file gtexture.H.

Referenced by GTexture::alpha(), ControlFrameTexture::build_strip(), OGLTexture::check_patch_texture_map(), BasicTexture::dl_valid(), ZcrossTexture::draw(), XToonTexture::draw(), WireframeTexture::draw(), TriStripsTexture::draw(), ToonTexture_1D::draw(), SolidColorTexture::draw(), SmoothShadeTexture::draw(), SilsTexture::draw(), NormalsTexture::draw(), VertUVTexture::draw(), VertNormalsTexture::draw(), LineDrawingTexture::draw(), KeyLineTexture::draw(), GLSLLightingShader::draw(), GLSLShader::draw(), FlatShadeTexture::draw(), FaderTexture::draw(), CurvatureTexture::draw(), CreasesTexture::draw(), ControlLineTexture::draw(), ControlFrameTexture::draw(), ColorIDTexture::draw(), HiddenLineTexture::draw_final(), ControlLineTexture::draw_final(), KeyLineTexture::draw_hidden(), OGLTexture::draw_id_creases(), OGLTexture::draw_id_ref(), OGLTexture::draw_id_sils(), OGLTexture::draw_id_triangles(), OGLTexture::draw_stencil(), OGLTexture::draw_vert_and_edge_strips(), ZcrossTexture::draw_vis_ref(), SilsTexture::draw_vis_ref(), ControlLineTexture::draw_vis_ref(), OGLTexture::draw_vis_ref(), GTexture::mesh(), GTexture::patch(), GLSLShader::set_gl_state(), set_normals(), GTexture::set_patch(), MSLDShader::set_uniform_variables(), HalftoneShaderEx::set_uniform_variables(), HalftoneShader::set_uniform_variables(), GLSLPaperShader::set_uniform_variables(), GLSLNormalShader::set_uniform_variables(), DotsShader_EX::set_uniform_variables(), DotsShader::set_uniform_variables(), XToonTexture::update_cam(), XToonTexture::update_lights(), and ToonTexture_1D::update_lights().

GLuint GLSLShader::_program [protected, inherited]
 

Reimplemented in DotsShader, DotsShader_EX, GLSLHaloShader, GLSLHatching, GLSLNormalShader, GLSLPaperShader, GLSLLightingShader, GLSLSolidShader, GLSLToonShader, and MSLDShader.

Definition at line 125 of file glsl_shader.H.

Referenced by get_variable_locs(), GLSLShader::program(), and GLSLShader::~GLSLShader().

GLint GLSLXToonShader::_Sdtl_loc [protected]
 

Definition at line 165 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

GLint GLSLXToonShader::_Sfct_loc [protected]
 

Definition at line 166 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

double GLSLXToonShader::_smooth_factor [protected]
 

Definition at line 151 of file glsl_xtoon.H.

Referenced by get_smooth_factor(), set_smooth_factor(), and set_uniform_variables().

int GLSLXToonShader::_smoothDetail [protected]
 

Definition at line 159 of file glsl_xtoon.H.

Referenced by get_smooth_detail(), set_smooth_detail(), and set_uniform_variables().

int GLSLXToonShader::_smoothNormal [protected]
 

Definition at line 158 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_normals().

double GLSLXToonShader::_target_length [protected]
 

Definition at line 145 of file glsl_xtoon.H.

Referenced by get_target_length(), set_target_length(), and set_uniform_variables().

TEXTUREglptr GLSLXToonShader::_tex [protected]
 

Definition at line 130 of file glsl_xtoon.H.

Referenced by activate_textures(), init_textures(), set_tex(), and set_uniform_variables().

bool GLSLXToonShader::_tex_is_good [protected]
 

Definition at line 157 of file glsl_xtoon.H.

GLint GLSLXToonShader::_tex_loc [protected]
 

Definition at line 163 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

str_ptr GLSLXToonShader::_tex_name [protected]
 

Definition at line 132 of file glsl_xtoon.H.

Referenced by get_tex_name(), GLSLXToonShader(), and set_tex_name().

BasicTexture* GLSLShader::_tex_ref_shader [protected, inherited]
 

Definition at line 128 of file glsl_shader.H.

Referenced by GLSLShader::set_ref_tex_shader().

int GLSLXToonShader::_transparent [protected]
 

Definition at line 136 of file glsl_xtoon.H.

Referenced by get_transparent().

int GLSLXToonShader::_travel_paper [protected]
 

Definition at line 135 of file glsl_xtoon.H.

Referenced by get_travel_paper(), set_travel_paper(), and travel_paper_().

GLint GLSLXToonShader::_trgt_loc [protected]
 

Definition at line 167 of file glsl_xtoon.H.

Referenced by get_variable_locs(), and set_uniform_variables().

Cstr_ptr GTexture::_type_name [static, protected, inherited]
 

Definition at line 152 of file gtexture.H.

bool GLSLXToonShader::_update_curvatures [protected]
 

Definition at line 152 of file glsl_xtoon.H.

bool GLSLXToonShader::_update_uniforms [protected]
 

Definition at line 156 of file glsl_xtoon.H.

Referenced by set_alpha(), set_color(), set_detail_map(), set_inv_detail(), set_layer_name(), set_light_cam(), set_light_coords(), set_light_dir(), set_light_index(), set_max_factor(), set_smooth_detail(), set_smooth_factor(), set_target_length(), set_travel_paper(), and set_use_paper().

int GLSLXToonShader::_use_paper [protected]
 

Definition at line 134 of file glsl_xtoon.H.

Referenced by set_use_paper(), and use_paper_().


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