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

xtoon_texture.C File Reference

#include "gtex/gl_extensions.H"
#include "gtex/paper_effect.H"
#include "geom/gl_view.H"
#include "std/config.H"
#include "xtoon_texture.H"
#include <iostream>

Include dependency graph for xtoon_texture.C:

Go to the source code of this file.

Functions

bool ntt_init_vertex_program_nv ()
bool ntt_init_vertex_program_arb ()
void ntt_init_vertex_program ()
void ntt_setup_vertex_program_nv ()
void ntt_done_vertex_program_nv ()
void ntt_setup_vertex_program_arb ()
void ntt_done_vertex_program_arb ()
void ntt_setup_vertex_program ()
void ntt_done_vertex_program ()

Variables

bool ntt_paper_flag
Wpt ntt_light_pos
Wvec ntt_light_dir
bool ntt_positional
int ntt_detail_map = XToonTexture::User
double ntt_target_length
double ntt_max_factor
double ntt_smooth_factor
int ntt_smooth_rings = 3
bool ntt_smooth_enabled = false
bool ntt_elliptic_enabled = false
bool ntt_spheric_enabled = false
bool ntt_cylindric_enabled = false
bool ntt_curv_enabled = false
Wtransf ntt_prev_matrix
Wtransf ntt_cur_matrix
bool ntt_inv_detail = false
bool ntt_is_init_vertex_program = false
bool ntt_use_vertex_program = false
bool ntt_use_vertex_program_arb = false
bool ntt_use_vertex_program_nv = false
GLuint ntt_toon_prog_nv
GLuint ntt_toon_prog_detail_arb
GLuint ntt_toon_prog_depth_arb
GLuint ntt_toon_prog_focus_arb
GLuint ntt_toon_prog_flow_arb
GLuint ntt_toon_prog_curvature_arb
GLuint ntt_toon_prog_orientation_arb
GLuint ntt_toon_prog_specularity_arb
GLuint ntt_toon_prog_lookup_arb
GLuint ntt_toon_prog_orientation_lookup_arb
GLuint ntt_toon_prog_specularity_lookup_arb
char * toon_remap_base = "nprdata/toon_textures/"
char * toon_remap_fnames [][2]
const unsigned char NPRToonShaderNV []
const unsigned char NPRToonShaderDetailARB []
const unsigned char NPRToonShaderDepthARB []
const unsigned char NPRToonShaderFocusARB []
const unsigned char NPRToonShaderFlowARB []
const unsigned char NPRToonShaderCurvatureARB []
const unsigned char NPRToonShaderOrientationARB []
const unsigned char NPRToonShaderSpecularityARB []
const unsigned char NPRToonShaderLookupARB []
const unsigned char NPRToonShaderOrientationLookupARB []
const unsigned char NPRToonShaderSpecularityLookupARB []


Function Documentation

void ntt_done_vertex_program  ) 
 

Definition at line 1309 of file xtoon_texture.C.

References ntt_done_vertex_program_arb(), ntt_done_vertex_program_nv(), ntt_use_vertex_program, ntt_use_vertex_program_arb, and ntt_use_vertex_program_nv.

Referenced by XToonTexture::draw().

void ntt_done_vertex_program_arb  ) 
 

Definition at line 1277 of file xtoon_texture.C.

References GL_FRAGMENT_PROGRAM_ARB, GL_VERTEX_PROGRAM_ARB, and glDisable().

Referenced by ntt_done_vertex_program().

void ntt_done_vertex_program_nv  ) 
 

Definition at line 1200 of file xtoon_texture.C.

References GL_IDENTITY_NV, GL_NONE, GL_VERTEX_PROGRAM_NV, glDisable(), and glTrackMatrixNV.

Referenced by ntt_done_vertex_program().

void ntt_init_vertex_program  ) 
 

Definition at line 1143 of file xtoon_texture.C.

References ERR_LEV_INFO, err_mesg(), ntt_init_vertex_program_arb(), ntt_init_vertex_program_nv(), ntt_is_init_vertex_program, ntt_use_vertex_program, ntt_use_vertex_program_arb, and ntt_use_vertex_program_nv.

Referenced by XToonTexture::draw().

bool ntt_init_vertex_program_arb  ) 
 

Definition at line 1051 of file xtoon_texture.C.

References ERR_LEV_INFO, err_mesg(), GLExtensions::gl_arb_fragment_program_supported(), GLExtensions::gl_arb_vertex_program_loaded(), GLExtensions::gl_arb_vertex_program_supported(), GL_FRAGMENT_PROGRAM_ARB, GL_PROGRAM_FORMAT_ASCII_ARB, GL_VERTEX_PROGRAM_ARB, glBindProgramARB, glGenProgramsARB, glProgramStringARB, NPRToonShaderCurvatureARB, NPRToonShaderDepthARB, NPRToonShaderDetailARB, NPRToonShaderFlowARB, NPRToonShaderFocusARB, NPRToonShaderLookupARB, NPRToonShaderOrientationARB, NPRToonShaderOrientationLookupARB, NPRToonShaderSpecularityARB, NPRToonShaderSpecularityLookupARB, ntt_is_init_vertex_program, ntt_toon_prog_curvature_arb, ntt_toon_prog_depth_arb, ntt_toon_prog_detail_arb, ntt_toon_prog_flow_arb, ntt_toon_prog_focus_arb, ntt_toon_prog_lookup_arb, ntt_toon_prog_orientation_arb, ntt_toon_prog_orientation_lookup_arb, ntt_toon_prog_specularity_arb, and ntt_toon_prog_specularity_lookup_arb.

