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

panda/src/testbed/demo.cxx File Reference

#include "framework.h"
#include "eventHandler.h"
#include "chancfg.h"
#include "string"
#include "renderModeTransition.h"
#include "colorTransition.h"
#include "colorBlendTransition.h"
#include "cullFaceTransition.h"
#include "depthTestTransition.h"
#include "depthWriteTransition.h"
#include "textureTransition.h"
#include "textureApplyTransition.h"
#include "materialTransition.h"
#include "transformTransition.h"
#include "transparencyTransition.h"
#include "drawBoundsTransition.h"
#include "pruneTransition.h"
#include "get_rel_pos.h"
#include "boundingSphere.h"
#include "geomSphere.h"
#include "geomNode.h"
#include "notify.h"
#include "directionalLight.h"
#include "renderRelation.h"
#include "camera.h"
#include "frustum.h"
#include "textNode.h"
#include "colorMatrixTransition.h"
#include "alphaTransformTransition.h"
#include "lensFlareNode.h"
#include "texture.h"
#include "texturePool.h"
#include "spotlight.h"
#include "nodePath.h"
#include "pta_Colorf.h"
#include "pta_float.h"
#include "pt_Node.h"
#include "panda.h"

Go to the source code of this file.

Functions

void clear_highlight ()
void set_highlight ()
void event_up (CPT_Event)
void event_down (CPT_Event)
void event_left (CPT_Event)
void event_right (CPT_Event)
void event_fkey (CPT_Event event)
void event_B (CPT_Event event)
void enable_highlight ()
void disable_highlight ()
void event_h (CPT_Event)
 Toggle sphere texture highlight.

bool attach_sky ()
void event_k (CPT_Event)
void event_a (CPT_Event)
void event_v (CPT_Event)
void event_L (CPT_Event)
void demo_keys (EventHandler &)
int main (int argc, char *argv[])

Variables

PointerTo< GeomNodegeomnode
RenderRelation * first_arc
RenderRelation * highlight_arc = NULL
PT_NamedNode highlight_render_node
RenderRelation * current_arc = NULL
NodePath selected_node
PT_NamedNode render2d_top
RenderRelation * render2d_arc = NULL
PT_NamedNode render2d
PointerTo< TextNodelabel2d
PT_NamedNode sky = (NamedNode *)NULL
RenderRelation * sky_arc = (RenderRelation *)NULL
RenderRelation * flare_arc = (RenderRelation *)NULL


Detailed Description

Definition in file demo.cxx.


Function Documentation

bool attach_sky  )  [static]
 

Definition at line 344 of file demo.cxx.

References NULL, render, sky, and sky_arc.

void clear_highlight  )  [static]
 

Definition at line 106 of file demo.cxx.

void demo_keys EventHandler  ) 
 

Definition at line 482 of file demo.cxx.

References event_handler.

Referenced by main().

void disable_highlight  )  [static]
 

Definition at line 329 of file demo.cxx.

References selected_node.

void enable_highlight  )  [static]
 

Definition at line 288 of file demo.cxx.

References highlight_arc.

void event_a CPT_Event   )  [static]
 

Definition at line 373 of file demo.cxx.

References first_arc.

void event_B CPT_Event  event  )  [static]
 

Definition at line 276 of file demo.cxx.

References selected_node.

void event_down CPT_Event   )  [static]
 

Definition at line 148 of file demo.cxx.

References selected_node.

void event_fkey CPT_Event  event  )  [static]
 

Definition at line 202 of file demo.cxx.

References NodePath::clear_color_scale(), NodePath::clear_transparency(), Colorf, selected_node, NodePath::set_color_scale(), and NodePath::set_transparency().

void event_h CPT_Event   )  [static]
 

Toggle sphere texture highlight.

Definition at line 336 of file demo.cxx.

void event_k CPT_Event   )  [static]
 

Definition at line 356 of file demo.cxx.

References first_arc.

void event_L CPT_Event   )  [static]
 

Definition at line 410 of file demo.cxx.

References PointerToArray< Colorf >::clear(), PointerToArray< float >::clear(), Colorf, flare_arc, TexturePool::load_texture(), NodePath::node(), PointerToArray< Colorf >::push_back(), PointerToArray< float >::push_back(), search(), and sky.

void event_left CPT_Event   )  [static]
 

Definition at line 158 of file demo.cxx.

References selected_node.

void event_right CPT_Event   )  [static]
 

Definition at line 180 of file demo.cxx.

References selected_node.

void event_up CPT_Event   )  [static]
 

Definition at line 139 of file demo.cxx.

References selected_node.

void event_v CPT_Event   )  [static]
 

Definition at line 389 of file demo.cxx.

References search().

int main int  argc,
char *  argv[]
 

Definition at line 519 of file demo.cxx.

References define_keys, and demo_keys().

void set_highlight  )  [static]
 

Definition at line 118 of file demo.cxx.

References highlight_arc, nout, and selected_node.


Variable Documentation

RenderRelation* current_arc = NULL
 

Definition at line 89 of file demo.cxx.

RenderRelation* first_arc
 

Definition at line 76 of file demo.cxx.

Referenced by event_a(), event_e(), event_h(), event_k(), event_m(), event_o(), event_p(), and event_r().

RenderRelation* flare_arc = (RenderRelation *)NULL
 

Definition at line 102 of file demo.cxx.

Referenced by event_L().

PointerTo< GeomNode > geomnode
 

Definition at line 75 of file demo.cxx.

Referenced by herc_keys().

RenderRelation* highlight_arc = NULL
 

Definition at line 87 of file demo.cxx.

Referenced by enable_highlight(), and set_highlight().

PT_NamedNode highlight_render_node
 

Definition at line 88 of file demo.cxx.

PointerTo< TextNode > label2d
 

Definition at line 97 of file demo.cxx.

PT_NamedNode render2d
 

Definition at line 95 of file demo.cxx.

RenderRelation* render2d_arc = NULL
 

Definition at line 94 of file demo.cxx.

PT_NamedNode render2d_top
 

Definition at line 93 of file demo.cxx.

NodePath selected_node
 

Definition at line 91 of file demo.cxx.

Referenced by disable_highlight(), event_B(), event_down(), event_fkey(), event_left(), event_right(), event_up(), and set_highlight().

PT_NamedNode sky = (NamedNode *)NULL
 

Definition at line 100 of file demo.cxx.

Referenced by attach_sky(), and event_L().

RenderRelation* sky_arc = (RenderRelation *)NULL
 

Definition at line 101 of file demo.cxx.

Referenced by attach_sky().


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