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

panda/src/testbed/panda.cxx File Reference

#include <pandabase.h>
#include <framework.h>
#include <eventHandler.h>
#include <chancfg.h>
#include <lightTransition.h>
#include <transformTransition.h>
#include <get_rel_pos.h>
#include <directionalLight.h>
#include <renderRelation.h>
#include <frustum.h>
#include <perspectiveLens.h>
#include <shaderTransition.h>
#include <texture.h>
#include <texturePool.h>
#include <spotlight.h>
#include <pt_Node.h>
#include <pt_NamedNode.h>
#include <loader.h>
#include <auto_bind.h>
#include <animControlCollection.h>
#include <trackball.h>
#include <planarSlider.h>
#include <transform2sg.h>
#include <projtexShader.h>
#include <spotlightShader.h>
#include <projtexShadower.h>
#include <spheretexHighlighter.h>
#include <spheretexReflector.h>
#include <plane.h>
#include <planeNode.h>
#include <planarReflector.h>
#include <outlineShader.h>
#include <geomLine.h>
#include <look_at.h>
#include <geomNode.h>

Go to the source code of this file.

Functions

 PT (GeomNode) geomnode
 Returns a Geom that renders the particular glyph.

 PT (RenderRelation) panda_arc
 PT (PlanarSlider) ball_slider
 PT (LensNode) tex_proj
 Allocates a new Lens just like this one.

 PT (ProjtexShader) proj_shader
 PT (Trackball) tex_proj_trackball
 PT (SpotlightShader) spot_shader
 PT (ProjtexShadower) proj_shadow
 PT (SpheretexHighlighter) highlight
 PT (SpheretexShader) spheretex
 PT (SpheretexReflector) sreflect
 PT (PlanarReflector) preflect
 PT (OutlineShader) outline_shader
void panda_overrides_func (ChanCfgOverrides &override, std::string &)
void panda_idle (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_z (CPT_Event)
void event_Z (CPT_Event)
void event_o (CPT_Event)
void load_our_models (void)
void setup_shaders (void)
void panda_keys (EventHandler &eh)
int main (int argc, char *argv[])

Variables

RenderRelation * first_arc
Loader loader
PT_NamedNode panda
PT_NamedNode ball
PT_NamedNode room
PT_NamedNode hide_ball
PT_NamedNode camera_model
bool follow_ball
PT_NamedNode spot_shaft


Detailed Description

Definition in file panda.cxx.


Function Documentation

void event_d CPT_Event   ) 
 

Definition at line 178 of file panda.cxx.

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

void event_e CPT_Event   ) 
 

Definition at line 206 of file panda.cxx.

References ball_arc, and clear_shader().

void event_h CPT_Event   ) 
 

Definition at line 193 of file panda.cxx.

References ball_arc, and clear_shader().

void event_m CPT_Event   ) 
 

Definition at line 219 of file panda.cxx.

References ball_arc, and clear_shader().

void event_o CPT_Event   ) 
 

Definition at line 260 of file panda.cxx.

References clear_shader().

void event_p CPT_Event   ) 
 

Definition at line 129 of file panda.cxx.

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

void event_r CPT_Event   ) 
 

Definition at line 232 of file panda.cxx.

References clear_shader(), and room_arc.

void event_s CPT_Event   ) 
 

Definition at line 155 of file panda.cxx.

References ball_arc, clear_shader(), room_arc, set_alt_trackball(), and spot_shaft.

void event_Z CPT_Event   ) 
 

Definition at line 249 of file panda.cxx.

void event_z CPT_Event   ) 
 

Definition at line 245 of file panda.cxx.

References follow_ball.

void load_our_models void   ) 
 

Definition at line 273 of file panda.cxx.

References ball, ball_arc, camera_model, follow_ball, hide_ball, hide_ball_arc, loader, panda, room, and room_arc.

int main int  argc,
char *  argv[]
 

Definition at line 461 of file panda.cxx.

References extra_overrides_func, and panda_overrides_func().

void panda_idle void   ) 
 

Definition at line 99 of file panda.cxx.

void panda_keys EventHandler eh  ) 
 

Definition at line 441 of file panda.cxx.

void panda_overrides_func ChanCfgOverrides override,
std::string & 
 

Definition at line 93 of file panda.cxx.

Referenced by main().

PT OutlineShader   ) 
 

PT PlanarReflector   ) 
 

PT SpheretexReflector   ) 
 

PT SpheretexShader   ) 
 

PT SpheretexHighlighter   ) 
 

PT ProjtexShadower   ) 
 

PT SpotlightShader   ) 
 

PT Trackball   ) 
 

PT ProjtexShader   ) 
 

PT LensNode   ) 
 

Allocates a new Lens just like this one.

Definition at line 41 of file cylindricalLens.cxx.

PT PlanarSlider   ) 
 

PT RenderRelation   ) 
 

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.

void setup_shaders void   ) 
 

Definition at line 331 of file panda.cxx.

References spot_arc, spot_shaft, and tball2cam.


Variable Documentation

PT_NamedNode ball
 

Definition at line 64 of file panda.cxx.

PT_NamedNode camera_model
 

Definition at line 67 of file panda.cxx.

Referenced by herc_keys(), and load_our_models().

RenderRelation* first_arc
 

Definition at line 60 of file panda.cxx.

bool follow_ball
 

Definition at line 75 of file panda.cxx.

PT_NamedNode hide_ball
 

Definition at line 66 of file panda.cxx.

Loader loader
 

Definition at line 61 of file panda.cxx.

Referenced by event_p(), get_models(), herc_keys(), load_from_loader(), load_our_models(), lod_keys(), min_shader_keys(), and text_keys().

PT_NamedNode panda
 

Definition at line 63 of file panda.cxx.

Referenced by load_our_models().

PT_NamedNode room
 

Definition at line 65 of file panda.cxx.

Referenced by herc_keys(), load_our_models(), and min_shader_keys().

PT_NamedNode spot_shaft
 

Definition at line 83 of file panda.cxx.


Generated on Fri May 2 00:45:01 2003 for Panda by doxygen1.3