Referenced by ntt_init_vertex_program().

bool ntt_init_vertex_program_nv  ) 
 

Definition at line 1025 of file xtoon_texture.C.

References ERR_LEV_INFO, err_mesg(), GLExtensions::gl_nv_vertex_program_supported(), GL_VERTEX_PROGRAM_NV, glBindProgramNV, glGenProgramsNV, glLoadProgramNV, NPRToonShaderNV, and ntt_toon_prog_nv.

Referenced by ntt_init_vertex_program().

void ntt_setup_vertex_program  ) 
 

Definition at line 1288 of file xtoon_texture.C.

References ntt_setup_vertex_program_arb(), ntt_setup_vertex_program_nv(), ntt_use_vertex_program, ntt_use_vertex_program_arb, and ntt_use_vertex_program_nv.

Referenced by XToonTexture::draw().

void ntt_setup_vertex_program_arb  ) 
 

Definition at line 1215 of file xtoon_texture.C.

References XToonTexture::Curvature, XToonTexture::Depth, XToonTexture::Flow, XToonTexture::Focus, GL_FRAGMENT_PROGRAM_ARB, GL_VERTEX_PROGRAM_ARB, glBindProgramARB, glEnable(), glProgramEnvParameter4dARB, ntt_detail_map, ntt_inv_detail, ntt_max_factor, ntt_positional, ntt_smooth_factor, ntt_target_length, ntt_toon_prog_curvature_arb, ntt_toon_prog_depth_arb, ntt_toon_prog_detail_arb, ntt_toon_prog_flow_arb, ntt_toon_prog_focus_arb, ntt_toon_prog_lookup_arb, ntt_toon_prog_orientation_arb, ntt_toon_prog_orientation_lookup_arb, ntt_toon_prog_specularity_lookup_arb, XToonTexture::Orientation, and XToonTexture::Specularity.

Referenced by ntt_setup_vertex_program().

void ntt_setup_vertex_program_nv  ) 
 

Definition at line 1163 of file xtoon_texture.C.

References GLExtensions::gl_arb_multitexture_supported(), GL_IDENTITY_NV, GL_MODELVIEW, GL_PROJECTION, GL_TEXTURE, GL_TEXTURE1_ARB, GL_VERTEX_PROGRAM_NV, glBindProgramNV, glEnable(), glProgramParameter4dNV, glProgramParameter4fNV, glTrackMatrixNV, ntt_positional, and ntt_toon_prog_nv.

Referenced by ntt_setup_vertex_program().


Variable Documentation

const unsigned char NPRToonShaderCurvatureARB[]
 

Definition at line 565 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

const unsigned char NPRToonShaderDepthARB[]
 

Definition at line 192 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

const unsigned char NPRToonShaderDetailARB[]
 

Definition at line 111 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

const unsigned char NPRToonShaderFlowARB[]
 

Definition at line 448 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

const unsigned char NPRToonShaderFocusARB[]
 

Definition at line 295 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

const unsigned char NPRToonShaderLookupARB[]
 

Definition at line 849 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

const unsigned char NPRToonShaderNV[]
 

Definition at line 66 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_nv().

const unsigned char NPRToonShaderOrientationARB[]
 

Definition at line 662 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

const unsigned char NPRToonShaderOrientationLookupARB[]
 

Definition at line 894 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

const unsigned char NPRToonShaderSpecularityARB[]
 

Definition at line 755 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

const unsigned char NPRToonShaderSpecularityLookupARB[]
 

Definition at line 952 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

Wtransf ntt_cur_matrix
 

Definition at line 31 of file xtoon_texture.C.

bool ntt_curv_enabled = false
 

Definition at line 29 of file xtoon_texture.C.

Referenced by ToonTexCB::faceCB(), and XToonTexture::update_curvatures().

bool ntt_cylindric_enabled = false
 

Definition at line 28 of file xtoon_texture.C.

Referenced by XToonTexture::draw(), ToonTexCB::faceCB(), and XToonTexture::update_cylindric().

int ntt_detail_map = XToonTexture::User
 

Definition at line 20 of file xtoon_texture.C.

Referenced by ToonTexCB::faceCB(), ntt_setup_vertex_program_arb(), and XToonTexture::update_cam().

bool ntt_elliptic_enabled = false
 

Definition at line 26 of file xtoon_texture.C.

Referenced by XToonTexture::draw(), ToonTexCB::faceCB(), and XToonTexture::update_elliptic().

