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

panda/src/testbed/shader_test.cxx File Reference

#include <eventHandler.h>
#include <projtexShader.h>
#include <shaderTransition.h>
#include <renderRelation.h>
#include <nodeRelation.h>
#include <chancfg.h>
#include <string>
#include <texGenTransition.h>
#include <colorBlendTransition.h>
#include <colorMaskTransition.h>
#include <textureTransition.h>
#include <texMatrixTransition.h>
#include <spotlightShader.h>
#include <light.h>
#include <eggLoader.h>
#include <look_at.h>
#include <transformTransition.h>
#include <geomNode.h>
#include <lightTransition.h>
#include <spotlight.h>
#include <projtexShadower.h>
#include <spheretexHighlighter.h>
#include <spheretexReflector.h>
#include <trackball.h>
#include <transform2sg.h>
#include <mouse.h>
#include <graphicsWindow.h>
#include <planarReflector.h>
#include <stencilTransition.h>
#include <plane.h>
#include <renderBuffer.h>
#include <outlineShader.h>
#include <pt_NamedNode.h>
#include <dataRelation.h>
#include <geomLine.h>
#include <dconfig.h>

Go to the source code of this file.

Compounds

class  Oldviz
class  SomeViz
class  Tiledviz
class  Viztex

Defines

#define DISPLAY_TEXPROJFRUST
#define DISPLAY_TEXPROJSPOTFRUST

Functions

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

 PT (Trackball) tex_proj_trackball
 PT (ProjtexShader) proj_shader
 PT (ProjtexShadower) proj_shadow
 PT (SpheretexShader) spheretex
 PT (SpheretexHighlighter) highlight
 PT (SpheretexReflector) sreflect
 PT (PlanarReflector) preflect
 PT (OutlineShader) outline_shader
 PT (Spotlight) tex_proj_spot
 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)
void event_s (CPT_Event)
void event_d (CPT_Event)
void event_h (CPT_Event)
void event_e (CPT_Event)
void event_m (CPT_Event)
void event_r (CPT_Event)
void event_n (CPT_Event)
void event_o (CPT_Event)
void shader_keys (EventHandler &eh)
int main (int argc, char *argv[])

Variables

ShaderTransition shader_trans
RenderRelation * room_arc
RenderRelation * spot_arc
RenderRelation * jack_arc
RenderRelation * camera_model_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 &)


Detailed Description

Definition in file shader_test.cxx.


Define Documentation

#define DISPLAY_TEXPROJFRUST
 

#define DISPLAY_TEXPROJSPOTFRUST
 


Function Documentation

Configure shader_test   ) 
 

ConfigureFn shader_test   ) 
 

Definition at line 65 of file shader_test.cxx.

References shader_trans.

void event_d CPT_Event   ) 
 

Definition at line 420 of file shader_test.cxx.

References clear_shader(), NULL, room_arc, and set_alt_trackball().

void event_e CPT_Event   ) 
 

Definition at line 450 of file shader_test.cxx.

References clear_shader(), and first_arc.

void event_h CPT_Event   ) 
 

Definition at line 436 of file shader_test.cxx.

References clear_shader(), and first_arc.

void event_m CPT_Event   ) 
 

Definition at line 465 of file shader_test.cxx.

References clear_shader(), and first_arc.

void event_n CPT_Event   ) 
 

Definition at line 495 of file shader_test.cxx.

References NULL, and set_alt_trackball().

void event_o CPT_Event   ) 
 

Definition at line 508 of file shader_test.cxx.

References clear_shader(), and first_arc.

void event_p CPT_Event   ) 
 

Definition at line 380 of file shader_test.cxx.

References clear_shader(), first_arc, jack_arc, NULL, room_arc, and set_alt_trackball().

void event_r CPT_Event   ) 
 

Definition at line 480 of file shader_test.cxx.

References clear_shader(), and first_arc.

void event_s CPT_Event   ) 
 

Definition at line 403 of file shader_test.cxx.

References clear_shader(), NULL, room_arc, and set_alt_trackball().

int framework_main int  argc,
char *  argv[]
 

int main int  argc,
char *  argv[]
 

Definition at line 715 of file shader_test.cxx.

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.

References ProjectionScreen::_last_screen, and ProjectionScreen::_stale.

PT LightTransition   ) 
 

PT Spotlight   ) 
 

PT OutlineShader   ) 
 

PT PlanarReflector   ) 
 

PT SpheretexReflector   ) 
 

PT SpheretexHighlighter   ) 
 

PT SpheretexShader   ) 
 

PT ProjtexShadower   ) 
 

PT ProjtexShader   ) 
 

PT Trackball   ) 
 

PT LensNode   ) 
 

Allocates a new Lens just like this one.

Definition at line 41 of file cylindricalLens.cxx.

References csincos(), cylindrical_k, and deg_2_rad().

void set_alt_trackball Node *  trackball  ) 
 

Referenced by event_d(), event_n(), event_p(), and event_s().

void shader_display_func void   ) 
 

Definition at line 374 of file shader_test.cxx.

void shader_keys EventHandler eh  ) 
 

Definition at line 522 of file shader_test.cxx.

References center_pos, Colorf, NULL, root, spot_arc, tball2cam, and tex.


Variable Documentation

RenderRelation* camera_model_arc
 

Definition at line 87 of file shader_test.cxx.

PT_NamedNode cameras
 

Definition at line 97 of file shader_test.cxx.

void(* define_keys)(EventHandler&)
 

Definition at line 104 of file shader_test.cxx.

void(* extra_display_func)()
 

Definition at line 103 of file shader_test.cxx.

RenderRelation* first_arc
 

Definition at line 93 of file shader_test.cxx.

NodeAttributes initial_state
 

Definition at line 92 of file shader_test.cxx.

RenderRelation* jack_arc
 

Definition at line 86 of file shader_test.cxx.

PT_NamedNode lights
 

Definition at line 94 of file shader_test.cxx.

PT_NamedNode render
 

Definition at line 91 of file shader_test.cxx.

RenderRelation* room_arc
 

Definition at line 84 of file shader_test.cxx.

PT_NamedNode root
 

Definition at line 95 of file shader_test.cxx.

ShaderTransition shader_trans
 

Definition at line 78 of file shader_test.cxx.

RenderRelation* spot_arc
 

Definition at line 85 of file shader_test.cxx.


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