Panda3D
|
This is a base class for the various different classes that represent the result of a frame of rendering. More...
#include "graphicsOutput.h"
Classes | |
class | RenderTexture |
Public Types | |
enum | FrameMode { FM_render, FM_parasite, FM_refresh } |
enum | RenderTextureMode { RTM_none, RTM_bind_or_copy, RTM_copy_texture, RTM_copy_ram, RTM_triggered_copy_texture, RTM_triggered_copy_ram } |
enum | RenderTexturePlane { RTP_stencil = 0, RTP_depth_stencil = 1, RTP_color, RTP_aux_rgba_0, RTP_aux_rgba_1, RTP_aux_rgba_2, RTP_aux_rgba_3, RTP_aux_hrgba_0, RTP_aux_hrgba_1, RTP_aux_hrgba_2, RTP_aux_hrgba_3, RTP_aux_float_0, RTP_aux_float_1, RTP_aux_float_2, RTP_aux_float_3, RTP_depth, RTP_COUNT } |
Public Member Functions | |
void | add_render_texture (Texture *tex, RenderTextureMode mode, RenderTexturePlane bitplane=RTP_COUNT) |
Creates a new Texture object, suitable for rendering the contents of this buffer into, and appends it to the list of render textures. | |
virtual ReferenceCount * | as_reference_count () |
Returns the pointer cast to a ReferenceCount pointer, if it is in fact of that type. | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
virtual void | begin_flip () |
This function will be called within the draw thread after end_frame() has been called on all windows, to initiate the exchange of the front and back buffers. | |
virtual bool | begin_frame (FrameMode mode, Thread *current_thread) |
This function will be called within the draw thread before beginning rendering for a given frame. | |
void | change_scenes (DisplayRegionPipelineReader *new_dr) |
Called by the GraphicsEngine when the window is about to change to another DisplayRegion. | |
void | clear (Thread *current_thread) |
Clears the entire framebuffer before rendering, according to the settings of get_color_clear_active() and get_depth_clear_active() (inherited from DrawableRegion). | |
void | clear_child_sort () |
Resets the sort value of future offscreen buffers created by make_texture_sort() to the default value. | |
void | clear_delete_flag () |
Resets the delete flag, so the GraphicsOutput will not be automatically deleted before the beginning of the next frame. | |
virtual void | clear_pipe () |
Sets the window's _pipe pointer to NULL; this is generally called only as a precursor to deleting the window. | |
void | clear_render_textures () |
If the GraphicsOutput is currently rendering to a texture, then all textures are dissociated from the GraphicsOuput. | |
virtual int | complete_pointers (TypedWritable **p_list, BamReader *manager) |
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin(). | |
void | copy_clear_settings (const DrawableRegion ©) |
Copies only the clear settings from the other drawable region. | |
int | count_textures () const |
If the GraphicsOutput is set to render into a texture, returns the number of textures that are being rendered into. | |
virtual void | disable_clears () |
Disables both the color and depth clear. | |
string | encode_to_bam_stream () const |
Converts the TypedWritable object into a single stream of data using a BamWriter, and returns that data as a string string. | |
bool | encode_to_bam_stream (string &data, BamWriter *writer=NULL) const |
Converts the TypedWritable object into a single stream of data using a BamWriter, and stores that data in the indicated string. | |
virtual void | end_flip () |
This function will be called within the draw thread after begin_flip() has been called on all windows, to finish the exchange of the front and back buffers. | |
virtual void | end_frame (FrameMode mode, Thread *current_thread) |
This function will be called within the draw thread after rendering is completed for a given frame. | |
virtual void | fillin (DatagramIterator &scan, BamReader *manager) |
This internal function is intended to be called by each class's make_from_bam() method to read in all of the relevant data from the BamFile for the new object. | |
virtual void | finalize (BamReader *manager) |
Called by the BamReader to perform any final actions needed for setting up the object after all objects have been read and all pointers have been completed. | |
bool | flip_ready () const |
Returns true if a frame has been rendered and needs to be flipped, false otherwise. | |
virtual TypeHandle | force_init_type () |
UpdateSeq | get_bam_modified () const |
Returns the current bam_modified counter. | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_child_sort () const |
Returns the sort value of future offscreen buffers created by make_texture_sort(). | |
virtual bool | get_clear_active (int n) const |
Gets the clear-active flag for any bitplane. | |
const Colorf & | get_clear_color () const |
Returns the current clear color value. | |
bool | get_clear_color_active () const |
Returns the current setting of the flag that indicates whether the color buffer should be cleared every frame. | |
float | get_clear_depth () const |
Returns the current clear depth value. | |
bool | get_clear_depth_active () const |
Returns the current setting of the flag that indicates whether the depth buffer should be cleared every frame. | |
unsigned int | get_clear_stencil () const |
Returns the current clear stencil value. | |
bool | get_clear_stencil_active () const |
Returns the current setting of the flag that indicates whether the color buffer should be cleared every frame. | |
virtual const Colorf & | get_clear_value (int n) const |
Returns the clear value for any bitplane. | |
PStatCollector & | get_cull_window_pcollector () |
Returns a PStatCollector for timing the cull operation for just this GraphicsOutput. | |
bool | get_delete_flag () const |
Returns the current setting of the delete flag. | |
int | get_draw_buffer_type () const |
Returns the RenderBuffer into which the GSG should issue draw commands. | |
PStatCollector & | get_draw_window_pcollector () |
Returns a PStatCollector for timing the draw operation for just this GraphicsOutput. | |
GraphicsEngine * | get_engine () const |
Returns the graphics engine that created this output. | |
const FrameBufferProperties & | get_fb_properties () const |
Returns the framebuffer properties of the window. | |
int | get_fb_x_size () const |
Returns the internal width of the window or buffer. | |
int | get_fb_y_size () const |
Returns the internal height of the window or buffer. | |
GraphicsStateGuardian * | get_gsg () const |
Returns the GSG that is associated with this window. | |
virtual GraphicsOutput * | get_host () |
This is normally called only from within make_texture_buffer(). | |
bool | get_inverted () const |
Returns the current setting of the inverted flag. | |
unsigned int | get_left_eye_color_mask () const |
Returns the color mask in effect when rendering a left-eye view in red_blue stereo mode. | |
const string & | get_name () const |
Returns the name that was passed to the GraphicsOutput constructor. | |
int | get_num_active_display_regions () const |
Returns the number of active DisplayRegions that have been created within the window. | |
int | get_num_display_regions () const |
Returns the number of DisplayRegions that have been created within the window, active or otherwise. | |
bool | get_one_shot () const |
Returns the current setting of the one-shot flag. | |
GraphicsPipe * | get_pipe () const |
Returns the GraphicsPipe that this window is associated with. | |
float | get_pixel_factor () const |
Returns the amount by which the height and width of the region will be scaled internally, based on the zoom factor set by set_pixel_zoom(). | |
float | get_pixel_zoom () const |
Returns the value set by set_pixel_zoom(), regardless of whether it is being respected or not. | |
bool | get_red_blue_stereo () const |
Returns whether red-blue stereo mode is in effect for this particular window. | |
int | get_ref_count () const |
Returns the current reference count. | |
unsigned int | get_right_eye_color_mask () const |
Returns the color mask in effect when rendering a right-eye view in red_blue stereo mode. | |
RenderTextureMode | get_rtm_mode (int i=0) const |
Returns the RenderTextureMode associated with the nth render-texture. | |
bool | get_screenshot (PNMImage &image) |
Captures the most-recently rendered image from the framebuffer into the indicated PNMImage. | |
int | get_screenshot_buffer_type () const |
Returns the RenderBuffer that should be used for capturing screenshots from this particular DrawableRegion. | |
int | get_sort () const |
Returns the sorting order of this particular GraphicsOutput. | |
virtual Texture * | get_texture (int i=0) const |
Returns the nth texture into which the GraphicsOutput renders. | |
NodePath | get_texture_card () |
Returns a PandaNode containing a square polygon. | |
RenderTexturePlane | get_texture_plane (int i=0) const |
Returns the RenderTexturePlane associated with the nth render-texture. | |
virtual TypeHandle | get_type () const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. | |
int | get_x_size () const |
Returns the visible width of the window or buffer, if it is known. | |
int | get_y_size () const |
Returns the visible height of the window or buffer, if it is known. | |
bool | has_size () const |
Returns true if the size of the window/frame buffer is known, false otherwise. | |
bool | has_texture () const |
Returns true if the GraphicsOutput is rendering into any textures at all. | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. | |
virtual bool | is_active () const |
Returns true if the window is ready to be rendered into, false otherwise. | |
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, or false if none of them are active and there is no need to clear. | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. | |
bool | is_stereo () const |
Returns Returns true if this window can render stereo DisplayRegions, either through red-blue stereo (see set_red_blue_stereo()) or through true hardware stereo rendering. | |
bool | is_valid () const |
Returns true if the output is fully created and ready for rendering, false otherwise. | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. | |
GraphicsOutput * | make_cube_map (const string &name, int size, NodePath &camera_rig, DrawMask camera_mask=PandaNode::get_all_camera_mask(), bool to_ram=false, FrameBufferProperties *fbp=NULL) |
This is similar to make_texture_buffer() in that it allocates a separate buffer suitable for rendering to a texture that can be assigned to geometry in this window, but in this case, the buffer is set up to render the six faces of a cube map. | |
DisplayRegion * | make_display_region () |
Creates a new DisplayRegion that covers the entire window. | |
DisplayRegion * | make_display_region (float l, float r, float b, float t) |
Creates a new DisplayRegion that covers the indicated sub-rectangle within the window. | |
DisplayRegion * | make_mono_display_region () |
Creates a new DisplayRegion that covers the entire window. | |
DisplayRegion * | make_mono_display_region (float l, float r, float b, float t) |
Creates a new DisplayRegion that covers the indicated sub-rectangle within the window. | |
MAKE_SEQ (get_display_regions, get_num_display_regions, get_display_region) | |
MAKE_SEQ (get_active_display_regions, get_num_active_display_regions, get_active_display_region) | |
StereoDisplayRegion * | make_stereo_display_region () |
Creates a new DisplayRegion that covers the entire window. | |
StereoDisplayRegion * | make_stereo_display_region (float l, float r, float b, float t) |
Creates a new DisplayRegion that covers the indicated sub-rectangle within the window. | |
GraphicsOutput * | make_texture_buffer (const string &name, int x_size, int y_size, Texture *tex=NULL, bool to_ram=false, FrameBufferProperties *fbp=NULL) |
Creates and returns an offscreen buffer for rendering into, the result of which will be a texture suitable for applying to geometry within the scene rendered into this window. | |
void | mark_bam_modified () |
Increments the bam_modified counter, so that this object will be invalidated and retransmitted on any open bam streams. | |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *, void *) |
void | operator delete[] (void *, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t size, void *ptr) |
void * | operator new (size_t size) |
void * | operator new (size_t size) |
void * | operator new (size_t size, void *ptr) |
void * | operator new[] (size_t size, void *ptr) |
void * | operator new[] (size_t size, void *ptr) |
void * | operator new[] (size_t size) |
void * | operator new[] (size_t size) |
bool | operator< (const GraphicsOutput &other) const |
The sorting operator is used to order the GraphicsOutput object in order by their sort number, so that they will render in the correct order in the GraphicsEngine. | |
virtual void | process_events () |
Do whatever processing in the window thread is appropriate for this output object each frame. | |
PT (DisplayRegion) get_active_display_region(int n) const | |
PT (DisplayRegion) get_display_region(int n) const | |
void | ref () const |
Explicitly increments the reference count. | |
void | remove_all_display_regions () |
Removes all display regions from the window, except the default one that is created with the window. | |
bool | remove_display_region (DisplayRegion *display_region) |
Removes the indicated DisplayRegion from the window, and destructs it if there are no other references. | |
virtual void | request_close () |
This is called by the GraphicsEngine to request that the window (or whatever) close itself or, in general, make itself invalid, at the next call to process_events(). | |
virtual void | request_open () |
This is called by the GraphicsEngine to request that the window (or whatever) open itself or, in general, make itself valid, at the next call to process_events(). | |
virtual bool | require_fully_complete () const |
Some objects require all of their nested pointers to have been completed before the objects themselves can be completed. | |
virtual void | reset_window (bool swapchain) |
Resets the window framebuffer from its derived children. | |
bool | save_screenshot (const Filename &filename, const string &image_comment="") |
Saves a screenshot of the region to the indicated filename. | |
Filename | save_screenshot_default (const string &prefix="screenshot") |
Saves a screenshot of the region to a default filename, and returns the filename, or empty string if the screenshot failed. | |
virtual void | select_cube_map (int cube_map_index) |
Called internally when the window is in render-to-a-texture mode and we are in the process of rendering the six faces of a cube map. | |
void | set_active (bool active) |
Sets the active flag associated with the GraphicsOutput. | |
void | set_child_sort (int child_sort) |
Specifies the sort value of future offscreen buffers created by make_texture_sort(). | |
virtual void | set_clear_active (int n, bool clear_aux_active) |
Sets the clear-active flag for any bitplane. | |
void | set_clear_color (const Colorf &color) |
Sets the clear color to the indicated value. | |
void | set_clear_color_active (bool clear_color_active) |
Toggles the flag that indicates whether the color buffer should be cleared every frame. | |
void | set_clear_depth (float depth) |
Sets the clear depth to the indicated value. | |
void | set_clear_depth_active (bool clear_depth_active) |
Toggles the flag that indicates whether the depth buffer should be cleared every frame. | |
void | set_clear_stencil (unsigned int stencil) |
Sets the clear stencil to the indicated value. | |
void | set_clear_stencil_active (bool clear_stencil_active) |
Toggles the flag that indicates whether the stencil buffer should be cleared every frame. | |
virtual void | set_clear_value (int n, const Colorf &clear_value) |
Sets the clear value for any bitplane. | |
virtual void | set_close_now () |
This is called by the GraphicsEngine to insist that the output be closed immediately. | |
void | set_inverted (bool inverted) |
Changes the current setting of the inverted flag. | |
void | set_one_shot (bool one_shot) |
Changes the current setting of the one-shot flag. | |
virtual void | set_pixel_zoom (float pixel_zoom) |
Sets the amount by which the pixels of the region are scaled internally when filling the image interally. | |
void | set_red_blue_stereo (bool red_blue_stereo, unsigned int left_eye_color_mask, unsigned int right_eye_color_mask) |
Enables red-blue stereo mode on this particular window. | |
void | set_size_and_recalc (int x, int y) |
Changes the x_size and y_size, then recalculates structures that depend on size. | |
virtual void | set_sort (int sort) |
Adjusts the sorting order of this particular GraphicsOutput, relative to other GraphicsOutputs. | |
void | setup_render_texture (Texture *tex, bool allow_bind, bool to_ram) |
This is a deprecated interface that made sense back when GraphicsOutputs could only render into one texture at a time. | |
virtual bool | share_depth_buffer (GraphicsOutput *graphics_output) |
Will attempt to use the depth buffer of the input graphics_output. | |
virtual bool | supports_pixel_zoom () const |
Returns true if a call to set_pixel_zoom() will be respected, false if it will be ignored. | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. | |
void | trigger_copy () |
When the GraphicsOutput is in triggered copy mode, this function triggers the copy (at the end of the next frame). | |
virtual bool | unref () const |
Explicitly decrements the reference count. | |
virtual void | unshare_depth_buffer () |
Discontinue sharing the depth buffer. | |
virtual void | update_bam_nested (BamWriter *manager) |
Called by the BamWriter when this object has not itself been modified recently, but it should check its nested objects for updates. | |
void | weak_ref (WeakPointerToVoid *ptv) |
Adds the indicated PointerToVoid as a weak reference to this object. | |
void | weak_unref (WeakPointerToVoid *ptv) |
Removes the indicated PointerToVoid as a weak reference to this object. | |
virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
Writes the contents of this object to the datagram for shipping out to a Bam file. | |
Static Public Member Functions | |
static bool | decode_raw_from_bam_stream (TypedWritable *&ptr, ReferenceCount *&ref_ptr, const string &data, BamReader *reader=NULL) |
Reads the string created by a previous call to encode_to_bam_stream(), and extracts the single object on that string. | |
static TypeHandle | get_class_type () |
static int | get_renderbuffer_type (int plane) |
Returns the RenderBuffer::Type that corresponds to a RenderTexturePlane. | |
static void | init_type () |
static Filename | make_screenshot_filename (const string &prefix="screenshot") |
Saves a screenshot of the region to a default filename, and returns the filename, or empty string if the screenshot failed. | |
static | PT (TypedWritableReferenceCount) decode_from_bam_stream(const string &data |
Public Attributes | |
static BamReader * | reader = NULL) |
Static Public Attributes | |
static TypedWritable *const | Null = (TypedWritable*)0L |
Protected Types | |
typedef pvector< DisplayRegion * > | ActiveDisplayRegions |
typedef pvector< PT(DisplayRegion) > | TotalDisplayRegions |
Protected Member Functions | |
GraphicsOutput (GraphicsEngine *engine, GraphicsPipe *pipe, const string &name, const FrameBufferProperties &fb_prop, const WindowProperties &win_prop, int flags, GraphicsStateGuardian *gsg, GraphicsOutput *host) | |
Normally, the GraphicsOutput constructor is not called directly; these are created instead via the GraphicsEngine::make_window() function. | |
void | begin_frame_spam (FrameMode mode) |
Display the spam message associated with begin_frame. | |
void | clear_cube_map_selection () |
Clear the variables that select a cube-map face. | |
bool | copy_to_textures () |
For all textures marked RTM_copy_texture, RTM_copy_ram, RTM_triggered_copy_texture, or RTM_triggered_copy_ram, do the necessary copies. | |
bool | do_test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | do_test_ref_count_nonzero () const |
Returns true if the reference count is nonzero, false otherwise. | |
void | end_frame_spam (FrameMode mode) |
Display the spam message associated with end_frame. | |
virtual void | pixel_factor_changed () |
Called internally when the pixel factor changes. | |
void | prepare_for_deletion () |
Set the delete flag, and do the usual cleanup activities associated with that. | |
PT (GraphicsOutput) _host | |
PT (DisplayRegion) _default_display_region | |
PT (GraphicsStateGuardian) _gsg | |
PT (GraphicsPipe) _pipe | |
PT (Geom) _texture_card | |
void | trigger_flip () |
Set the flip_ready flag, only if legal to do so. | |
void | update_pixel_factor () |
Internal function to reset pixel_factor after it may have changed. | |
Protected Attributes | |
bool | _active |
ActiveDisplayRegions | _active_display_regions |
int | _creation_flags |
DisplayRegion * | _cube_map_dr |
int | _cube_map_index |
PStatCollector | _cull_window_pcollector |
bool | _delete_flag |
bool | _display_regions_stale |
int | _draw_buffer_type |
PStatCollector | _draw_window_pcollector |
GraphicsEngine * | _engine |
FrameBufferProperties | _fb_properties |
bool | _flip_ready |
bool | _has_size |
pvector< WPT(Texture)> | _hold_textures |
bool | _inverted |
bool | _is_valid |
unsigned int | _left_eye_color_mask |
LightMutex | _lock |
string | _name |
bool | _one_shot |
bool | _red_blue_stereo |
unsigned int | _right_eye_color_mask |
int | _screenshot_buffer_type |
bool | _stereo |
pvector< RenderTexture > | _textures |
TotalDisplayRegions | _total_display_regions |
bool | _trigger_copy |
int | _x_size |
int | _y_size |
Static Protected Attributes | |
static PStatCollector | _copy_texture_pcollector |
static PStatCollector | _cull_pcollector |
static PStatCollector | _draw_pcollector |
static PStatCollector | _make_current_pcollector |
Friends | |
class | DisplayRegion |
class | GraphicsEngine |
class | GraphicsPipe |
This is a base class for the various different classes that represent the result of a frame of rendering.
The most common kind of GraphicsOutput is a GraphicsWindow, which is a real-time window on the desktop, but another example is GraphicsBuffer, which is an offscreen buffer.
The actual rendering, and anything associated with the graphics context itself, is managed by the associated GraphicsStateGuardian (which might output to multiple GraphicsOutput objects).
GraphicsOutputs are not actually writable to bam files, of course, but they may be passed as event parameters, so they inherit from TypedWritableReferenceCount instead of TypedReferenceCount for that convenience.
Definition at line 62 of file graphicsOutput.h.
GraphicsOutput::GraphicsOutput | ( | GraphicsEngine * | engine, |
GraphicsPipe * | pipe, | ||
const string & | name, | ||
const FrameBufferProperties & | fb_prop, | ||
const WindowProperties & | win_prop, | ||
int | flags, | ||
GraphicsStateGuardian * | gsg, | ||
GraphicsOutput * | host | ||
) | [protected] |
Normally, the GraphicsOutput constructor is not called directly; these are created instead via the GraphicsEngine::make_window() function.
Definition at line 71 of file graphicsOutput.cxx.
References ConfigVariable::get_num_words(), ConfigVariable::get_string_value(), WindowProperties::get_x_size(), WindowProperties::get_y_size(), WindowProperties::has_size(), make_mono_display_region(), DrawableRegion::set_clear_color(), DrawableRegion::set_clear_color_active(), DrawableRegion::set_clear_depth_active(), and DrawableRegion::set_clear_stencil_active().
void GraphicsOutput::add_render_texture | ( | Texture * | tex, |
RenderTextureMode | mode, | ||
RenderTexturePlane | plane = RTP_COUNT |
||
) |
Creates a new Texture object, suitable for rendering the contents of this buffer into, and appends it to the list of render textures.
If tex is not NULL, it is the texture that will be set up for rendering into; otherwise, a new Texture object will be created, in which case you may call get_texture() to retrieve the new texture pointer.
You can specify a bitplane to attach the texture to. the legal choices are:
RTP_depth RTP_depth_stencil RTP_color RTP_aux_rgba_0 RTP_aux_rgba_1 RTP_aux_rgba_2 RTP_aux_rgba_3
If you do not specify a bitplane to attach the texture to, this routine will use a default based on the texture's format:
F_depth_component attaches to RTP_depth F_depth_stencil attaches to RTP_depth_stencil all other formats attach to RTP_color.
The texture's format will be changed to match the format of the bitplane to which it is attached. For example, if you pass in an F_rgba texture and order that it be attached to RTP_depth_stencil, it will turn into an F_depth_stencil texture.
Also see make_texture_buffer(), which is a higher-level interface for preparing render-to-a-texture mode.
Definition at line 268 of file graphicsOutput.cxx.
References Texture::clear_ram_image(), Texture::get_format(), get_name(), get_x_size(), get_y_size(), Texture::set_compression(), Texture::set_format(), Texture::set_match_framebuffer_format(), Texture::set_render_to_texture(), and Texture::set_size_padded().
Referenced by make_texture_buffer(), and setup_render_texture().
ReferenceCount * TypedWritableReferenceCount::as_reference_count | ( | ) | [virtual, inherited] |
Returns the pointer cast to a ReferenceCount pointer, if it is in fact of that type.
Reimplemented from TypedWritable.
Definition at line 26 of file typedWritableReferenceCount.cxx.
TypedObject * TypedObject::as_typed_object | ( | ) | [inline, inherited] |
Returns the object, upcast (if necessary) to a TypedObject pointer.
Definition at line 99 of file typedObject.I.
const TypedObject * TypedObject::as_typed_object | ( | ) | const [inline, inherited] |
Returns the object, upcast (if necessary) to a TypedObject pointer.
Definition at line 110 of file typedObject.I.
void GraphicsOutput::begin_flip | ( | ) | [virtual] |
This function will be called within the draw thread after end_frame() has been called on all windows, to initiate the exchange of the front and back buffers.
This should instruct the window to prepare for the flip at the next video sync, but it should not wait.
We have the two separate functions, begin_flip() and end_flip(), to make it easier to flip all of the windows at the same time.
Reimplemented in eglGraphicsWindow, glxGraphicsWindow, IPhoneGraphicsWindow, osxGraphicsWindow, wglGraphicsWindow, and WinGraphicsWindow.
Definition at line 1256 of file graphicsOutput.cxx.
bool GraphicsOutput::begin_frame | ( | FrameMode | mode, |
Thread * | current_thread | ||
) | [virtual] |
This function will be called within the draw thread before beginning rendering for a given frame.
It should do whatever setup is required, and return true if the frame should be rendered, or false if it should be skipped.
Reimplemented in ParasiteBuffer, wdxGraphicsBuffer8, wdxGraphicsWindow8, wdxGraphicsBuffer9, wdxGraphicsWindow9, eglGraphicsBuffer, eglGraphicsPixmap, eglGraphicsWindow, glxGraphicsBuffer, glxGraphicsPixmap, glxGraphicsWindow, IPhoneGraphicsWindow, OsMesaGraphicsBuffer, osxGraphicsBuffer, osxGraphicsWindow, TinyGraphicsBuffer, wglGraphicsBuffer, wglGraphicsWindow, and x11GraphicsWindow.
Definition at line 1016 of file graphicsOutput.cxx.
Referenced by DisplayRegion::get_screenshot().
void GraphicsOutput::begin_frame_spam | ( | FrameMode | mode | ) | [inline, protected] |
Display the spam message associated with begin_frame.
Definition at line 679 of file graphicsOutput.I.
References get_name().
Referenced by x11GraphicsWindow::begin_frame(), wglGraphicsWindow::begin_frame(), wglGraphicsBuffer::begin_frame(), TinyGraphicsBuffer::begin_frame(), osxGraphicsBuffer::begin_frame(), OsMesaGraphicsBuffer::begin_frame(), glxGraphicsWindow::begin_frame(), glxGraphicsPixmap::begin_frame(), glxGraphicsBuffer::begin_frame(), eglGraphicsWindow::begin_frame(), eglGraphicsPixmap::begin_frame(), eglGraphicsBuffer::begin_frame(), wdxGraphicsWindow9::begin_frame(), wdxGraphicsBuffer9::begin_frame(), wdxGraphicsWindow8::begin_frame(), wdxGraphicsBuffer8::begin_frame(), and ParasiteBuffer::begin_frame().
void GraphicsOutput::change_scenes | ( | DisplayRegionPipelineReader * | new_dr | ) |
Called by the GraphicsEngine when the window is about to change to another DisplayRegion.
This exists mainly to provide a callback for switching the cube map face, if we are rendering to the different faces of a cube map.
Definition at line 1183 of file graphicsOutput.cxx.
References count_textures(), DisplayRegionPipelineReader::get_cube_map_index(), DrawableRegion::get_draw_buffer_type(), get_fb_properties(), get_name(), get_rtm_mode(), get_texture(), and select_cube_map().
void GraphicsOutput::clear | ( | Thread * | current_thread | ) |
Clears the entire framebuffer before rendering, according to the settings of get_color_clear_active() and get_depth_clear_active() (inherited from DrawableRegion).
This function is called only within the draw thread.
Definition at line 1085 of file graphicsOutput.cxx.
References get_name(), and DrawableRegion::is_any_clear_active().
void GraphicsOutput::clear_child_sort | ( | ) | [inline] |
Resets the sort value of future offscreen buffers created by make_texture_sort() to the default value.
See set_child_sort().
Definition at line 459 of file graphicsOutput.I.
void GraphicsOutput::clear_cube_map_selection | ( | ) | [inline, protected] |
Clear the variables that select a cube-map face.
Definition at line 707 of file graphicsOutput.I.
Referenced by x11GraphicsWindow::begin_frame(), wglGraphicsWindow::begin_frame(), wglGraphicsBuffer::begin_frame(), osxGraphicsBuffer::begin_frame(), OsMesaGraphicsBuffer::begin_frame(), glxGraphicsWindow::begin_frame(), glxGraphicsPixmap::begin_frame(), glxGraphicsBuffer::begin_frame(), eglGraphicsWindow::begin_frame(), eglGraphicsPixmap::begin_frame(), eglGraphicsBuffer::begin_frame(), wdxGraphicsWindow9::begin_frame(), wdxGraphicsBuffer9::begin_frame(), wdxGraphicsWindow8::begin_frame(), wdxGraphicsBuffer8::begin_frame(), ParasiteBuffer::begin_frame(), x11GraphicsWindow::end_frame(), wglGraphicsWindow::end_frame(), wglGraphicsBuffer::end_frame(), TinyGraphicsBuffer::end_frame(), osxGraphicsBuffer::end_frame(), OsMesaGraphicsBuffer::end_frame(), glxGraphicsPixmap::end_frame(), glxGraphicsBuffer::end_frame(), eglGraphicsWindow::end_frame(), eglGraphicsPixmap::end_frame(), eglGraphicsBuffer::end_frame(), wdxGraphicsWindow9::end_frame(), wdxGraphicsBuffer9::end_frame(), wdxGraphicsWindow8::end_frame(), wdxGraphicsBuffer8::end_frame(), and ParasiteBuffer::end_frame().
void GraphicsOutput::clear_delete_flag | ( | ) | [inline] |
Resets the delete flag, so the GraphicsOutput will not be automatically deleted before the beginning of the next frame.
Definition at line 389 of file graphicsOutput.I.
void GraphicsOutput::clear_pipe | ( | ) | [virtual] |
Sets the window's _pipe pointer to NULL; this is generally called only as a precursor to deleting the window.
Reimplemented in IPhoneGraphicsWindow.
Definition at line 1002 of file graphicsOutput.cxx.
void GraphicsOutput::clear_render_textures | ( | ) |
If the GraphicsOutput is currently rendering to a texture, then all textures are dissociated from the GraphicsOuput.
Definition at line 220 of file graphicsOutput.cxx.
Referenced by prepare_for_deletion(), and setup_render_texture().
int TypedWritable::complete_pointers | ( | TypedWritable ** | p_list, |
BamReader * | manager | ||
) | [virtual, inherited] |
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
Returns the number of pointers processed.
This is the callback function that is made by the BamReader at some later point, after all of the required pointers have been filled in. It is necessary because there might be forward references in a bam file; when we call read_pointer() in fillin(), the object may not have been read from the file yet, so we do not have a pointer available at that time. Thus, instead of returning a pointer, read_pointer() simply reserves a later callback. This function provides that callback. The calling object is responsible for keeping track of the number of times it called read_pointer() and extracting the same number of pointers out of the supplied vector, and storing them appropriately within the object.
Reimplemented in CFDoCullCommand, AnimBundleNode, AnimChannelMatrixDynamic, AnimChannelScalarDynamic, AnimGroup, MovingPartBase, PartBundle, PartBundleNode, PartGroup, Character, CharacterJoint, CharacterJointEffect, CharacterVertexSlider, JointVertexTransform, CollisionNode, DataNodeTransmit, GeomVertexArrayData, GeomVertexArrayFormat, GeomVertexData, GeomVertexFormat, SliderTable, TextureStage, TransformBlendTable, TransformTable, PiecewiseCurve, ClipPlaneAttrib, FogAttrib, LensNode, LightAttrib, MaterialAttrib, PortalNode, RenderEffects, RenderState, TexGenAttrib, TexMatrixAttrib, TexProjectorEffect, TextureAttrib, BamCacheIndex, RecorderFrame, EggFile, ImageFile, PaletteGroup, PaletteGroups, PaletteImage, PalettePage, Palettizer, SourceTextureImage, TextureImage, TexturePlacement, TextureProperties, and TextureReference.
Definition at line 103 of file typedWritable.cxx.
void DrawableRegion::copy_clear_settings | ( | const DrawableRegion & | copy | ) | [inline, inherited] |
Copies only the clear settings from the other drawable region.
Definition at line 77 of file drawableRegion.I.
References DrawableRegion::update_pixel_factor().
Referenced by make_cube_map().
bool GraphicsOutput::copy_to_textures | ( | ) | [protected] |
For all textures marked RTM_copy_texture, RTM_copy_ram, RTM_triggered_copy_texture, or RTM_triggered_copy_ram, do the necessary copies.
Returns true if all copies are successful, false otherwise.
Definition at line 1112 of file graphicsOutput.cxx.
References count_textures(), DrawableRegion::get_draw_buffer_type(), get_fb_properties(), get_name(), DrawableRegion::get_renderbuffer_type(), get_rtm_mode(), get_texture(), get_texture_plane(), and has_texture().
Referenced by x11GraphicsWindow::end_frame(), wglGraphicsWindow::end_frame(), wglGraphicsBuffer::end_frame(), TinyGraphicsBuffer::end_frame(), osxGraphicsBuffer::end_frame(), OsMesaGraphicsBuffer::end_frame(), glxGraphicsPixmap::end_frame(), glxGraphicsBuffer::end_frame(), eglGraphicsWindow::end_frame(), eglGraphicsPixmap::end_frame(), eglGraphicsBuffer::end_frame(), wdxGraphicsWindow9::end_frame(), wdxGraphicsBuffer9::end_frame(), wdxGraphicsWindow8::end_frame(), wdxGraphicsBuffer8::end_frame(), and ParasiteBuffer::end_frame().
int GraphicsOutput::count_textures | ( | ) | const [inline] |
If the GraphicsOutput is set to render into a texture, returns the number of textures that are being rendered into.
Normally, the textures would be associated with different buffers - a color texture, a depth texture, and a stencil texture.
Definition at line 82 of file graphicsOutput.I.
Referenced by wglGraphicsBuffer::begin_frame(), osxGraphicsBuffer::begin_frame(), OsMesaGraphicsBuffer::begin_frame(), glxGraphicsPixmap::begin_frame(), glxGraphicsBuffer::begin_frame(), eglGraphicsPixmap::begin_frame(), eglGraphicsBuffer::begin_frame(), change_scenes(), copy_to_textures(), ParasiteBuffer::end_frame(), get_texture_card(), prepare_for_deletion(), wdxGraphicsBuffer9::select_cube_map(), and wdxGraphicsBuffer8::select_cube_map().
bool TypedWritable::decode_raw_from_bam_stream | ( | TypedWritable *& | ptr, |
ReferenceCount *& | ref_ptr, | ||
const string & | data, | ||
BamReader * | reader = NULL |
||
) | [static, inherited] |
Reads the string created by a previous call to encode_to_bam_stream(), and extracts the single object on that string.
Returns true on success, false on on error.
This variant sets the TypedWritable and ReferenceCount pointers separately; both are pointers to the same object. The reference count is not incremented; it is the caller's responsibility to manage the reference count.
Note that this method cannot be used to retrieve objects that do not inherit from ReferenceCount, because these objects cannot persist beyond the lifetime of the BamReader that reads them. To retrieve these objects from a bam stream, you must construct a BamReader directly.
If you happen to know that the particular object in question inherits from TypedWritableReferenceCount or PandaNode, consider calling the variant of decode_from_bam_stream() defined for those methods, which presents a simpler interface.
Definition at line 353 of file typedWritable.cxx.
References BamReader::init(), DatagramInputFile::open(), DatagramInputFile::read_header(), BamReader::read_object(), ReferenceCount::ref(), BamReader::resolve(), BamReader::set_source(), and ReferenceCount::unref().
void DrawableRegion::disable_clears | ( | ) | [virtual, inherited] |
Disables both the color and depth clear.
See set_clear_color_active and set_clear_depth_active.
Reimplemented in StereoDisplayRegion.
Definition at line 80 of file drawableRegion.cxx.
References DrawableRegion::update_pixel_factor().
bool ReferenceCount::do_test_ref_count_integrity | ( | ) | const [protected, inherited] |
Does some easy checks to make sure that the reference count isn't completely bogus.
Returns true if ok, false otherwise.
Reimplemented in NodeReferenceCount, CachedTypedWritableReferenceCount, and NodeCachedReferenceCount.
Definition at line 29 of file referenceCount.cxx.
Referenced by ReferenceCount::do_test_ref_count_nonzero(), and ReferenceCount::test_ref_count_integrity().
bool ReferenceCount::do_test_ref_count_nonzero | ( | ) | const [protected, inherited] |
Returns true if the reference count is nonzero, false otherwise.
Definition at line 56 of file referenceCount.cxx.
References ReferenceCount::do_test_ref_count_integrity().
Referenced by ReferenceCount::test_ref_count_nonzero().
string TypedWritable::encode_to_bam_stream | ( | ) | const [inline, inherited] |
Converts the TypedWritable object into a single stream of data using a BamWriter, and returns that data as a string string.
Returns empty string on failure.
This is a convenience method particularly useful for cases when you are only serializing a single object. If you have many objects to process, it is more efficient to use the same BamWriter to serialize all of them together.
Definition at line 86 of file typedWritable.I.
bool TypedWritable::encode_to_bam_stream | ( | string & | data, |
BamWriter * | writer = NULL |
||
) | const [inherited] |
Converts the TypedWritable object into a single stream of data using a BamWriter, and stores that data in the indicated string.
Returns true on success, false on failure.
This is a convenience method particularly useful for cases when you are only serializing a single object. If you have many objects to process, it is more efficient to use the same BamWriter to serialize all of them together.
Definition at line 283 of file typedWritable.cxx.
References BamWriter::init(), DatagramOutputFile::open(), BamWriter::set_target(), DatagramOutputFile::write_header(), and BamWriter::write_object().
void GraphicsOutput::end_flip | ( | ) | [virtual] |
This function will be called within the draw thread after begin_flip() has been called on all windows, to finish the exchange of the front and back buffers.
This should cause the window to wait for the flip, if necessary.
Reimplemented in wdxGraphicsWindow8, wdxGraphicsWindow9, IPhoneGraphicsWindow, and osxGraphicsWindow.
Definition at line 1270 of file graphicsOutput.cxx.
void GraphicsOutput::end_frame | ( | FrameMode | mode, |
Thread * | current_thread | ||
) | [virtual] |
This function will be called within the draw thread after rendering is completed for a given frame.
It should do whatever finalization is required.
Reimplemented in ParasiteBuffer, wdxGraphicsBuffer8, wdxGraphicsWindow8, wdxGraphicsBuffer9, wdxGraphicsWindow9, eglGraphicsBuffer, eglGraphicsPixmap, eglGraphicsWindow, glxGraphicsBuffer, glxGraphicsPixmap, IPhoneGraphicsWindow, OsMesaGraphicsBuffer, osxGraphicsBuffer, osxGraphicsWindow, TinyGraphicsBuffer, wglGraphicsBuffer, wglGraphicsWindow, and x11GraphicsWindow.
Definition at line 1028 of file graphicsOutput.cxx.
Referenced by DisplayRegion::get_screenshot().
void GraphicsOutput::end_frame_spam | ( | FrameMode | mode | ) | [inline, protected] |
Display the spam message associated with end_frame.
Definition at line 693 of file graphicsOutput.I.
References get_name().
Referenced by x11GraphicsWindow::end_frame(), wglGraphicsWindow::end_frame(), wglGraphicsBuffer::end_frame(), TinyGraphicsBuffer::end_frame(), osxGraphicsBuffer::end_frame(), OsMesaGraphicsBuffer::end_frame(), glxGraphicsPixmap::end_frame(), glxGraphicsBuffer::end_frame(), eglGraphicsWindow::end_frame(), eglGraphicsPixmap::end_frame(), eglGraphicsBuffer::end_frame(), wdxGraphicsWindow9::end_frame(), wdxGraphicsBuffer9::end_frame(), wdxGraphicsWindow8::end_frame(), wdxGraphicsBuffer8::end_frame(), and ParasiteBuffer::end_frame().
void TypedWritable::fillin | ( | DatagramIterator & | scan, |
BamReader * | manager | ||
) | [virtual, inherited] |
This internal function is intended to be called by each class's make_from_bam() method to read in all of the relevant data from the BamFile for the new object.
It is also called directly by the BamReader to re-read the data for an object that has been placed on the stream for an update.
Reimplemented in CFDoCullCommand, AnimBundle, AnimBundleNode, AnimChannelBase, AnimChannelMatrixDynamic, AnimChannelMatrixFixed, AnimChannelMatrixXfmTable, AnimChannelScalarDynamic, AnimChannelScalarTable, AnimGroup, AnimPreloadTable, MovingPart< SwitchType >, MovingPartBase, PartBundle, PartBundleNode, PartGroup, Character, CharacterJoint, CharacterJointEffect, CharacterVertexSlider, JointVertexTransform, CollisionBox, CollisionDSSolid, CollisionFloorMesh, CollisionInvSphere, CollisionLine, CollisionNode, CollisionParabola, CollisionPlane, CollisionPolygon, CollisionRay, CollisionSegment, CollisionSolid, CollisionSphere, CollisionTube, DataNode, DataNodeTransmit, ButtonEventList, EventStoreValue< Type >, Geom, GeomPrimitive, GeomVertexArrayData, GeomVertexArrayFormat, GeomVertexData, GeomVertexFormat, Lens, Material, SliderTable, TextureStage, TransformBlendTable, TransformTable, UserVertexSlider, UserVertexTransform, VertexSlider, VertexTransform, CubicCurveseg, HermiteCurve, NurbsCurve, ParametricCurve, PiecewiseCurve, RopeNode, SheetNode, AlphaTestAttrib, AntialiasAttrib, AudioVolumeAttrib, AuxBitplaneAttrib, BillboardEffect, Camera, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CompassEffect, CullBinAttrib, CullFaceAttrib, DecalEffect, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, Fog, FogAttrib, GeomNode, LensNode, LightAttrib, LightRampAttrib, MaterialAttrib, ModelNode, ModelRoot, PandaNode, PlaneNode, PolylightNode, PortalNode, RenderAttrib, RenderEffect, RenderEffects, RenderModeAttrib, RenderState, RescaleNormalAttrib, ScissorAttrib, ScissorEffect, ShadeModelAttrib, ShowBoundsEffect, StencilAttrib, TexGenAttrib, TexMatrixAttrib, TexProjectorEffect, TextureAttrib, TransformState, TransparencyAttrib, UvScrollNode, AmbientLight, CallbackNode, DirectionalLight, FadeLODNode, LightLensNode, LightNode, LODNode, PointLight, SequenceNode, Spotlight, SwitchNode, BamCacheIndex, BamCacheRecord, MouseRecorder, RecorderFrame, RecorderHeader, RecorderTable, DestTextureImage, EggFile, ImageFile, PaletteGroup, PaletteGroups, PaletteImage, PalettePage, Palettizer, SourceTextureImage, TextureImage, TexturePlacement, TexturePosition, TextureProperties, TextureReference, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >.
Definition at line 133 of file typedWritable.cxx.
Referenced by EventStoreValue< Type >::fillin().
void TypedWritable::finalize | ( | BamReader * | manager | ) | [virtual, inherited] |
Called by the BamReader to perform any final actions needed for setting up the object after all objects have been read and all pointers have been completed.
Reimplemented in PartBundle, Geom, GeomPrimitive, GeomVertexArrayData, GeomVertexArrayFormat, GeomVertexData, InternalName, GeomNode, LightAttrib, RenderAttrib, RenderEffect, RenderEffects, RenderState, PaletteGroup, and Palettizer.
Definition at line 145 of file typedWritable.cxx.
Referenced by BamReader::finalize_now().
bool GraphicsOutput::flip_ready | ( | ) | const [inline] |
Returns true if a frame has been rendered and needs to be flipped, false otherwise.
Definition at line 603 of file graphicsOutput.I.
UpdateSeq TypedWritable::get_bam_modified | ( | ) | const [inline, inherited] |
Returns the current bam_modified counter.
This counter is normally incremented automatically whenever the object is modified.
Definition at line 66 of file typedWritable.I.
Referenced by BamWriter::consider_update(), and BamWriter::write_pointer().
int GraphicsOutput::get_child_sort | ( | ) | const [inline] |
Returns the sort value of future offscreen buffers created by make_texture_sort().
See set_child_sort().
Definition at line 470 of file graphicsOutput.I.
References get_sort().
Referenced by make_texture_buffer().
bool DrawableRegion::get_clear_active | ( | int | n | ) | const [virtual, inherited] |
Gets the clear-active flag for any bitplane.
Definition at line 45 of file drawableRegion.cxx.
Referenced by DrawableRegion::get_clear_color_active(), DrawableRegion::get_clear_depth_active(), DrawableRegion::get_clear_stencil_active(), and DrawableRegion::is_any_clear_active().
const Colorf & DrawableRegion::get_clear_color | ( | ) | const [inline, inherited] |
Returns the current clear color value.
This is the value that will be used to clear the color buffer every frame, but only if get_clear_color_active() returns true. If get_clear_color_active() returns false, this is meaningless.
Definition at line 187 of file drawableRegion.I.
References DrawableRegion::get_clear_value().
bool DrawableRegion::get_clear_color_active | ( | ) | const [inline, inherited] |
Returns the current setting of the flag that indicates whether the color buffer should be cleared every frame.
Definition at line 107 of file drawableRegion.I.
References DrawableRegion::get_clear_active().
Referenced by DisplayRegion::supports_pixel_zoom().
float DrawableRegion::get_clear_depth | ( | ) | const [inline, inherited] |
Returns the current clear depth value.
This is the value that will be used to clear the depth buffer every frame, but only if get_clear_depth_active() returns true. If get_clear_depth_active() returns false, this is meaningless.
Definition at line 215 of file drawableRegion.I.
References DrawableRegion::get_clear_value().
bool DrawableRegion::get_clear_depth_active | ( | ) | const [inline, inherited] |
Returns the current setting of the flag that indicates whether the depth buffer should be cleared every frame.
Definition at line 133 of file drawableRegion.I.
References DrawableRegion::get_clear_active().
Referenced by DisplayRegion::supports_pixel_zoom().
unsigned int DrawableRegion::get_clear_stencil | ( | ) | const [inline, inherited] |
Returns the current clear stencil value.
This is the value that will be used to clear the stencil buffer every frame, but only if get_clear_stencil_active() returns true. If get_clear_stencil_active() returns false, this is meaningless.
Definition at line 242 of file drawableRegion.I.
References DrawableRegion::get_clear_value().
bool DrawableRegion::get_clear_stencil_active | ( | ) | const [inline, inherited] |
Returns the current setting of the flag that indicates whether the color buffer should be cleared every frame.
See set_clear_stencil_active().
Definition at line 159 of file drawableRegion.I.
References DrawableRegion::get_clear_active().
const Colorf & DrawableRegion::get_clear_value | ( | int | n | ) | const [virtual, inherited] |
Returns the clear value for any bitplane.
Definition at line 67 of file drawableRegion.cxx.
Referenced by DrawableRegion::get_clear_color(), DrawableRegion::get_clear_depth(), and DrawableRegion::get_clear_stencil().
PStatCollector & GraphicsOutput::get_cull_window_pcollector | ( | ) | [inline] |
Returns a PStatCollector for timing the cull operation for just this GraphicsOutput.
Definition at line 658 of file graphicsOutput.I.
bool GraphicsOutput::get_delete_flag | ( | ) | const [inline] |
Returns the current setting of the delete flag.
When this is true, the GraphicsOutput will automatically be removed before the beginning of the next frame by the GraphicsEngine.
Definition at line 402 of file graphicsOutput.I.
Referenced by GraphicsEngine::render_frame().
int DrawableRegion::get_draw_buffer_type | ( | ) | const [inline, inherited] |
Returns the RenderBuffer into which the GSG should issue draw commands.
Normally, this is the back buffer for double-buffered windows, and the front buffer for single-buffered windows.
Definition at line 295 of file drawableRegion.I.
Referenced by change_scenes(), and copy_to_textures().
PStatCollector & GraphicsOutput::get_draw_window_pcollector | ( | ) | [inline] |
Returns a PStatCollector for timing the draw operation for just this GraphicsOutput.
Definition at line 669 of file graphicsOutput.I.
GraphicsEngine * GraphicsOutput::get_engine | ( | ) | const [inline] |
Returns the graphics engine that created this output.
Since there is normally only one GraphicsEngine object in an application, this is usually the same as the global GraphicsEngine.
Definition at line 57 of file graphicsOutput.I.
const FrameBufferProperties & GraphicsOutput::get_fb_properties | ( | ) | const [inline] |
Returns the framebuffer properties of the window.
Definition at line 364 of file graphicsOutput.I.
Referenced by x11GraphicsWindow::begin_frame(), wglGraphicsWindow::begin_frame(), wglGraphicsBuffer::begin_frame(), TinyGraphicsBuffer::begin_frame(), osxGraphicsBuffer::begin_frame(), OsMesaGraphicsBuffer::begin_frame(), glxGraphicsWindow::begin_frame(), glxGraphicsPixmap::begin_frame(), glxGraphicsBuffer::begin_frame(), eglGraphicsWindow::begin_frame(), eglGraphicsPixmap::begin_frame(), eglGraphicsBuffer::begin_frame(), wdxGraphicsWindow9::begin_frame(), wdxGraphicsBuffer9::begin_frame(), wdxGraphicsWindow8::begin_frame(), wdxGraphicsBuffer8::begin_frame(), change_scenes(), copy_to_textures(), DisplayRegion::get_screenshot(), and GraphicsEngine::make_output().
int GraphicsOutput::get_fb_x_size | ( | ) | const [inline] |
Returns the internal width of the window or buffer.
This is almost always the same as get_x_size(), except when a pixel_zoom is in effect--see set_pixel_zoom().
Definition at line 195 of file graphicsOutput.I.
References DrawableRegion::get_pixel_factor().
Referenced by DisplayRegion::compute_pixels(), DisplayRegion::compute_pixels_all_stages(), and DisplayRegion::set_dimensions().
int GraphicsOutput::get_fb_y_size | ( | ) | const [inline] |
Returns the internal height of the window or buffer.
This is almost always the same as get_y_size(), except when a pixel_zoom is in effect--see set_pixel_zoom().
Definition at line 208 of file graphicsOutput.I.
References DrawableRegion::get_pixel_factor().
Referenced by DisplayRegion::compute_pixels(), DisplayRegion::compute_pixels_all_stages(), and DisplayRegion::set_dimensions().
GraphicsStateGuardian * GraphicsOutput::get_gsg | ( | ) | const [inline] |
Returns the GSG that is associated with this window.
There is a one-to-one association between windows and GSG's.
This may return NULL if the graphics context has not yet been created for the window, e.g. before the first frame has rendered; or after the window has been closed.
Definition at line 29 of file graphicsOutput.I.
Referenced by NonlinearImager::add_viewer(), DisplayRegion::get_screenshot(), GraphicsEngine::make_buffer(), make_cube_map(), GraphicsEngine::make_output(), GraphicsEngine::make_parasite(), make_texture_buffer(), ParasiteBuffer::ParasiteBuffer(), GraphicsEngine::remove_all_windows(), GraphicsEngine::remove_window(), DisplayRegionDrawCallbackData::upcall(), and DisplayRegionCullCallbackData::upcall().
GraphicsOutput * GraphicsOutput::get_host | ( | ) | [virtual] |
This is normally called only from within make_texture_buffer().
When called on a ParasiteBuffer, it returns the host of that buffer; but when called on some other buffer, it returns the buffer itself.
Reimplemented in ParasiteBuffer.
Definition at line 942 of file graphicsOutput.cxx.
Referenced by GraphicsEngine::make_output(), and make_texture_buffer().
bool GraphicsOutput::get_inverted | ( | ) | const [inline] |
Returns the current setting of the inverted flag.
When this is true, the scene is rendered into the window upside-down, flipped like a mirror along the X axis. See set_inverted().
Definition at line 286 of file graphicsOutput.I.
unsigned int GraphicsOutput::get_left_eye_color_mask | ( | ) | const [inline] |
Returns the color mask in effect when rendering a left-eye view in red_blue stereo mode.
This is one or more bits defined in ColorWriteAttrib::Channels. See set_red_blue_stereo().
Definition at line 341 of file graphicsOutput.I.
Referenced by GraphicsStateGuardian::prepare_display_region().
const string & GraphicsOutput::get_name | ( | ) | const [inline] |
Returns the name that was passed to the GraphicsOutput constructor.
Definition at line 68 of file graphicsOutput.I.
Referenced by add_render_texture(), begin_frame_spam(), change_scenes(), clear(), copy_to_textures(), end_frame_spam(), GraphicsBuffer::GraphicsBuffer(), GraphicsWindow::GraphicsWindow(), and ParasiteBuffer::ParasiteBuffer().
int GraphicsOutput::get_num_active_display_regions | ( | ) | const |
Returns the number of active DisplayRegions that have been created within the window.
Definition at line 622 of file graphicsOutput.cxx.
Referenced by GraphicsEngine::render_frame().
int GraphicsOutput::get_num_display_regions | ( | ) | const |
Returns the number of DisplayRegions that have been created within the window, active or otherwise.
Definition at line 581 of file graphicsOutput.cxx.
bool GraphicsOutput::get_one_shot | ( | ) | const [inline] |
Returns the current setting of the one-shot flag.
When this is true, the GraphicsOutput will automatically detach its texture (if it has one) and remove itself from the GraphicsEngine after it renders the next frame.
Definition at line 273 of file graphicsOutput.I.
GraphicsPipe * GraphicsOutput::get_pipe | ( | ) | const [inline] |
Returns the GraphicsPipe that this window is associated with.
It is possible that the GraphicsPipe might have been deleted while an outstanding PT(GraphicsOutput) prevented all of its children windows from also being deleted; in this unlikely case, get_pipe() may return NULL.
Definition at line 44 of file graphicsOutput.I.
Referenced by DisplayRegionPipelineReader::get_pipe(), DisplayRegion::get_pipe(), GraphicsEngine::make_buffer(), GraphicsEngine::make_parasite(), and make_texture_buffer().
float DrawableRegion::get_pixel_factor | ( | ) | const [inline, inherited] |
Returns the amount by which the height and width of the region will be scaled internally, based on the zoom factor set by set_pixel_zoom().
This will return 1.0 if the pixel_zoom was not set or if it is not being respected (for instance, because the underlying renderer doesn't support it--see supports_pixel_zoom).
Definition at line 270 of file drawableRegion.I.
Referenced by get_fb_x_size(), and get_fb_y_size().
float DrawableRegion::get_pixel_zoom | ( | ) | const [inline, inherited] |
Returns the value set by set_pixel_zoom(), regardless of whether it is being respected or not.
Also see get_pixel_factor().
Definition at line 254 of file drawableRegion.I.
bool GraphicsOutput::get_red_blue_stereo | ( | ) | const [inline] |
Returns whether red-blue stereo mode is in effect for this particular window.
Definition at line 328 of file graphicsOutput.I.
int ReferenceCount::get_ref_count | ( | ) | const [inline, inherited] |
Returns the current reference count.
Definition at line 155 of file referenceCount.I.
References ReferenceCount::test_ref_count_integrity().
Referenced by TransformState::clear_cache(), RenderState::clear_cache(), RenderState::finalize(), RenderEffects::finalize(), RenderEffect::finalize(), RenderAttrib::finalize(), InternalName::finalize(), TransformState::get_num_unused_states(), RenderState::get_num_unused_states(), TransformState::list_cycles(), RenderState::list_cycles(), GeomVertexFormat::remove_column(), TransformState::unref(), RenderState::unref(), RenderState::~RenderState(), and TransformState::~TransformState().
int DrawableRegion::get_renderbuffer_type | ( | int | plane | ) | [static, inherited] |
Returns the RenderBuffer::Type that corresponds to a RenderTexturePlane.
Definition at line 163 of file drawableRegion.cxx.
Referenced by copy_to_textures().
unsigned int GraphicsOutput::get_right_eye_color_mask | ( | ) | const [inline] |
Returns the color mask in effect when rendering a right-eye view in red_blue stereo mode.
This is one or more bits defined in ColorWriteAttrib::Channels. See set_red_blue_stereo().
Definition at line 354 of file graphicsOutput.I.
Referenced by GraphicsStateGuardian::prepare_display_region().
GraphicsOutput::RenderTextureMode GraphicsOutput::get_rtm_mode | ( | int | i = 0 | ) | const [inline] |
Returns the RenderTextureMode associated with the nth render-texture.
Returns RTM_none if there is no such texture.
Definition at line 141 of file graphicsOutput.I.
Referenced by wglGraphicsBuffer::begin_frame(), osxGraphicsBuffer::begin_frame(), OsMesaGraphicsBuffer::begin_frame(), glxGraphicsPixmap::begin_frame(), glxGraphicsBuffer::begin_frame(), eglGraphicsPixmap::begin_frame(), eglGraphicsBuffer::begin_frame(), change_scenes(), copy_to_textures(), ParasiteBuffer::end_frame(), prepare_for_deletion(), wdxGraphicsBuffer9::select_cube_map(), and wdxGraphicsBuffer8::select_cube_map().
bool GraphicsOutput::get_screenshot | ( | PNMImage & | image | ) | [inline] |
Captures the most-recently rendered image from the framebuffer into the indicated PNMImage.
Returns true on success, false on failure.
Definition at line 592 of file graphicsOutput.I.
int DrawableRegion::get_screenshot_buffer_type | ( | ) | const [inline, inherited] |
Returns the RenderBuffer that should be used for capturing screenshots from this particular DrawableRegion.
Definition at line 282 of file drawableRegion.I.
Referenced by DisplayRegion::get_screenshot().
int GraphicsOutput::get_sort | ( | ) | const [inline] |
Returns the sorting order of this particular GraphicsOutput.
The various GraphicsOutputs within a particular thread will be rendered in the indicated order.
Definition at line 422 of file graphicsOutput.I.
Referenced by get_child_sort().
Texture * GraphicsOutput::get_texture | ( | int | i = 0 | ) | const [inline, virtual] |
Returns the nth texture into which the GraphicsOutput renders.
Returns NULL if there is no such texture.
If the texture is non-NULL, it may be applied to geometry to be rendered for any other windows or outputs that share the same GSG as this GraphicsOutput. The effect is undefined for windows that share a different GSG; usually in these cases the texture will be invalid.
Implements GraphicsOutputBase.
Definition at line 111 of file graphicsOutput.I.
Referenced by change_scenes(), copy_to_textures(), MultitexReducer::flatten(), get_texture_card(), prepare_for_deletion(), wdxGraphicsBuffer9::select_cube_map(), and wdxGraphicsBuffer8::select_cube_map().
NodePath GraphicsOutput::get_texture_card | ( | ) |
Returns a PandaNode containing a square polygon.
The dimensions are (-1,0,-1) to (1,0,1). The texture coordinates are such that the texture of this GraphicsOutput is aligned properly to the polygon. The GraphicsOutput promises to surgically update the Geom inside the PandaNode if necessary to maintain this invariant.
Each invocation of this function returns a freshly- allocated PandaNode. You can therefore safely modify the RenderAttribs of the PandaNode. The PandaNode is initially textured with the texture of this GraphicOutput.
Definition at line 748 of file graphicsOutput.cxx.
References count_textures(), Texture::get_format(), get_texture(), and NodePath::set_texture().
GraphicsOutput::RenderTexturePlane GraphicsOutput::get_texture_plane | ( | int | i = 0 | ) | const [inline] |
Returns the RenderTexturePlane associated with the nth render-texture.
Returns 0 if there is no such texture.
Definition at line 126 of file graphicsOutput.I.
Referenced by wglGraphicsBuffer::begin_frame(), copy_to_textures(), and wdxGraphicsBuffer9::select_cube_map().
int TypedObject::get_type_index | ( | ) | const [inline, inherited] |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
This is equivalent to get_type().get_index().
Definition at line 52 of file typedObject.I.
References TypeHandle::get_index().
WeakReferenceList * ReferenceCount::get_weak_list | ( | ) | const [inline, inherited] |
Returns the WeakReferenceList associated with this ReferenceCount object.
If there has never been a WeakReferenceList associated with this object, creates one now.
Definition at line 307 of file referenceCount.I.
Referenced by ReferenceCount::weak_ref().
int GraphicsOutput::get_x_size | ( | ) | const [inline] |
Returns the visible width of the window or buffer, if it is known.
In certain cases (e.g. fullscreen windows), the size may not be known until after the object has been fully created. Check has_size() first.
Certain objects (like windows) may change size spontaneously; this method is not thread-safe. To get the size of a window in a thread-safe manner, query get_properties().
Definition at line 163 of file graphicsOutput.I.
Referenced by add_render_texture(), ParasiteBuffer::ParasiteBuffer(), GraphicsWindowInputDevice::set_pointer(), and wdxGraphicsBuffer9::share_depth_buffer().
int GraphicsOutput::get_y_size | ( | ) | const [inline] |
Returns the visible height of the window or buffer, if it is known.
In certain cases (e.g. fullscreen windows), the size may not be known until after the object has been fully created. Check has_size() first.
Certain objects (like windows) may change size spontaneously; this method is not thread-safe. To get the size of a window in a thread-safe manner, query get_properties().
Definition at line 182 of file graphicsOutput.I.
Referenced by add_render_texture(), ParasiteBuffer::ParasiteBuffer(), GraphicsWindowInputDevice::set_pointer(), and wdxGraphicsBuffer9::share_depth_buffer().
bool GraphicsOutput::has_size | ( | ) | const [inline] |
Returns true if the size of the window/frame buffer is known, false otherwise.
In certain cases the size may not be known until after the object has been fully created. Also, certain objects (like windows) may change size spontaneously.
Definition at line 222 of file graphicsOutput.I.
Referenced by DisplayRegion::set_dimensions().
bool GraphicsOutput::has_texture | ( | ) | const [inline] |
Returns true if the GraphicsOutput is rendering into any textures at all.
Definition at line 93 of file graphicsOutput.I.
Referenced by copy_to_textures().
bool ReferenceCount::has_weak_list | ( | ) | const [inline, inherited] |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise.
In general, this will be true if there was ever a WeakPointerTo created for this object (even if there is not any for it now).
Definition at line 294 of file referenceCount.I.
Referenced by ReferenceCount::weak_unref().
bool GraphicsOutput::is_active | ( | ) | const [virtual] |
Returns true if the window is ready to be rendered into, false otherwise.
Reimplemented in GraphicsWindow, and ParasiteBuffer.
Definition at line 407 of file graphicsOutput.cxx.
References is_valid().
bool DrawableRegion::is_any_clear_active | ( | ) | const [virtual, inherited] |
Returns true if any of the clear types (so far there are just color or depth) have been set active, or false if none of them are active and there is no need to clear.
Definition at line 96 of file drawableRegion.cxx.
References DrawableRegion::get_clear_active().
Referenced by clear().
bool TypedObject::is_exact_type | ( | TypeHandle | handle | ) | const [inline, inherited] |
Returns true if the current object is the indicated type exactly.
Definition at line 74 of file typedObject.I.
References TypeHandle::get_name().
Referenced by GraphicsStateGuardian::async_reload_texture(), PortalNode::combine_with(), PandaNode::combine_with(), GeomNode::combine_with(), CollisionNode::combine_with(), Character::combine_with(), PGItem::cull_callback(), FactoryParams::get_param_of_type(), CollisionHandlerPusher::handle_entries(), SceneGraphReducer::r_flatten(), ConnectionWriter::send(), FltToEggLevelState::set_transform(), and VirtualFileSystem::unmount().
bool TypedObject::is_of_type | ( | TypeHandle | handle | ) | const [inline, inherited] |
Returns true if the current object is or derives from the indicated type.
Definition at line 63 of file typedObject.I.
References TypeHandle::is_derived_from().
Referenced by EggSliderData::add_back_pointer(), EggJointData::add_back_pointer(), CIntervalManager::add_c_interval(), XFileNode::add_child(), CollisionTraverser::add_collider(), CollisionHandlerPhysical::add_collider(), EggXfmSAnim::add_data(), CharacterJointBundle::add_node(), NonlinearImager::add_screen(), EggGroupNode::apply_first_attribute(), EggGroupNode::apply_last_attribute(), DeferredNodeProperty::apply_to_node(), RecorderController::begin_playback(), NodePath::clear_clip_plane(), EggGroupNode::clear_connected_shading(), NodePath::clear_light(), EggBase::convert_paths(), NodePath::decode_from_bam_stream(), VrpnClient::disconnect_device(), PhysicsManager::do_physics(), GraphicsStateGuardian::fetch_specified_part(), EggRenderState::fill_state(), AnimBundleNode::find_anim_bundle(), EggGroupNode::find_coordsys_entry(), XFile::find_data_object(), Character::find_joint(), EggGroupNode::find_materials(), Character::find_slider(), XFile::find_template(), EggGroupNode::find_textures(), EggMaterialCollection::find_used_materials(), EggTextureCollection::find_used_textures(), EggGroupNode::force_filenames(), EggJointData::force_initial_rest_frame(), WindowFramework::get_aspect_2d(), EggPoolUniquifier::get_category(), EggGroupUniquifier::get_category(), EggGroupNode::get_connected_shading(), PandaFramework::get_mouse(), FactoryParams::get_param_of_type(), EggGroupNode::has_absolute_pathnames(), NodePath::has_clip_plane(), NodePath::has_clip_plane_off(), NodePath::has_light(), PandaFramework::hide_collision_solids(), x11GraphicsWindow::open_window(), eglGraphicsWindow::open_window(), EggNode::parse_egg(), CharacterMaker::part_to_node(), EggGroupNode::post_apply_flat_attribute(), EggBinner::prepare_node(), PortalClipper::prepare_portal(), NodePath::project_texture(), EggMatrixTablePointer::quantize_channels(), ParametricCurveCollection::r_add_curves(), SceneGraphReducer::r_collect_vertex_data(), EggGroupNode::r_load_externals(), EggGroupNode::rebuild_vertex_pools(), EggGroupNode::recompute_polygon_normals(), EggGroupNode::remove_invalid_primitives(), EggGroupNode::remove_unused_vertices(), EggLoader::reparent_decals(), EggMaterialCollection::replace_materials(), EggTextureCollection::replace_textures(), EggGroupNode::resolve_filenames(), EggGroupNode::reverse_vertex_ordering(), NodePath::set_clip_plane(), NodePath::set_clip_plane_off(), NodePath::set_light(), ProjectionScreen::set_projector(), NonlinearImager::set_source_camera(), EggXfmSAnim::set_value(), NonlinearImager::set_viewer_camera(), PandaFramework::show_collision_solids(), BamCache::store(), XFileToEggConverter::strip_nodes(), EggGroupNode::strip_normals(), DataGraphTraverser::traverse(), DataGraphTraverser::traverse_below(), EggGroupNode::triangulate_polygons(), EggGroupNode::unify_attributes(), EggNameUniquifier::uniquify(), NodeCullCallbackData::upcall(), PhysicsCollisionHandler::validate_target(), EggXfmSAnim::write(), EggGroup::write(), EggToDXFLayer::write_3d_face(), and EggToDXFLayer::write_entities().
bool GraphicsOutput::is_stereo | ( | ) | const [inline] |
Returns Returns true if this window can render stereo DisplayRegions, either through red-blue stereo (see set_red_blue_stereo()) or through true hardware stereo rendering.
Definition at line 377 of file graphicsOutput.I.
Referenced by make_display_region().
bool GraphicsOutput::is_valid | ( | ) | const [inline] |
Returns true if the output is fully created and ready for rendering, false otherwise.
Definition at line 233 of file graphicsOutput.I.
Referenced by PandaFramework::all_windows_closed(), PandaFramework::event_window_event(), is_active(), GraphicsEngine::make_output(), and PandaFramework::open_window().
void ReferenceCount::local_object | ( | ) | [inline, inherited] |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack.
This allows the object to be passed to functions that will increment and decrement the object's reference count temporarily, and it will prevent the object from being deleted (inappropriately), when the reference count returns to zero. It actually achieves this by setting a large positive value in the reference count field.
Definition at line 276 of file referenceCount.I.
Referenced by PGTop::cull_callback(), BoundingSphere::extend_by_hexahedron(), AsyncTaskManager::find_task(), AsyncTaskManager::find_tasks(), and AsyncTaskManager::find_tasks_matching().
GraphicsOutput * GraphicsOutput::make_cube_map | ( | const string & | name, |
int | size, | ||
NodePath & | camera_rig, | ||
DrawMask | camera_mask = PandaNode::get_all_camera_mask() , |
||
bool | to_ram = false , |
||
FrameBufferProperties * | fbp = NULL |
||
) |
This is similar to make_texture_buffer() in that it allocates a separate buffer suitable for rendering to a texture that can be assigned to geometry in this window, but in this case, the buffer is set up to render the six faces of a cube map.
The buffer is automatically set up with six display regions and six cameras, each of which are assigned the indicated draw_mask and parented to the given camera_rig node (which you should then put in your scene to render the cube map from the appropriate point of view).
You may take the texture associated with the buffer and apply it to geometry, particularly with TexGenAttrib::M_world_cube_map also in effect, to apply a reflection of everything seen by the camera rig.
Definition at line 871 of file graphicsOutput.cxx.
References NodePath::attach_new_node(), DrawableRegion::copy_clear_settings(), get_gsg(), GraphicsStateGuardian::get_max_cube_map_dimension(), GraphicsStateGuardian::get_supports_cube_map(), NodePath::look_at(), make_display_region(), make_texture_buffer(), NodePath::node(), DisplayRegion::set_camera(), DrawableRegion::set_clear_color_active(), DrawableRegion::set_clear_depth_active(), DrawableRegion::set_clear_stencil_active(), DisplayRegion::set_cube_map_index(), PandaNode::set_effect(), and Lens::set_fov().
DisplayRegion * GraphicsOutput::make_display_region | ( | ) | [inline] |
Creates a new DisplayRegion that covers the entire window.
If is_stereo() is true for this window, and default-stereo-camera is configured true, this actually makes a StereoDisplayRegion. Call make_mono_display_region() or make_stereo_display_region() if you want to insist on one or the other.
Definition at line 504 of file graphicsOutput.I.
Referenced by MultitexReducer::flatten(), make_cube_map(), WindowFramework::open_window(), and WindowFramework::split_window().
DisplayRegion * GraphicsOutput::make_display_region | ( | float | l, |
float | r, | ||
float | b, | ||
float | t | ||
) |
Creates a new DisplayRegion that covers the indicated sub-rectangle within the window.
The range on all parameters is 0..1.
If is_stereo() is true for this window, and default-stereo-camera is configured true, this actually makes a StereoDisplayRegion. Call make_mono_display_region() or make_stereo_display_region() if you want to insist on one or the other.
Definition at line 476 of file graphicsOutput.cxx.
References is_stereo(), make_mono_display_region(), and make_stereo_display_region().
DisplayRegion * GraphicsOutput::make_mono_display_region | ( | ) | [inline] |
Creates a new DisplayRegion that covers the entire window.
This always returns a mono DisplayRegion, even if is_stereo() is true.
Definition at line 518 of file graphicsOutput.I.
Referenced by GraphicsOutput(), and make_display_region().
DisplayRegion * GraphicsOutput::make_mono_display_region | ( | float | l, |
float | r, | ||
float | b, | ||
float | t | ||
) |
Creates a new DisplayRegion that covers the indicated sub-rectangle within the window.
The range on all parameters is 0..1.
This always returns a mono DisplayRegion, even if is_stereo() is true.
Definition at line 495 of file graphicsOutput.cxx.
Filename GraphicsOutput::make_screenshot_filename | ( | const string & | prefix = "screenshot" | ) | [inline, static] |
Saves a screenshot of the region to a default filename, and returns the filename, or empty string if the screenshot failed.
The default filename is generated from the supplied prefix and from the Config variable screenshot-filename, which contains the following strings:
~p - the supplied prefix ~f - the frame count ~e - the value of screenshot-extension All other % strings in strftime().
Definition at line 552 of file graphicsOutput.I.
StereoDisplayRegion * GraphicsOutput::make_stereo_display_region | ( | ) | [inline] |
Creates a new DisplayRegion that covers the entire window.
This always returns a stereo DisplayRegion, even if is_stereo() is false.
Definition at line 532 of file graphicsOutput.I.
Referenced by make_display_region().
StereoDisplayRegion * GraphicsOutput::make_stereo_display_region | ( | float | l, |
float | r, | ||
float | b, | ||
float | t | ||
) |
Creates a new DisplayRegion that covers the indicated sub-rectangle within the window.
The range on all parameters is 0..1.
This always returns a stereo DisplayRegion, even if is_stereo() is false.
Definition at line 510 of file graphicsOutput.cxx.
GraphicsOutput * GraphicsOutput::make_texture_buffer | ( | const string & | name, |
int | x_size, | ||
int | y_size, | ||
Texture * | tex = NULL , |
||
bool | to_ram = false , |
||
FrameBufferProperties * | fbp = NULL |
||
) |
Creates and returns an offscreen buffer for rendering into, the result of which will be a texture suitable for applying to geometry within the scene rendered into this window.
If tex is not NULL, it is the texture that will be set up for rendering into; otherwise, a new Texture object will be created. In either case, the target texture can be retrieved from the return value with buffer->get_texture() (assuming the return value is not NULL).
If to_ram is true, the buffer will be set up to download its contents to the system RAM memory associated with the Texture object, instead of keeping it strictly within texture memory; this is much slower, but it allows using the texture with any GSG.
This will attempt to be smart about maximizing render performance while minimizing framebuffer waste. It might return a GraphicsBuffer set to render directly into a texture, if possible; or it might return a ParasiteBuffer that renders into this window. The return value is NULL if the buffer could not be created for some reason.
When you are done using the buffer, you should remove it with a call to GraphicsEngine::remove_window() (or set the one_shot flag so it removes itself after one frame).
Definition at line 814 of file graphicsOutput.cxx.
References add_render_texture(), get_child_sort(), GraphicsStateGuardian::get_engine(), get_gsg(), get_host(), get_pipe(), Texture::get_texture_type(), and WindowProperties::size().
Referenced by MultitexReducer::flatten(), and make_cube_map().
void TypedWritable::mark_bam_modified | ( | ) | [inline, inherited] |
Increments the bam_modified counter, so that this object will be invalidated and retransmitted on any open bam streams.
This should normally not need to be called by user code; it should be called internally when the object has been changed in a way that legitimately requires its retransmission to any connected clients.
Definition at line 54 of file typedWritable.I.
Referenced by PandaNode::add_child(), PandaNode::add_stashed(), PandaNode::adjust_draw_mask(), PandaNode::apply_attribs_to_vertices(), PandaNode::clear_attrib(), PandaNode::clear_effect(), PandaNode::clear_tag(), PandaNode::copy_all_properties(), PandaNode::copy_tags(), PandaNode::disable_cull_callback(), PandaNode::force_bounds_stale(), PandaNode::remove_all_children(), PandaNode::remove_child(), PandaNode::remove_stashed(), PandaNode::reset_all_prev_transform(), PandaNode::reset_prev_transform(), PandaNode::set_attrib(), PandaNode::set_bounds(), PandaNode::set_bounds_type(), PandaNode::set_cull_callback(), PandaNode::set_effect(), PandaNode::set_effects(), PandaNode::set_final(), PandaNode::set_internal_bounds(), PandaNode::set_into_collide_mask(), PandaNode::set_prev_transform(), PandaNode::set_state(), PandaNode::set_tag(), PandaNode::set_transform(), PandaNode::stash_child(), and PandaNode::unstash_child().
bool GraphicsOutput::operator< | ( | const GraphicsOutput & | other | ) | const [inline] |
The sorting operator is used to order the GraphicsOutput object in order by their sort number, so that they will render in the correct order in the GraphicsEngine.
Definition at line 616 of file graphicsOutput.I.
void GraphicsOutput::pixel_factor_changed | ( | ) | [protected, virtual] |
Called internally when the pixel factor changes.
Reimplemented from DrawableRegion.
Definition at line 1037 of file graphicsOutput.cxx.
References set_size_and_recalc().
void GraphicsOutput::prepare_for_deletion | ( | ) | [protected] |
Set the delete flag, and do the usual cleanup activities associated with that.
Definition at line 1050 of file graphicsOutput.cxx.
References clear_render_textures(), count_textures(), get_rtm_mode(), get_texture(), and remove_all_display_regions().
Referenced by x11GraphicsWindow::end_frame(), wglGraphicsWindow::end_frame(), wglGraphicsBuffer::end_frame(), TinyGraphicsBuffer::end_frame(), osxGraphicsBuffer::end_frame(), OsMesaGraphicsBuffer::end_frame(), glxGraphicsPixmap::end_frame(), glxGraphicsBuffer::end_frame(), eglGraphicsWindow::end_frame(), eglGraphicsPixmap::end_frame(), eglGraphicsBuffer::end_frame(), wdxGraphicsWindow9::end_frame(), wdxGraphicsBuffer9::end_frame(), wdxGraphicsWindow8::end_frame(), wdxGraphicsBuffer8::end_frame(), and ParasiteBuffer::end_frame().
void GraphicsOutput::process_events | ( | ) | [virtual] |
Do whatever processing in the window thread is appropriate for this output object each frame.
This function is called only within the window thread.
Reimplemented in GraphicsBuffer, GraphicsWindow, wdxGraphicsBuffer8, wdxGraphicsBuffer9, eglGraphicsWindow, IPhoneGraphicsWindow, osxGraphicsWindow, wglGraphicsBuffer, WinGraphicsWindow, and x11GraphicsWindow.
Definition at line 1284 of file graphicsOutput.cxx.
void ReferenceCount::ref | ( | ) | const [inline, inherited] |
Explicitly increments the reference count.
User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.
This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.
Definition at line 179 of file referenceCount.I.
References ReferenceCount::test_ref_count_integrity().
Referenced by CachedTypedWritableReferenceCount::cache_ref(), TypedWritable::decode_raw_from_bam_stream(), NodeCachedReferenceCount::node_ref(), NodeReferenceCount::node_ref(), BamCacheRecord::set_data(), CullableObject::set_draw_callback(), and ModelRoot::set_reference().
void GraphicsOutput::remove_all_display_regions | ( | ) |
Removes all display regions from the window, except the default one that is created with the window.
Definition at line 555 of file graphicsOutput.cxx.
References DisplayRegion::cleanup().
Referenced by prepare_for_deletion().
bool GraphicsOutput::remove_display_region | ( | DisplayRegion * | display_region | ) |
Removes the indicated DisplayRegion from the window, and destructs it if there are no other references.
Returns true if the DisplayRegion is found and removed, false if it was not a part of the window.
Definition at line 533 of file graphicsOutput.cxx.
References StereoDisplayRegion::get_left_eye(), StereoDisplayRegion::get_right_eye(), and DisplayRegion::is_stereo().
void GraphicsOutput::request_close | ( | ) | [virtual] |
This is called by the GraphicsEngine to request that the window (or whatever) close itself or, in general, make itself invalid, at the next call to process_events().
By that time we promise the gsg pointer will be cleared.
Reimplemented in GraphicsBuffer, and GraphicsWindow.
Definition at line 968 of file graphicsOutput.cxx.
void GraphicsOutput::request_open | ( | ) | [virtual] |
This is called by the GraphicsEngine to request that the window (or whatever) open itself or, in general, make itself valid, at the next call to process_events().
Reimplemented in GraphicsBuffer, and GraphicsWindow.
Definition at line 955 of file graphicsOutput.cxx.
bool TypedWritable::require_fully_complete | ( | ) | const [virtual, inherited] |
Some objects require all of their nested pointers to have been completed before the objects themselves can be completed.
If this is the case, override this method to return true, and be careful with circular references (which would make the object unreadable from a bam file).
Reimplemented in GeomVertexData, ClipPlaneAttrib, and RenderEffects.
Definition at line 118 of file typedWritable.cxx.
void GraphicsOutput::reset_window | ( | bool | swapchain | ) | [virtual] |
Resets the window framebuffer from its derived children.
Does nothing here.
Reimplemented in GraphicsWindow, wdxGraphicsWindow8, and wdxGraphicsWindow9.
Definition at line 989 of file graphicsOutput.cxx.
Referenced by GraphicsEngine::reset_all_windows().
bool GraphicsOutput::save_screenshot | ( | const Filename & | filename, |
const string & | image_comment = "" |
||
) | [inline] |
Saves a screenshot of the region to the indicated filename.
The image comment is an optional user readable string that will be saved with the header of the image (if the file format supports embedded data; for example jpg allows comments). Returns true on success, false on failure.
Definition at line 580 of file graphicsOutput.I.
Filename GraphicsOutput::save_screenshot_default | ( | const string & | prefix = "screenshot" | ) | [inline] |
Saves a screenshot of the region to a default filename, and returns the filename, or empty string if the screenshot failed.
The filename is generated by make_screenshot_filename().
Definition at line 565 of file graphicsOutput.I.
Referenced by PandaFramework::event_f9().
void GraphicsOutput::select_cube_map | ( | int | cube_map_index | ) | [virtual] |
Called internally when the window is in render-to-a-texture mode and we are in the process of rendering the six faces of a cube map.
This should do whatever needs to be done to switch the buffer to the indicated face.
Reimplemented in wdxGraphicsBuffer8, wdxGraphicsBuffer9, and wglGraphicsBuffer.
Definition at line 1238 of file graphicsOutput.cxx.
Referenced by change_scenes().
void GraphicsOutput::set_active | ( | bool | active | ) |
Sets the active flag associated with the GraphicsOutput.
If the GraphicsOutput is marked inactive, nothing is rendered.
Definition at line 396 of file graphicsOutput.cxx.
void GraphicsOutput::set_child_sort | ( | int | child_sort | ) | [inline] |
Specifies the sort value of future offscreen buffers created by make_texture_sort().
The purpose of this method is to allow the user to limit the sort value chosen for a buffer created via make_texture_buffer(). Normally, this buffer will be assigned a value of get_sort() - 1, so that it will be rendered before this window is rendered; but sometimes this isn't sufficiently early, especially if other buffers also have a view into the same scene.
If you specify a value here, then new buffers created via make_texture_buffer() will be given that sort value instead of get_sort() - 1.
Definition at line 446 of file graphicsOutput.I.
void DrawableRegion::set_clear_active | ( | int | n, |
bool | clear_aux_active | ||
) | [virtual, inherited] |
Sets the clear-active flag for any bitplane.
Reimplemented in StereoDisplayRegion.
Definition at line 33 of file drawableRegion.cxx.
References DrawableRegion::update_pixel_factor().
Referenced by DrawableRegion::set_clear_color_active(), DrawableRegion::set_clear_depth_active(), and DrawableRegion::set_clear_stencil_active().
void DrawableRegion::set_clear_color | ( | const Colorf & | color | ) | [inline, inherited] |
Sets the clear color to the indicated value.
This is the value that will be used to clear the color buffer every frame, but only if get_clear_color_active() returns true. If get_clear_color_active() returns false, this is meaningless.
Definition at line 173 of file drawableRegion.I.
References DrawableRegion::set_clear_value().
Referenced by GraphicsOutput().
void DrawableRegion::set_clear_color_active | ( | bool | clear_color_active | ) | [inline, inherited] |
Toggles the flag that indicates whether the color buffer should be cleared every frame.
If this is true, the color buffer will be cleared to the color indicated by set_clear_color(); otherwise, it will be left alone.
Definition at line 95 of file drawableRegion.I.
References DrawableRegion::set_clear_active().
Referenced by GraphicsOutput(), make_cube_map(), and WindowFramework::open_window().
void DrawableRegion::set_clear_depth | ( | float | depth | ) | [inline, inherited] |
Sets the clear depth to the indicated value.
This is the value that will be used to clear the depth buffer every frame, but only if get_clear_depth_active() returns true. If get_clear_depth_active() returns false, this is meaningless.
Definition at line 201 of file drawableRegion.I.
References DrawableRegion::set_clear_value().
void DrawableRegion::set_clear_depth_active | ( | bool | clear_depth_active | ) | [inline, inherited] |
Toggles the flag that indicates whether the depth buffer should be cleared every frame.
If this is true, the depth buffer will be cleared to the depth value indicated by set_clear_depth(); otherwise, it will be left alone.
Definition at line 121 of file drawableRegion.I.
References DrawableRegion::set_clear_active().
Referenced by GraphicsOutput(), and make_cube_map().
void DrawableRegion::set_clear_stencil | ( | unsigned int | stencil | ) | [inline, inherited] |
Sets the clear stencil to the indicated value.
This is the value that will be used to clear the stencil buffer every frame, but only if get_clear_color_active() returns true. If get_clear_stencil_active() returns false, this is meaningless.
Definition at line 228 of file drawableRegion.I.
References DrawableRegion::set_clear_value().
void DrawableRegion::set_clear_stencil_active | ( | bool | clear_stencil_active | ) | [inline, inherited] |
Toggles the flag that indicates whether the stencil buffer should be cleared every frame.
If this is true, the stencil buffer will be cleared to the value indicated by set_clear_stencil(); otherwise, it will be left alone.
Definition at line 147 of file drawableRegion.I.
References DrawableRegion::set_clear_active().
Referenced by GraphicsOutput(), and make_cube_map().
void DrawableRegion::set_clear_value | ( | int | n, |
const Colorf & | clear_value | ||
) | [virtual, inherited] |
Sets the clear value for any bitplane.
Reimplemented in StereoDisplayRegion.
Definition at line 56 of file drawableRegion.cxx.
Referenced by DrawableRegion::set_clear_color(), DrawableRegion::set_clear_depth(), and DrawableRegion::set_clear_stencil().
void GraphicsOutput::set_close_now | ( | ) | [virtual] |
This is called by the GraphicsEngine to insist that the output be closed immediately.
This is only called from the window thread.
Reimplemented in GraphicsBuffer, and GraphicsWindow.
Definition at line 979 of file graphicsOutput.cxx.
void GraphicsOutput::set_inverted | ( | bool | inverted | ) |
Changes the current setting of the inverted flag.
When this is true, the scene is rendered into the window upside-down and backwards, that is, inverted as if viewed through a mirror placed on the floor.
This is primarily intended to support DirectX (and a few buggy OpenGL graphics drivers) that perform a framebuffer-to-texture copy upside-down from the usual OpenGL (and Panda) convention. Panda will automatically set this flag for offscreen buffers on hardware that is known to do this, to compensate when rendering offscreen into a texture.
Definition at line 428 of file graphicsOutput.cxx.
Referenced by ParasiteBuffer::ParasiteBuffer(), and GraphicsBuffer::process_events().
void GraphicsOutput::set_one_shot | ( | bool | one_shot | ) | [inline] |
Changes the current setting of the one-shot flag.
When this is true, the GraphicsOutput will render one frame and then automatically set itself inactive. This is particularly useful for buffers that are created for the purposes of render-to-texture, for static textures that don't need to be continually re-rendered once they have been rendered the first time.
Setting the buffer inactive is not the same thing as destroying it. You are still responsible for passing this buffer to GraphicsEngine::remove_window() when you no longer need the texture, in order to clean up fully. (However, you should not call remove_window() on this buffer while the texture is still needed, because depending on the render-to-texture mechanism in use, this may invalidate the texture contents.)
Definition at line 259 of file graphicsOutput.I.
Referenced by MultitexReducer::flatten().
void DrawableRegion::set_pixel_zoom | ( | float | pixel_zoom | ) | [virtual, inherited] |
Sets the amount by which the pixels of the region are scaled internally when filling the image interally.
Setting this number larger makes the pixels blockier, but may make the rendering faster, particularly for software renderers. Setting this number to 2.0 reduces the number of pixels that have to be filled by the renderer by a factor of 2.0. It doesn't make sense to set this lower than 1.0.
It is possible to set this on either individual DisplayRegions or on overall GraphicsWindows, but you will get better performance for setting it on the window rather than its individual DisplayRegions. Also, you may not set it on a DisplayRegion that doesn't have both clear_color() and clear_depth() enabled.
This property is only supported on renderers for which it is particularly useful--currently, this is the tinydisplay software renderer. Other kinds of renderers allow you to set this property, but ignore it.
Reimplemented in StereoDisplayRegion.
Definition at line 132 of file drawableRegion.cxx.
References DrawableRegion::update_pixel_factor().
Referenced by GraphicsWindow::GraphicsWindow().
void GraphicsOutput::set_red_blue_stereo | ( | bool | red_blue_stereo, |
unsigned int | left_eye_color_mask, | ||
unsigned int | right_eye_color_mask | ||
) | [inline] |
Enables red-blue stereo mode on this particular window.
When red-blue stereo mode is in effect, DisplayRegions that have the "left" channel set will render in the red (or specified) channel only, while DisplayRegions that have the "right" channel set will render in the blue (or specified) channel only.
The remaining two parameters specify the particular color channel(s) to associate with each eye. Use the bits defined in ColorWriteAttrib::Channels.
This can be used to achieve a cheesy stereo mode in the absence of hardware-supported stereo.
Definition at line 308 of file graphicsOutput.I.
void GraphicsOutput::set_size_and_recalc | ( | int | x, |
int | y | ||
) |
Changes the x_size and y_size, then recalculates structures that depend on size.
The recalculation currently includes:
Reimplemented in ParasiteBuffer.
Definition at line 710 of file graphicsOutput.cxx.
Referenced by WinGraphicsWindow::do_fullscreen_resize(), pixel_factor_changed(), GraphicsWindow::set_properties_now(), GraphicsBuffer::set_size(), and GraphicsWindow::system_changed_size().
void GraphicsOutput::set_sort | ( | int | sort | ) | [virtual] |
Adjusts the sorting order of this particular GraphicsOutput, relative to other GraphicsOutputs.
Implements GraphicsOutputBase.
Definition at line 452 of file graphicsOutput.cxx.
void GraphicsOutput::setup_render_texture | ( | Texture * | tex, |
bool | allow_bind, | ||
bool | to_ram | ||
) |
This is a deprecated interface that made sense back when GraphicsOutputs could only render into one texture at a time.
From now on, use clear_render_textures and add_render_texture instead.
Definition at line 375 of file graphicsOutput.cxx.
References add_render_texture(), and clear_render_textures().
bool GraphicsOutput::share_depth_buffer | ( | GraphicsOutput * | graphics_output | ) | [virtual] |
Will attempt to use the depth buffer of the input graphics_output.
The buffer sizes must be exactly the same.
Reimplemented in wdxGraphicsBuffer9.
Definition at line 1388 of file graphicsOutput.cxx.
bool DrawableRegion::supports_pixel_zoom | ( | ) | const [virtual, inherited] |
Returns true if a call to set_pixel_zoom() will be respected, false if it will be ignored.
If this returns false, then get_pixel_factor() will always return 1.0, regardless of what value you specify for set_pixel_zoom().
This may return false if the underlying renderer doesn't support pixel zooming, or if you have called this on a DisplayRegion that doesn't have both set_clear_color() and set_clear_depth() enabled.
Reimplemented in DisplayRegion.
Definition at line 152 of file drawableRegion.cxx.
Referenced by DisplayRegion::supports_pixel_zoom(), and DrawableRegion::update_pixel_factor().
bool ReferenceCount::test_ref_count_integrity | ( | ) | const [inline, inherited] |
Does some easy checks to make sure that the reference count isn't completely bogus.
Returns true if ok, false otherwise.
Reimplemented in NodeReferenceCount, CachedTypedWritableReferenceCount, and NodeCachedReferenceCount.
Definition at line 236 of file referenceCount.I.
References ReferenceCount::do_test_ref_count_integrity().
Referenced by EggGroupNode::add_child(), InternalName::find_ancestor(), InternalName::get_ancestor(), ReferenceCount::get_ref_count(), InternalName::get_top(), ReferenceCount::ref(), EggVertex::test_gref_integrity(), EggVertex::test_pref_integrity(), EggNode::test_under_integrity(), EggPrimitive::test_vref_integrity(), EggGroup::test_vref_integrity(), MouseWatcher::throw_event_pattern(), ReferenceCount::unref(), and EggNode::update_under().
bool ReferenceCount::test_ref_count_nonzero | ( | ) | const [inline, inherited] |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus.
Returns true if ok, false otherwise.
Definition at line 252 of file referenceCount.I.
References ReferenceCount::do_test_ref_count_nonzero().
Referenced by CopyOnWritePointer::test_ref_count_nonzero().
void GraphicsOutput::trigger_copy | ( | ) | [inline] |
When the GraphicsOutput is in triggered copy mode, this function triggers the copy (at the end of the next frame).
Definition at line 486 of file graphicsOutput.I.
void GraphicsOutput::trigger_flip | ( | ) | [inline, protected] |
Set the flip_ready flag, only if legal to do so.
Definition at line 718 of file graphicsOutput.I.
Referenced by x11GraphicsWindow::end_frame(), wglGraphicsWindow::end_frame(), wglGraphicsBuffer::end_frame(), TinyGraphicsBuffer::end_frame(), osxGraphicsBuffer::end_frame(), OsMesaGraphicsBuffer::end_frame(), glxGraphicsPixmap::end_frame(), glxGraphicsBuffer::end_frame(), eglGraphicsWindow::end_frame(), eglGraphicsPixmap::end_frame(), eglGraphicsBuffer::end_frame(), wdxGraphicsWindow9::end_frame(), wdxGraphicsBuffer9::end_frame(), wdxGraphicsWindow8::end_frame(), and wdxGraphicsBuffer8::end_frame().
bool ReferenceCount::unref | ( | ) | const [inline, virtual, inherited] |
Explicitly decrements the reference count.
Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete().
User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.
This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.
The return value is true if the new reference count is nonzero, false if it is zero.
Reimplemented in GeomVertexArrayFormat, GeomVertexFormat, InternalName, RenderAttrib, RenderEffects, RenderState, and TransformState.
Definition at line 214 of file referenceCount.I.
References ReferenceCount::test_ref_count_integrity().
Referenced by CachedTypedWritableReferenceCount::cache_unref(), TypedWritable::decode_raw_from_bam_stream(), RenderEffect::finalize(), NodeCachedReferenceCount::node_unref(), NodeReferenceCount::node_unref(), TransformState::unref(), RenderState::unref(), RenderEffects::unref(), RenderAttrib::unref(), InternalName::unref(), GeomVertexFormat::unref(), and GeomVertexArrayFormat::unref().
void GraphicsOutput::unshare_depth_buffer | ( | ) | [virtual] |
Discontinue sharing the depth buffer.
Reimplemented in wdxGraphicsBuffer9.
Definition at line 1398 of file graphicsOutput.cxx.
void TypedWritable::update_bam_nested | ( | BamWriter * | manager | ) | [virtual, inherited] |
Called by the BamWriter when this object has not itself been modified recently, but it should check its nested objects for updates.
Reimplemented in CFDoCullCommand, and PandaNode.
Definition at line 77 of file typedWritable.cxx.
void DrawableRegion::update_pixel_factor | ( | ) | [inline, protected, inherited] |
Internal function to reset pixel_factor after it may have changed.
Definition at line 306 of file drawableRegion.I.
References DrawableRegion::pixel_factor_changed(), and DrawableRegion::supports_pixel_zoom().
Referenced by DrawableRegion::copy_clear_settings(), DrawableRegion::disable_clears(), DrawableRegion::set_clear_active(), and DrawableRegion::set_pixel_zoom().
void ReferenceCount::weak_ref | ( | WeakPointerToVoid * | ptv | ) | [inline, inherited] |
Adds the indicated PointerToVoid as a weak reference to this object.
Definition at line 321 of file referenceCount.I.
References WeakReferenceList::add_reference(), and ReferenceCount::get_weak_list().
void ReferenceCount::weak_unref | ( | WeakPointerToVoid * | ptv | ) | [inline, inherited] |
Removes the indicated PointerToVoid as a weak reference to this object.
It must have previously been added via a call to weak_ref().
Definition at line 334 of file referenceCount.I.
References WeakReferenceList::clear_reference(), and ReferenceCount::has_weak_list().
Writes the contents of this object to the datagram for shipping out to a Bam file.
Reimplemented in CFDoCullCommand, AnimBundle, AnimBundleNode, AnimChannelBase, AnimChannelMatrixDynamic, AnimChannelMatrixFixed, AnimChannelMatrixXfmTable, AnimChannelScalarDynamic, AnimChannelScalarTable, AnimGroup, AnimPreloadTable, MovingPart< SwitchType >, MovingPartBase, PartBundle, PartBundleNode, PartGroup, Character, CharacterJoint, CharacterJointEffect, CharacterVertexSlider, JointVertexTransform, CollisionBox, CollisionDSSolid, CollisionFloorMesh, CollisionInvSphere, CollisionLine, CollisionNode, CollisionParabola, CollisionPlane, CollisionPolygon, CollisionRay, CollisionSegment, CollisionSolid, CollisionSphere, CollisionTube, DataNode, DataNodeTransmit, ButtonEventList, EventStoreValue< Type >, Geom, GeomPrimitive, GeomVertexArrayData, GeomVertexArrayFormat, GeomVertexData, GeomVertexFormat, InternalName, Lens, Material, SliderTable, Texture, TextureStage, TransformBlendTable, TransformTable, UserVertexSlider, UserVertexTransform, VertexSlider, VertexTransform, CubicCurveseg, HermiteCurve, NurbsCurve, ParametricCurve, PiecewiseCurve, RopeNode, SheetNode, AlphaTestAttrib, AntialiasAttrib, AudioVolumeAttrib, AuxBitplaneAttrib, BillboardEffect, Camera, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CompassEffect, CullBinAttrib, CullFaceAttrib, DecalEffect, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, Fog, FogAttrib, GeomNode, LensNode, LightAttrib, LightRampAttrib, MaterialAttrib, ModelNode, ModelRoot, PandaNode, PlaneNode, PolylightNode, PortalNode, RenderAttrib, RenderEffect, RenderEffects, RenderModeAttrib, RenderState, RescaleNormalAttrib, ScissorAttrib, ScissorEffect, ShadeModelAttrib, ShowBoundsEffect, StencilAttrib, TexGenAttrib, TexMatrixAttrib, TexProjectorEffect, TextureAttrib, TransformState, TransparencyAttrib, UvScrollNode, AmbientLight, CallbackNode, DirectionalLight, FadeLODNode, LightLensNode, LightNode, LODNode, PointLight, SequenceNode, Spotlight, SwitchNode, PNMFileType, BamCacheIndex, BamCacheRecord, WritableConfigurable, MouseRecorder, RecorderFrame, RecorderHeader, RecorderTable, DestTextureImage, EggFile, ImageFile, PaletteGroup, PaletteGroups, PaletteImage, PalettePage, Palettizer, SourceTextureImage, TextureImage, TexturePlacement, TexturePosition, TextureProperties, TextureReference, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >.
Definition at line 66 of file typedWritable.cxx.
Referenced by GeomPrimitive::write_datagram(), and EventStoreValue< Type >::write_datagram().