NDEVR
API Documentation
GraphicsUpdateArguments

Options that are used for performing an update on a Graphics Engine call. More...

Collaboration diagram for GraphicsUpdateArguments:
[legend]

Public Member Functions

 GraphicsUpdateArguments ()
 Default constructor.
 ~GraphicsUpdateArguments ()
 Destructor.
void finishPipelineRecreation ()
 Marks pipeline recreation as complete.
bool isDrawing () const
 Checks whether a draw operation is currently in progress.
bool needsBufferRecreation () const
 Checks whether buffers need recreation.
bool needsPipelineRecreation () const
 Checks whether the pipeline needs recreation.
void setBufferRecreation (bool needed)
 Sets whether buffer recreation is needed.
void setPipelineRecreationNeeded ()
 Marks the pipeline as needing recreation.

Public Attributes

RGBColor background_color = RGBColor(255, 255, 255, 255)
 Viewport background color.
UUID camera
 UUID of the camera being rendered.
fltp04 depth_bias = 0.0f
 Depth bias for polygon offset.
GraphicsDevicedevice
 The active graphics device.
std::function< void()> ensure_render_complete
 Callback to ensure the previous render is complete.
uint04 frame_count = 0U
 Total number of frames rendered.
uint04 frame_index = Constant<uint04>::Invalid
 Index of the current frame in the swap chain.
void * frame_resource = nullptr
 Opaque per-frame resource handle.
Time frame_time
 Timestamp of the current frame.
Imagegrab_image = nullptr
 Target image for screen capture.
ConstPointer< Set< UUID > > hidden_items
 Set of explicitly hidden item UUIDs.
bool is_grab_image
 Whether an image grab is pending.
LogPtr log
 The log.
DesignObjectLookuplookup
 The design object lookup.
uint04 multisample_count
 Number of multisample samples.
Dictionary< UUID, bool > needs_screen_draw
 Per-camera screen draw flags.
Material override_material
 Material override applied to all objects.
Time refresh_command_time
 Time of the last command refresh.
Buffer< bool > should_draw_cache
 Cached draw flags for models.
ConstPointer< Set< UUID > > visible_items
 Set of explicitly visible item UUIDs (null = show all).
Vector< 2, uint04window_size
 Viewport width and height in pixels.

Protected Attributes

bool m_needs_buffer_recreation
 Whether buffers need recreation.
bool m_needs_pipeline_recreation
 Whether the pipeline needs recreation.

Detailed Description

Options that are used for performing an update on a Graphics Engine call.


Definition at line 43 of file GraphicsUpdateArguments.h.

Member Function Documentation

◆ isDrawing()

bool GraphicsUpdateArguments::isDrawing ( ) const

Checks whether a draw operation is currently in progress.

Returns
True if drawing.

◆ needsBufferRecreation()

bool GraphicsUpdateArguments::needsBufferRecreation ( ) const
inline

Checks whether buffers need recreation.

Returns
True if buffer recreation is needed.

Definition at line 63 of file GraphicsUpdateArguments.h.

References m_needs_buffer_recreation.

◆ needsPipelineRecreation()

bool GraphicsUpdateArguments::needsPipelineRecreation ( ) const
inline

Checks whether the pipeline needs recreation.

Returns
True if recreation is needed.

Definition at line 60 of file GraphicsUpdateArguments.h.

References m_needs_pipeline_recreation.

◆ setBufferRecreation()

void GraphicsUpdateArguments::setBufferRecreation ( bool needed)

Sets whether buffer recreation is needed.

Parameters
[in]neededWhether recreation is needed.

References needs_screen_draw.


The documentation for this class was generated from the following file: