Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/testbed/min_shader.cxx File Reference

#include <projtexShader.h>
#include <spotlightShader.h>
#include <projtexShadower.h>
#include <planarReflector.h>
#include <spheretexReflector.h>
#include <spheretexHighlighter.h>
#include <outlineShader.h>
#include <chancfg.h>
#include <texture.h>
#include <texturePool.h>
#include <textureTransition.h>
#include <shaderTransition.h>
#include <lightTransition.h>
#include <transformTransition.h>
#include <colorBlendTransition.h>
#include <light.h>
#include <spotlight.h>
#include <pt_NamedNode.h>
#include <geomNode.h>
#include <renderRelation.h>
#include <nodeRelation.h>
#include <dataRelation.h>
#include <dconfig.h>
#include <framework.h>
#include <loader.h>
#include <eventHandler.h>
#include <transform2sg.h>
#include <look_at.h>
#include <perspectiveLens.h>
#include <geomLine.h>

Go to the source code of this file.

Compounds

class  BaseViz
class  Oldviz
class  Tiledviz
class  Viztex

Defines

#define DISPLAY_TEXPROJFRUST
#define DISPLAY_TEXPROJSPOTFRUST
#define DISPLAY_SHAFT

Functions

 Configure (min_shader)
 ConfigureFn (min_shader)
 PT (LensNode) tex_proj
 Allocates a new Lens just like this one.

 PT (Trackball) tex_proj_trackball
 PT (ProjtexShader) proj_shader
 PT (Spotlight) tex_proj_spot
 PT (ProjtexShadower) proj_shadow
 PT (PlanarReflector) preflect
 PT (SpheretexShader) spheretex
 PT (SpheretexHighlighter) highlight
 PT (SpheretexReflector) sreflect
 PT (OutlineShader) outline_shader
 PT (LightTransition) light_transition
 PT (GeomNode) geomnode
 Returns a Geom that renders the particular glyph.

 PT (MouseAndKeyboard) mak
void set_alt_trackball (Node *trackball)
int framework_main (int argc, char *argv[])
 PT (GraphicsWindow) main_win
 Creates a new window on the pipe, if possible.

void shader_display_func (void)
void event_p (CPT_Event)
 Toggle the projective texture being on and off.

void event_s (CPT_Event)
 Toggle the spotlight being on and off.

void event_d (CPT_Event)
 Toggle projected shadows.

void event_r (CPT_Event)
 Toggle planar reflection.

void event_e (CPT_Event)
 Toggle sphere texture.

void event_h (CPT_Event)
 Toggle sphere texture highlight.

void event_m (CPT_Event)
 Toggle sphere texture reflector.

void event_o (CPT_Event)
 Toggle outline shader.

void setup_projtex (void)
void setup_spotlight (void)
void setup_planar (void)
void setup_projshadow (void)
void setup_vizes (void)
void min_shader_keys (EventHandler &eh)
 Set event handlers for the various keys needed, and do any initialization necessary.

int main (int argc, char *argv[])

Variables

ShaderTransition shader_trans
RenderRelation * room_arc
RenderRelation * spot_arc
RenderRelation * jack_arc
RenderRelation * camera_model_arc
RenderRelation * smiley_arc
PT_NamedNode render
NodeAttributes initial_state
RenderRelation * first_arc
PT_NamedNode lights
PT_NamedNode root
PT_NamedNode cameras
void(* extra_display_func )()
void(* define_keys )(EventHandler &)
LPoint3f center_pos = LPoint3f::origin()
Transform2SGtball2cam
Texturetex


Detailed Description

Definition in file min_shader.cxx.


Define Documentation

#define DISPLAY_SHAFT
 

#define DISPLAY_TEXPROJFRUST
 

#define DISPLAY_TEXPROJSPOTFRUST
 


Function Documentation

Configure min_shader   ) 
 

ConfigureFn min_shader   ) 
 

Definition at line 72 of file min_shader.cxx.

References room_arc, and shader_trans.

void event_d CPT_Event   ) 
 

Toggle projected shadows.

Definition at line 440 of file min_shader.cxx.

References room_arc, set_alt_trackball(), and set_shader().

void event_e CPT_Event   ) 
 

Toggle sphere texture.

Definition at line 491 of file min_shader.cxx.

References clear_shader(), jack_arc, and set_shader().

void event_h CPT_Event   ) 
 

Toggle sphere texture highlight.

Definition at line 515 of file min_shader.cxx.

References clear_shader(), and jack_arc.

void event_m CPT_Event   ) 
 

Toggle sphere texture reflector.

Definition at line 536 of file min_shader.cxx.

void event_o CPT_Event   ) 
 

Toggle outline shader.

Definition at line 558 of file min_shader.cxx.

References center_pos, and tball2cam.

void event_p CPT_Event   ) 
 

Toggle the projective texture being on and off.

Definition at line 385 of file min_shader.cxx.

void event_r CPT_Event   ) 
 

Toggle planar reflection.

Definition at line 467 of file min_shader.cxx.

References clear_shader(), jack_arc, and set_shader().

void event_s CPT_Event   ) 
 

Toggle the spotlight being on and off.

Definition at line 415 of file min_shader.cxx.

int framework_main int  argc,
char *  argv[]
 

int main int  argc,
char *  argv[]
 

Definition at line 859 of file min_shader.cxx.

void min_shader_keys EventHandler eh  ) 
 

Set event handlers for the various keys needed, and do any initialization necessary.

Definition at line 764 of file min_shader.cxx.

References loader, NULL, room, and room_arc.

PT GraphicsWindow   )  [inline]
 

Creates a new window on the pipe, if possible.

Definition at line 37 of file chancfg.I.

PT MouseAndKeyboard   ) 
 

PT Geom   )  [inline]
 

Returns a Geom that renders the particular glyph.

This generates and returns a new GeomNode but does not automatically parent it to the ProjectionScreen node; see regenerate_screen().

The specified projector need not be the same as the projector given to the ProjectionScreen with set_projector() (although this is often what you want).

num_x_verts and num_y_verts specify the number of vertices to make in the grid across the horizontal and vertical dimension of the projector, respectively; distance represents the approximate distance of the screen from the lens center.

Definition at line 237 of file projectionScreen.cxx.

PT LightTransition   ) 
 

PT OutlineShader   ) 
 

PT SpheretexReflector   ) 
 

PT SpheretexHighlighter   ) 
 

PT SpheretexShader   ) 
 

PT PlanarReflector   ) 
 

PT ProjtexShadower   ) 
 

PT Spotlight   ) 
 

PT ProjtexShader   ) 
 

PT Trackball   ) 
 

PT LensNode   ) 
 

Allocates a new Lens just like this one.

Definition at line 41 of file cylindricalLens.cxx.

void set_alt_trackball Node *  trackball  ) 
 

void setup_planar void   ) 
 

Definition at line 691 of file min_shader.cxx.

References Shader::get_viz(), and PT.

void setup_projshadow void   ) 
 

Definition at line 707 of file min_shader.cxx.

void setup_projtex void   ) 
 

Definition at line 578 of file min_shader.cxx.

void setup_spotlight void   ) 
 

Definition at line 628 of file min_shader.cxx.

References Colorf.

void setup_vizes void   ) 
 

Definition at line 729 of file min_shader.cxx.

References tex.

void shader_display_func void   ) 
 

Definition at line 369 of file min_shader.cxx.


Variable Documentation

RenderRelation* camera_model_arc
 

Definition at line 101 of file min_shader.cxx.

PT_NamedNode cameras
 

Definition at line 113 of file min_shader.cxx.

LPoint3f center_pos = LPoint3f::origin()
 

Definition at line 125 of file min_shader.cxx.

Referenced by event_o(), and shader_keys().

void(* define_keys)(EventHandler&)
 

Definition at line 120 of file min_shader.cxx.

void(* extra_display_func)()
 

Definition at line 119 of file min_shader.cxx.

RenderRelation* first_arc
 

Definition at line 109 of file min_shader.cxx.

NodeAttributes initial_state
 

Definition at line 108 of file min_shader.cxx.

RenderRelation* jack_arc
 

Definition at line 100 of file min_shader.cxx.

Referenced by event_e(), event_h(), event_p(), and event_r().

PT_NamedNode lights
 

Definition at line 110 of file min_shader.cxx.

PT_NamedNode render
 

Definition at line 107 of file min_shader.cxx.

RenderRelation* room_arc
 

Definition at line 98 of file min_shader.cxx.

PT_NamedNode root
 

Definition at line 111 of file min_shader.cxx.

ShaderTransition shader_trans
 

Definition at line 96 of file min_shader.cxx.

RenderRelation* smiley_arc
 

Definition at line 102 of file min_shader.cxx.

RenderRelation* spot_arc
 

Definition at line 99 of file min_shader.cxx.

Transform2SG* tball2cam
 

Definition at line 126 of file min_shader.cxx.

Referenced by WindowFramework::enable_keyboard(), event_o(), herc_keys(), setup_shaders(), and shader_keys().

Texture* tex
 

Definition at line 127 of file min_shader.cxx.

Referenced by EggTextureCollection::add_texture(), DXGraphicsStateGuardian8::apply_texture(), EggLoader::apply_texture_attributes(), GLGraphicsStateGuardian::begin_bind_clip_planes(), GLGraphicsStateGuardian::begin_bind_lights(), GLGraphicsStateGuardian::bind_texture(), CRGraphicsStateGuardian::bind_texture(), EggMaterialCollection::collapse_equivalent_materials(), EggTextureCollection::collapse_equivalent_textures(), SomeViz::DisplayTexture(), BaseViz::DisplayTexture(), GLGraphicsStateGuardian::draw_geom_node(), CRGraphicsStateGuardian::draw_geom_node(), RIBGraphicsStateGuardian::draw_quad(), DXGraphicsStateGuardian8::draw_sphere(), RIBGraphicsStateGuardian::draw_sprite(), CRGraphicsStateGuardian::draw_sprite(), CRGraphicsStateGuardian::get_internal_coordinate_system(), SpriteParticleRenderer::get_source_type(), herc_keys(), EggMaterialCollection::insert_materials(), EggTextureCollection::insert_textures(), WindowFramework::load_model(), TexturePool::ns_add_texture(), TexturePool::ns_release_texture(), draw_sprite_vertex_less::operator()(), GLGraphicsStateGuardian::prepare_texture(), CRGraphicsStateGuardian::prepare_texture(), EggGroupNode::r_transform_vertices(), CRGraphicsStateGuardian::release_geom_node(), EggGroupNode::remove_child(), EggMaterialCollection::remove_unused_materials(), EggTextureCollection::remove_unused_textures(), CRGraphicsStateGuardian::set_ambient_light(), WindowFramework::set_background_type(), CRGraphicsStateGuardian::set_blend_mode(), GLGraphicsStateGuardian::set_draw_buffer(), GLGraphicsStateGuardian::set_read_buffer(), CRGraphicsStateGuardian::set_read_buffer(), RIBGraphicsStateGuardian::set_texture_directory(), setup_vizes(), shader_keys(), SpriteParticleRenderer::SpriteParticleRenderer(), text_keys(), EggMaterialCollection::uniquify_mrefs(), EggTextureCollection::uniquify_trefs(), BaseViz::~BaseViz(), and SomeViz::~SomeViz().


Generated on Fri May 2 00:46:15 2003 for Panda by doxygen1.3