API Documentation
Loading...
Searching...
No Matches
GraphicsUpdateArguments.h
Go to the documentation of this file.
1/**--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: Graphics
28File: UpdateArguments
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
36namespace NDEVR
37{
38 class Image;
40 {
41 public:
44 bool needsPipelineRecreation() const { return m_needs_model_recreation || m_needs_pipeline_recreation; }
45 bool isDrawing() const;
46 void setPipelineRecreationNeeded();
47 void finishPipelineRecreation();
48 bool needsModelRecreation() const { return m_needs_model_recreation; }
49 void setModelRecreation(bool needed);
50 void setScreenDrawAll(bool screen_draw)
51 {
52 for (auto it = needs_screen_draw.begin(); it != needs_screen_draw.end(); ++it)
53 it.value() = screen_draw;
54 }
55 bool shouldDraw(const UUID& id) const
56 {
57 if (visible_items.isNull())
58 return true;
59 auto value = visible_items->find(id);
60 if (value == visible_items->end())
61 return false;
62 return value.value();//only return for visible items
63 }
69 RGBColor background_color = RGBColor(255, 255, 255, 255);
75 void* frame_image_resource = nullptr;
79 uint04 frame_count = 0U;
80 uint04 current_khr_index = Constant<uint04>::NaN;
81 Image* grab_image = nullptr;
83 protected:
86 };
87}
#define NDEVR_GRAPHICS_API
Definition DLLInfo.h:74
Definition GraphicsPipeline.h:42
Definition DesignObjectLookup.h:61
Definition Dictionary.h:48
Definition GraphicsDevice.h:8
Definition GraphicsUpdateArguments.h:40
GraphicsDevice * device
Definition GraphicsUpdateArguments.h:66
bool m_needs_pipeline_recreation
Definition GraphicsUpdateArguments.h:84
fltp04 depth_bias
Definition GraphicsUpdateArguments.h:77
ProgressInfo * log
Definition GraphicsUpdateArguments.h:64
bool m_needs_model_recreation
Definition GraphicsUpdateArguments.h:85
ConstPointer< Dictionary< UUID, bool > > visible_items
Definition GraphicsUpdateArguments.h:72
Vector< 2, uint04 > window_size
Definition GraphicsUpdateArguments.h:74
UUID camera
Definition GraphicsUpdateArguments.h:67
bool shouldDraw(const UUID &id) const
Definition GraphicsUpdateArguments.h:55
bool needsPipelineRecreation() const
Definition GraphicsUpdateArguments.h:44
Time refresh_command_time
Definition GraphicsUpdateArguments.h:70
Dictionary< UUID, bool > needs_screen_draw
Definition GraphicsUpdateArguments.h:71
bool needsModelRecreation() const
Definition GraphicsUpdateArguments.h:48
DesignObjectLookup * lookup
Definition GraphicsUpdateArguments.h:65
Time frame_time
Definition GraphicsUpdateArguments.h:68
Material override_material
Definition GraphicsUpdateArguments.h:76
void setScreenDrawAll(bool screen_draw)
Definition GraphicsUpdateArguments.h:50
uint04 multisample_count
Definition GraphicsUpdateArguments.h:73
bool is_grab_image
Definition GraphicsUpdateArguments.h:82
Definition Image.h:39
Definition Material.h:45
Definition ProgressInfo.hpp:43
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
Definition UUID.h:66
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
Definition ACIColor.h:37
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition BaseValues.hpp:272