bool ntt_inv_detail = false
 

Definition at line 32 of file xtoon_texture.C.

Referenced by ToonTexCB::faceCB(), ntt_setup_vertex_program_arb(), and XToonTexture::set_inv_detail().

bool ntt_is_init_vertex_program = false
 

Definition at line 34 of file xtoon_texture.C.

Referenced by XToonTexture::draw(), ntt_init_vertex_program(), and ntt_init_vertex_program_arb().

Wvec ntt_light_dir
 

Definition at line 18 of file xtoon_texture.C.

Wpt ntt_light_pos
 

Definition at line 17 of file xtoon_texture.C.

double ntt_max_factor
 

Definition at line 22 of file xtoon_texture.C.

Referenced by ToonTexCB::faceCB(), ntt_setup_vertex_program_arb(), and XToonTexture::update_cam().

bool ntt_paper_flag
 

Definition at line 16 of file xtoon_texture.C.

Referenced by XToonTexture::draw(), and ToonTexCB::faceCB().

bool ntt_positional
 

Definition at line 19 of file xtoon_texture.C.

Referenced by ToonTexCB::faceCB(), ntt_setup_vertex_program_arb(), ntt_setup_vertex_program_nv(), and XToonTexture::update_lights().

Wtransf ntt_prev_matrix
 

Definition at line 30 of file xtoon_texture.C.

bool ntt_smooth_enabled = false
 

Definition at line 25 of file xtoon_texture.C.

Referenced by XToonTexture::draw(), ToonTexCB::faceCB(), and XToonTexture::update_smoothing().

double ntt_smooth_factor
 

Definition at line 23 of file xtoon_texture.C.

Referenced by ntt_setup_vertex_program_arb(), and XToonTexture::update_cam().

int ntt_smooth_rings = 3
 

Definition at line 24 of file xtoon_texture.C.

Referenced by ToonTexCB::faceCB().

bool ntt_spheric_enabled = false
 

Definition at line 27 of file xtoon_texture.C.

Referenced by XToonTexture::draw(), ToonTexCB::faceCB(), and XToonTexture::update_spheric().

double ntt_target_length
 

Definition at line 21 of file xtoon_texture.C.

Referenced by ToonTexCB::faceCB(), ntt_setup_vertex_program_arb(), and XToonTexture::update_cam().

GLuint ntt_toon_prog_curvature_arb
 

Definition at line 41 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb(), and ntt_setup_vertex_program_arb().

GLuint ntt_toon_prog_depth_arb
 

Definition at line 40 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb(), and ntt_setup_vertex_program_arb().

GLuint ntt_toon_prog_detail_arb
 

Definition at line 40 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb(), and ntt_setup_vertex_program_arb().

GLuint ntt_toon_prog_flow_arb
 

Definition at line 40 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb(), and ntt_setup_vertex_program_arb().

GLuint ntt_toon_prog_focus_arb
 

Definition at line 40 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb(), and ntt_setup_vertex_program_arb().

GLuint ntt_toon_prog_lookup_arb
 

Definition at line 42 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb(), and ntt_setup_vertex_program_arb().

GLuint ntt_toon_prog_nv
 

Definition at line 39 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_nv(), and ntt_setup_vertex_program_nv().

GLuint ntt_toon_prog_orientation_arb
 

Definition at line 41 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb(), and ntt_setup_vertex_program_arb().

GLuint ntt_toon_prog_orientation_lookup_arb
 

Definition at line 42 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb(), and ntt_setup_vertex_program_arb().

GLuint ntt_toon_prog_specularity_arb
 

Definition at line 41 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb().

GLuint ntt_toon_prog_specularity_lookup_arb
 

Definition at line 42 of file xtoon_texture.C.

Referenced by ntt_init_vertex_program_arb(), and ntt_setup_vertex_program_arb().

bool ntt_use_vertex_program = false
 

Definition at line 35 of file xtoon_texture.C.

Referenced by XToonTexture::draw(), ToonTexCB::faceCB(), ntt_done_vertex_program(), ntt_init_vertex_program(), and ntt_setup_vertex_program().

bool ntt_use_vertex_program_arb = false
 

Definition at line 36 of file xtoon_texture.C.

Referenced by ntt_done_vertex_program(), ntt_init_vertex_program(), ntt_setup_vertex_program(), and XToonTexture::update_cam().

bool ntt_use_vertex_program_nv = false
 

Definition at line 37 of file xtoon_texture.C.

Referenced by ntt_done_vertex_program(), ntt_init_vertex_program(), and ntt_setup_vertex_program().

char* toon_remap_base = "nprdata/toon_textures/"
 

Definition at line 53 of file xtoon_texture.C.

Referenced by XToonTexture::update_tex().

char* toon_remap_fnames[][2]
 

Initial value:

 
{



   {NULL,            NULL}
}

Definition at line 54 of file xtoon_texture.C.

Referenced by XToonTexture::update_tex().


Generated on Mon Sep 18 11:44:06 2006 for jot by  doxygen 1.4.4