Panda3D
Loading...
Searching...
No Matches
displayRegion.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file displayRegion.h
10 * @author mike
11 * @date 1997-01-09
12 */
13
14#ifndef DISPLAYREGION_H
15#define DISPLAYREGION_H
16
17#include "pandabase.h"
18
19#include "typedReferenceCount.h"
20#include "drawableRegion.h"
21#include "referenceCount.h"
22#include "nodePath.h"
23#include "cullResult.h"
24#include "sceneSetup.h"
25#include "pointerTo.h"
26#include "cycleData.h"
28#include "cycleDataReader.h"
29#include "cycleDataWriter.h"
31#include "pipelineCycler.h"
32#include "config_display.h"
33#include "lens.h"
34#include "deletedChain.h"
35#include "plist.h"
36#include "pStatCollector.h"
37#include "cullTraverser.h"
38#include "callbackObject.h"
39#include "luse.h"
40#include "epvector.h"
41
42class GraphicsOutput;
43class GraphicsPipe;
44class CullHandler;
45class Camera;
46class PNMImage;
47class CullTraverser;
48
49/**
50 * A rectangular subregion within a window for rendering into. Typically,
51 * there is one DisplayRegion that covers the whole window, but you may also
52 * create smaller DisplayRegions for having different regions within the
53 * window that represent different scenes. You may also stack up
54 * DisplayRegions like panes of glass, usually for layering 2-d interfaces on
55 * top of a 3-d scene.
56 */
57class EXPCL_PANDA_DISPLAY DisplayRegion : public TypedReferenceCount, public DrawableRegion {
58protected:
59 DisplayRegion(GraphicsOutput *window, const LVecBase4 &dimensions);
60 DisplayRegion(const DisplayRegion &copy) = delete;
61 void operator = (const DisplayRegion &copy) = delete;
62
63public:
64 virtual ~DisplayRegion();
65 void cleanup();
66
67 INLINE bool operator < (const DisplayRegion &other) const;
68
69PUBLISHED:
70 INLINE int get_num_regions() const;
71 INLINE void set_num_regions(int i);
72 INLINE void get_dimensions(PN_stdfloat &l, PN_stdfloat &r, PN_stdfloat &b, PN_stdfloat &t) const;
73 INLINE void get_dimensions(int i, PN_stdfloat &l, PN_stdfloat &r, PN_stdfloat &b, PN_stdfloat &t) const;
74 INLINE LVecBase4 get_dimensions(int i = 0) const;
75 INLINE PN_stdfloat get_left(int i = 0) const;
76 INLINE PN_stdfloat get_right(int i = 0) const;
77 INLINE PN_stdfloat get_bottom(int i = 0) const;
78 INLINE PN_stdfloat get_top(int i = 0) const;
79 INLINE void set_dimensions(PN_stdfloat l, PN_stdfloat r, PN_stdfloat b, PN_stdfloat t);
80 INLINE void set_dimensions(int i, PN_stdfloat l, PN_stdfloat r, PN_stdfloat b, PN_stdfloat t);
81 INLINE void set_dimensions(const LVecBase4 &dimensions);
82 virtual void set_dimensions(int i, const LVecBase4 &dimensions);
83 MAKE_PROPERTY(dimensions, get_dimensions, set_dimensions);
84
85 INLINE GraphicsOutput *get_window() const;
86 GraphicsPipe *get_pipe() const;
87 virtual bool is_stereo() const;
88 MAKE_PROPERTY(window, get_window);
89 MAKE_PROPERTY(pipe, get_pipe);
90 MAKE_PROPERTY(stereo, is_stereo);
91
92 virtual void set_camera(const NodePath &camera);
93 INLINE NodePath get_camera(Thread *current_thread = Thread::get_current_thread()) const;
94 MAKE_PROPERTY(camera, get_camera, set_camera);
95
96 virtual void set_active(bool active);
97 INLINE bool is_active() const;
98 MAKE_PROPERTY(active, is_active, set_active);
99
100 virtual void set_sort(int sort);
101 INLINE int get_sort() const;
102 MAKE_PROPERTY(sort, get_sort, set_sort);
103
104 virtual void set_stereo_channel(Lens::StereoChannel stereo_channel);
105 INLINE Lens::StereoChannel get_stereo_channel() const;
106 MAKE_PROPERTY(stereo_channel, get_stereo_channel, set_stereo_channel);
107
108 virtual void set_tex_view_offset(int tex_view_offset);
109 INLINE int get_tex_view_offset() const;
110 MAKE_PROPERTY(tex_view_offset, get_tex_view_offset, set_tex_view_offset);
111
112 virtual void set_incomplete_render(bool incomplete_render);
113 INLINE bool get_incomplete_render() const;
114 MAKE_PROPERTY(incomplete_render, get_incomplete_render, set_incomplete_render);
115
116 virtual void set_texture_reload_priority(int texture_reload_priority);
117 INLINE int get_texture_reload_priority() const;
118 MAKE_PROPERTY(texture_reload_priority, get_texture_reload_priority,
120
121 void set_lens_index(int index);
122 INLINE int get_lens_index() const;
123 MAKE_PROPERTY(lens_index, get_lens_index, set_lens_index);
124
125 virtual void set_cull_traverser(CullTraverser *trav);
127 MAKE_PROPERTY(cull_traverser, get_cull_traverser, set_cull_traverser);
128
129 INLINE void set_cube_map_index(int cube_map_index);
130 virtual void set_target_tex_page(int page);
131 INLINE int get_target_tex_page() const;
132 MAKE_PROPERTY(target_tex_page, get_target_tex_page, set_target_tex_page);
133
134 INLINE void set_scissor_enabled(bool scissor_enabled);
135 INLINE bool get_scissor_enabled() const;
136 MAKE_PROPERTY(scissor_enabled, get_scissor_enabled, set_scissor_enabled);
137
138 INLINE void set_cull_callback(CallbackObject *object);
139 INLINE void clear_cull_callback();
140 INLINE CallbackObject *get_cull_callback() const;
141 MAKE_PROPERTY(cull_callback, get_cull_callback, set_cull_callback);
142
143 INLINE void set_draw_callback(CallbackObject *object);
144 INLINE void clear_draw_callback();
145 INLINE CallbackObject *get_draw_callback() const;
146 MAKE_PROPERTY(draw_callback, get_draw_callback, set_draw_callback);
147
148 INLINE int get_pixel_width(int i = 0) const;
149 INLINE int get_pixel_height(int i = 0) const;
150 INLINE LVecBase2i get_pixel_size(int i = 0) const;
151 MAKE_PROPERTY(pixel_size, get_pixel_size);
152
153 virtual void output(std::ostream &out) const;
154
156 const std::string &prefix = "screenshot");
157 Filename save_screenshot_default(const std::string &prefix = "screenshot");
158 bool save_screenshot(
159 const Filename &filename, const std::string &image_comment = "");
160 bool get_screenshot(PNMImage &image);
162
163 void clear_cull_result();
164 virtual PT(PandaNode) make_cull_result_graph();
165
166public:
167 void compute_pixels();
169 void compute_pixels(int x_size, int y_size);
170 void compute_pixels_all_stages(int x_size, int y_size);
171 INLINE void get_pixels(int &pl, int &pr, int &pb, int &pt) const;
172 INLINE void get_pixels(int i, int &pl, int &pr, int &pb, int &pt) const;
173 INLINE void get_region_pixels(int &xo, int &yo, int &w, int &h) const;
174 INLINE void get_region_pixels(int i, int &xo, int &yo, int &w, int &h) const;
175 INLINE void get_region_pixels_i(int &xo, int &yo, int &w, int &h) const;
176 INLINE void get_region_pixels_i(int i, int &xo, int &yo, int &w, int &h) const;
177
178 virtual bool supports_pixel_zoom() const;
179
180 INLINE void set_cull_result(PT(CullResult) cull_result, PT(SceneSetup) scene_setup,
181 Thread *current_thread);
182 INLINE CullResult *get_cull_result(Thread *current_thread) const;
183 INLINE SceneSetup *get_scene_setup(Thread *current_thread) const;
184
187
188 INLINE const std::string &get_debug_name() const;
189
190 struct Region {
191 INLINE Region();
192
193 LVecBase4 _dimensions; // left, right, bottom, top
194 LVecBase4i _pixels;
195 LVecBase4i _pixels_i;
196 };
197 typedef epvector<Region> Regions;
198
199private:
200 class CData;
201
202 void win_display_regions_changed();
203 void do_compute_pixels(int i, int x_size, int y_size, CData *cdata);
204 void set_active_index(int index);
205
206protected:
207 virtual void do_cull(CullHandler *cull_handler, SceneSetup *scene_setup,
208 GraphicsStateGuardian *gsg, Thread *current_thread);
209
210protected:
211 // The associated window is a permanent property of the DisplayRegion. It
212 // doesn't need to be cycled.
213 GraphicsOutput *_window;
214
215 bool _incomplete_render;
216 int _texture_reload_priority;
217
218 // Ditto for the cull traverser.
219 PT(CullTraverser) _trav;
220
221private:
222 // This is the data that is associated with the DisplayRegion that needs to
223 // be cycled every frame, but represents the parameters as specified by the
224 // user, and which probably will not change that often.
225 class EXPCL_PANDA_DISPLAY CData : public CycleData {
226 public:
227 CData();
228 CData(const CData &copy);
229
230 virtual CycleData *make_copy() const;
231 virtual TypeHandle get_parent_type() const {
232 return DisplayRegion::get_class_type();
233 }
234
235 Regions _regions;
236
237 int _lens_index; // index into which lens of a camera is associated with this display region. 0 is default
238
239 NodePath _camera;
240 Camera *_camera_node;
241
242 bool _active;
243 int _sort;
244 Lens::StereoChannel _stereo_channel;
245 int _tex_view_offset;
246 int _target_tex_page;
247 bool _scissor_enabled;
248
249 PT(CallbackObject) _cull_callback;
250 PT(CallbackObject) _draw_callback;
251 };
252
253 PipelineCycler<CData> _cycler;
254 typedef CycleDataLockedReader<CData> CDLockedReader;
255 typedef CycleDataReader<CData> CDReader;
256 typedef CycleDataWriter<CData> CDWriter;
257 typedef CycleDataStageWriter<CData> CDStageWriter;
258
259 // This is a special cycler created to hold the results from the cull
260 // traversal, for (a) the draw traversal, and (b) the next frame's cull
261 // traversal. It needs to be cycled, but it gets its own cycler because it
262 // will certainly change every frame, so we don't need to lump all the heavy
263 // data above in with this lightweight cycler.
264 class EXPCL_PANDA_DISPLAY CDataCull : public CycleData {
265 public:
266 CDataCull();
267 CDataCull(const CDataCull &copy);
268
269 virtual CycleData *make_copy() const;
270 virtual TypeHandle get_parent_type() const {
271 return DisplayRegion::get_class_type();
272 }
273
274 PT(CullResult) _cull_result;
275 PT(SceneSetup) _scene_setup;
276 };
277 PipelineCycler<CDataCull> _cycler_cull;
278 typedef CycleDataReader<CDataCull> CDCullReader;
279 typedef CycleDataWriter<CDataCull> CDCullWriter;
280
281 PStatCollector _cull_region_pcollector;
282 PStatCollector _draw_region_pcollector;
283 std::string _debug_name;
284
285public:
286 static TypeHandle get_class_type() {
287 return _type_handle;
288 }
289 static void init_type() {
290 TypedReferenceCount::init_type();
291 register_type(_type_handle, "DisplayRegion",
292 TypedReferenceCount::get_class_type());
293 }
294 virtual TypeHandle get_type() const {
295 return get_class_type();
296 }
297 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
298
299private:
300 static TypeHandle _type_handle;
301
302 friend class GraphicsEngine;
303 friend class GraphicsOutput;
304 friend class DisplayRegionCullCallbackData;
305 friend class DisplayRegionPipelineReader;
306};
307
308/**
309 * Encapsulates the data from a DisplayRegion, pre-fetched for one stage of
310 * the pipeline.
311 */
312class EXPCL_PANDA_DISPLAY DisplayRegionPipelineReader {
313public:
314 INLINE DisplayRegionPipelineReader(DisplayRegion *object, Thread *current_thread);
315 DisplayRegionPipelineReader(const DisplayRegionPipelineReader &copy) = delete;
316 void operator = (const DisplayRegionPipelineReader &copy) = delete;
317
318public:
319 INLINE ~DisplayRegionPipelineReader();
320 ALLOC_DELETED_CHAIN(DisplayRegionPipelineReader);
321
322 INLINE DisplayRegion *get_object() const;
323 INLINE Thread *get_current_thread() const;
324
325 INLINE bool is_any_clear_active() const;
326
327 INLINE int get_num_regions() const;
328 INLINE void get_dimensions(PN_stdfloat &l, PN_stdfloat &r, PN_stdfloat &b, PN_stdfloat &t) const;
329 INLINE void get_dimensions(int i, PN_stdfloat &l, PN_stdfloat &r, PN_stdfloat &b, PN_stdfloat &t) const;
330 INLINE const LVecBase4 &get_dimensions(int i = 0) const;
331 INLINE PN_stdfloat get_left(int i = 0) const;
332 INLINE PN_stdfloat get_right(int i = 0) const;
333 INLINE PN_stdfloat get_bottom(int i = 0) const;
334 INLINE PN_stdfloat get_top(int i = 0) const;
335
336 INLINE GraphicsOutput *get_window() const;
337 GraphicsPipe *get_pipe() const;
338
339 INLINE NodePath get_camera() const;
340 INLINE bool is_active() const;
341 INLINE int get_sort() const;
342 INLINE Lens::StereoChannel get_stereo_channel() const;
343 INLINE int get_tex_view_offset();
344 INLINE bool get_clear_depth_between_eyes() const;
345 INLINE int get_target_tex_page() const;
346 INLINE bool get_scissor_enabled() const;
347 INLINE CallbackObject *get_draw_callback() const;
348
349 INLINE void get_pixels(int &pl, int &pr, int &pb, int &pt) const;
350 INLINE void get_pixels(int i, int &pl, int &pr, int &pb, int &pt) const;
351 INLINE void get_region_pixels(int &xo, int &yo, int &w, int &h) const;
352 INLINE void get_region_pixels(int i, int &xo, int &yo, int &w, int &h) const;
353 INLINE void get_region_pixels_i(int &xo, int &yo, int &w, int &h) const;
354 INLINE void get_region_pixels_i(int i, int &xo, int &yo, int &w, int &h) const;
355
356 INLINE int get_pixel_width(int i = 0) const;
357 INLINE int get_pixel_height(int i = 0) const;
358
359 INLINE int get_lens_index() const;
360
361private:
362 DisplayRegion *_object;
363 Thread *_current_thread;
364 const DisplayRegion::CData *_cdata;
365
366public:
367 static TypeHandle get_class_type() {
368 return _type_handle;
369 }
370 static void init_type() {
371 register_type(_type_handle, "DisplayRegionPipelineReader");
372 }
373
374private:
375 static TypeHandle _type_handle;
376};
377
378INLINE std::ostream &operator << (std::ostream &out, const DisplayRegion &dr);
379
380#include "displayRegion.I"
381
382#endif /* DISPLAYREGION_H */
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a generic object that can be assigned to a callback at various points in the rendering proces...
A node that can be positioned around in the scene graph to represent a point of view for rendering a ...
Definition camera.h:35
This defines the abstract interface for an object that receives Geoms identified by the CullTraverser...
Definition cullHandler.h:28
This stores the result of a BinCullHandler traversal: an ordered collection of CullBins,...
Definition cullResult.h:44
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
A single page of data maintained by a PipelineCycler.
Definition cycleData.h:50
int get_target_tex_page() const
Returns the target page number associated with this particular DisplayRegion, or -1 if it is not asso...
PN_stdfloat get_left(int i=0) const
Retrieves the x coordinate of the left edge of the rectangle within its GraphicsOutput.
GraphicsOutput * get_window() const
Returns the GraphicsOutput that this DisplayRegion is ultimately associated with, or NULL if no windo...
GraphicsPipe * get_pipe() const
Returns the GraphicsPipe that this DisplayRegion is ultimately associated with, or NULL if no pipe is...
int get_sort() const
Returns the sort value associated with the DisplayRegion.
void get_region_pixels(int &xo, int &yo, int &w, int &h) const
Retrieves the coordinates of the DisplayRegion within its window, as the pixel location of its bottom...
PN_stdfloat get_bottom(int i=0) const
Retrieves the y coordinate of the bottom edge of the rectangle within its GraphicsOutput.
int get_lens_index() const
Gets the index into a lens_node lens array.
PN_stdfloat get_top(int i=0) const
Retrieves the y coordinate of the top edge of the rectangle within its GraphicsOutput.
CallbackObject * get_draw_callback() const
Returns the CallbackObject set by set_draw_callback().
void get_pixels(int &pl, int &pr, int &pb, int &pt) const
Retrieves the coordinates of the DisplayRegion within its window, in pixels.
NodePath get_camera() const
Returns the camera associated with this DisplayRegion, or an empty NodePath if no camera is associate...
bool is_active() const
Returns the active flag associated with the DisplayRegion.
bool get_scissor_enabled() const
Returns whether or not scissor testing is enabled for this region.
void get_dimensions(PN_stdfloat &l, PN_stdfloat &r, PN_stdfloat &b, PN_stdfloat &t) const
Retrieves the coordinates of the DisplayRegion's rectangle within its GraphicsOutput.
int get_pixel_width(int i=0) const
Returns the width of the DisplayRegion in pixels.
int get_pixel_height(int i=0) const
Returns the height of the DisplayRegion in pixels.
int get_tex_view_offset()
Returns the current texture view offset for this DisplayRegion.
Lens::StereoChannel get_stereo_channel() const
Returns whether the DisplayRegion is specified as the left or right channel of a stereo pair,...
void get_region_pixels_i(int &xo, int &yo, int &w, int &h) const
Similar to get_region_pixels(), but returns the upper left corner, and the pixel numbers are numbered...
PN_stdfloat get_right(int i=0) const
Retrieves the x coordinate of the right edge of the rectangle within its GraphicsOutput.
int get_num_regions() const
Returns the number of regions, see set_num_regions.
A rectangular subregion within a window for rendering into.
is_stereo
Returns true if this is a StereoDisplayRegion, false otherwise.
get_cull_traverser
Returns the CullTraverser that will be used to draw the contents of this DisplayRegion.
void compute_pixels()
Computes the pixel locations of the DisplayRegion within its window.
bool save_screenshot(const Filename &filename, const std::string &image_comment="")
Saves a screenshot of the region to the indicated filename.
get_incomplete_render
Returns the incomplete_render flag.
void clear_draw_callback()
Removes the callback set by an earlier call to set_draw_callback().
CullResult * get_cull_result(Thread *current_thread) const
Returns the CullResult value that was stored on this DisplayRegion, presumably by the last successful...
set_camera
Sets the camera that is associated with this DisplayRegion.
PN_stdfloat get_left(int i=0) const
Retrieves the x coordinate of the left edge of the rectangle within its GraphicsOutput.
set_tex_view_offset
Sets the current texture view offset for this DisplayRegion.
virtual PointerTo< PandaNode > make_cull_result_graph()
Returns a special scene graph constructed to represent the results of the last frame's cull operation...
PN_stdfloat get_bottom(int i=0) const
Retrieves the y coordinate of the bottom edge of the rectangle within its GraphicsOutput.
void set_cull_result(PointerTo< CullResult > cull_result, PointerTo< SceneSetup > scene_setup, Thread *current_thread)
Stores the result of performing a cull operation on this DisplayRegion.
set_target_tex_page
This is a special parameter that is only used when rendering the faces of a cube map or multipage and...
bool get_screenshot(PNMImage &image)
Captures the most-recently rendered image from the framebuffer into the indicated PNMImage.
PStatCollector & get_draw_region_pcollector()
Returns a PStatCollector for timing the draw operation for just this DisplayRegion.
PStatCollector & get_cull_region_pcollector()
Returns a PStatCollector for timing the cull operation for just this DisplayRegion.
get_texture_reload_priority
Returns the priority which is assigned to asynchronous texture reload requests.
get_dimensions
Retrieves the coordinates of the DisplayRegion's rectangle within its GraphicsOutput.
is_active
Returns the active flag associated with the DisplayRegion.
void get_pixels(int &pl, int &pr, int &pb, int &pt) const
Retrieves the coordinates of the DisplayRegion within its window, in pixels.
get_lens_index
Returns the specific lens of the associated Camera that will be used for rendering this scene.
int get_pixel_height(int i=0) const
Returns the height of the DisplayRegion in pixels.
get_camera
Returns the camera associated with this DisplayRegion, or an empty NodePath if no camera is associate...
set_lens_index
Sets the lens index, allows for multiple lenses to be attached to a camera.
const std::string & get_debug_name() const
Returns a unique name used for debugging.
get_window
Returns the GraphicsOutput that this DisplayRegion is ultimately associated with, or NULL if no windo...
set_cull_callback
Sets the CallbackObject that will be notified when the DisplayRegion is visited during the cull trave...
get_scissor_enabled
Returns whether or not scissor testing is enabled for this region.
get_stereo_channel
Returns whether the DisplayRegion is specified as the left or right channel of a stereo pair,...
void cleanup()
Cleans up some pointers associated with the DisplayRegion to help reduce the chance of memory leaks d...
void compute_pixels_all_stages()
Computes the pixel locations of the DisplayRegion within its window.
get_target_tex_page
Returns the target page number associated with this particular DisplayRegion, or -1 if it is not asso...
get_sort
Returns the sort value associated with the DisplayRegion.
int get_num_regions() const
Returns the number of regions, see set_num_regions.
get_pipe
Returns the GraphicsPipe that this DisplayRegion is ultimately associated with, or NULL if no pipe is...
set_sort
Sets the sort value associated with the DisplayRegion.
void set_cube_map_index(int cube_map_index)
Deprecated; replaced by set_target_tex_page().
static Filename make_screenshot_filename(const std::string &prefix="screenshot")
Synthesizes a suitable default filename for passing to save_screenshot().
set_cull_traverser
Specifies the CullTraverser that will be used to draw the contents of this DisplayRegion.
SceneSetup * get_scene_setup(Thread *current_thread) const
Returns the SceneSetup value that was stored on this DisplayRegion, presumably by the last successful...
void get_region_pixels(int &xo, int &yo, int &w, int &h) const
Retrieves the coordinates of the DisplayRegion within its window, as the pixel location of its bottom...
PN_stdfloat get_right(int i=0) const
Retrieves the x coordinate of the right edge of the rectangle within its GraphicsOutput.
get_cull_callback
Returns the CallbackObject set by set_cull_callback().
get_tex_view_offset
Returns the current texture view offset for this DisplayRegion.
set_dimensions
Changes the portion of the framebuffer this DisplayRegion corresponds to.
void set_num_regions(int i)
Sets the number of regions that this DisplayRegion indicates.
set_active
Sets the active flag associated with the DisplayRegion.
set_scissor_enabled
Sets whether or not scissor testing is enabled for this region.
int get_pixel_width(int i=0) const
Returns the width of the DisplayRegion in pixels.
PN_stdfloat get_top(int i=0) const
Retrieves the y coordinate of the top edge of the rectangle within its GraphicsOutput.
set_stereo_channel
Specifies whether the DisplayRegion represents the left or right channel of a stereo pair,...
set_draw_callback
Sets the CallbackObject that will be notified when the contents of DisplayRegion is drawn during the ...
set_texture_reload_priority
Specifies an integer priority which is assigned to any asynchronous texture reload requests spawned w...
void clear_cull_callback()
Removes the callback set by an earlier call to set_cull_callback().
get_draw_callback
Returns the CallbackObject set by set_draw_callback().
get_pixel_size
Returns the size of the DisplayRegion in pixels.
Filename save_screenshot_default(const std::string &prefix="screenshot")
Saves a screenshot of the region to a default filename, and returns the filename, or empty string if ...
void get_region_pixels_i(int &xo, int &yo, int &w, int &h) const
Similar to get_region_pixels(), but returns the upper left corner, and the pixel numbers are numbered...
set_incomplete_render
Sets the incomplete_render flag.
virtual bool supports_pixel_zoom() const
Returns true if a call to set_pixel_zoom() will be respected, false if it will be ignored.
virtual bool is_any_clear_active() const
Returns true if any of the clear types (so far there are just color or depth) have been set active,...
The name of a file, such as a texture file or an Egg file.
Definition filename.h:44
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.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition nodePath.h:159
The name of this class derives from the fact that we originally implemented it as a layer on top of t...
Definition pnmImage.h:58
A lightweight class that represents a single element that may be timed and/or counted via stats.
A basic node of the scene graph or data graph.
Definition pandaNode.h:65
This object holds the camera position, etc., and other general setup information for rendering a part...
Definition sceneSetup.h:32
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
Definition texture.h:72
A thread; that is, a lightweight process.
Definition thread.h:46
get_current_thread
Returns a pointer to the currently-executing Thread object.
Definition thread.h:109
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
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.
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.