14 #ifndef WINDOWFRAMEWORK_H
15 #define WINDOWFRAMEWORK_H
73 INLINE
int get_num_cameras()
const;
74 INLINE
Camera *get_camera(
int n)
const;
86 void enable_keyboard();
87 void setup_trackball();
88 void center_trackball(
const NodePath &
object);
90 bool load_models(
const NodePath &parent,
91 int argc,
char *argv[],
int first_arg = 1);
92 bool load_models(
const NodePath &parent,
96 void loop_animations(
int hierarchy_match_flags =
97 PartGroup::HMF_ok_part_extra |
98 PartGroup::HMF_ok_anim_extra);
99 void stagger_animations();
100 void next_anim_control();
101 void set_anim_controls(
bool enable);
102 INLINE
bool get_anim_controls()
const;
103 void adjust_dimensions();
105 enum BackgroundType {
121 void set_wireframe(
bool enable,
bool filled=
false);
122 void set_texture(
bool enable);
123 void set_two_sided(
bool enable);
124 void set_one_sided_reverse(
bool enable);
125 void set_lighting(
bool enable);
126 void set_perpixel(
bool enable);
127 void set_background_type(BackgroundType type);
129 INLINE
bool get_wireframe()
const;
130 INLINE
bool get_wireframe_filled()
const;
131 INLINE
bool get_texture()
const;
132 INLINE
bool get_two_sided()
const;
133 INLINE
bool get_one_sided_reverse()
const;
134 INLINE
bool get_lighting()
const;
135 INLINE
bool get_perpixel()
const;
136 INLINE BackgroundType get_background_type()
const;
138 static TextFont *get_shuttle_controls_font();
146 void create_anim_controls();
147 void destroy_anim_controls();
148 void update_anim_controls();
150 void setup_shuttle_button(
const std::string &label,
int index,
151 EventHandler::EventCallbackFunction *func);
155 void forward_button();
157 static AsyncTask::DoneStatus st_update_anim_controls(
GenericAsyncTask *task,
void *data);
159 static void st_back_button(
const Event *,
void *data);
160 static void st_pause_button(
const Event *,
void *data);
161 static void st_play_button(
const Event *,
void *data);
162 static void st_forward_button(
const Event *,
void *data);
180 bool _anim_controls_enabled;
199 bool _wireframe_enabled;
200 bool _wireframe_filled;
201 bool _texture_enabled;
202 bool _two_sided_enabled;
203 bool _one_sided_reverse_enabled;
204 bool _lighting_enabled;
205 bool _perpixel_enabled;
210 BackgroundType _background_type;
212 static PT(
TextFont) _shuttle_controls_font;
218 static void init_type() {
219 TypedWritableReferenceCount::init_type();
221 TypedWritableReferenceCount::get_class_type());
224 return get_class_type();
226 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A light source that seems to illuminate all points in space at once.
This is a named collection of AnimControl pointers.
A node that can be positioned around in the scene graph to represent a point of view for rendering a ...
A light shining from infinitely far away in a particular direction, like sunlight.
A rectangular subregion within a window for rendering into.
A named event, possibly with parameters.
The name of a file, such as a texture file or an Egg file.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
static const FrameBufferProperties & get_default()
Returns a FrameBufferProperties structure with all of the default values filled in according to the u...
This is a special TextNode that automatically updates itself with the current frame rate.
Associates a generic C-style function pointer with an AsyncTask object.
This class is the main interface to controlling the render process.
This is a base class for the various different classes that represent the result of a frame of render...
An object to create GraphicsOutputs that share a particular 3-D API.
Encapsulates all the communication with a particular instance of a given rendering backend.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
This is a particular kind of PGItem that draws a little bar with a slider that moves from left to rig...
This class serves to provide a high-level framework for basic applications that use Panda in simple w...
A basic node of the scene graph or data graph.
This is a special TextNode that automatically updates itself with output from a SceneGraphAnalyzer in...
An encapsulation of a font; i.e.
The primary interface to this module.
Trackball acts like Performer in trackball mode.
TypeHandle is the identifier used to differentiate C++ class types.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
This encapsulates the data that is normally associated with a single window, or with a single display...
A container for the various kinds of properties we might ask to have on a graphics window before we o...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.