API Documentation
Loading...
Searching...
No Matches
GraphicsCameraManager.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: GraphicsCameraManager
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
36#include "Base/Headers/UUID.h"
38#include "Base/Headers/Time.h"
39namespace NDEVR
40{
41 class GraphicsUpdateArguments;
42 class Camera;
43 /**--------------------------------------------------------------------------------------------------
44 \brief A structure containing common information pushed to the video card for NDEVR Rendering
45 Engine operations.
46 **/
48 {
53 fltp04 dpi = 1.0f;
55
56 bool operator!=(const CameraUniformObject& object) const
57 {
58 return transform != object.transform
59 || origin != object.origin
60 || sun_pos != object.sun_pos
61 || camera_pos != object.camera_pos
62 || dpi != object.dpi
63 || background_color != object.background_color;
64 }
65 };
66 /**--------------------------------------------------------------------------------------------------
67 \brief A structure for managing Viewport interactions with an NDEVR Rendering Engine.
68 **/
94}
#define NDEVR_GRAPHICS_API
Definition DLLInfo.h:56
A structure for managing Viewport interactions with an NDEVR Rendering Engine.
Definition GraphicsCameraManager.h:70
GraphicsCameraManager(const GraphicsCameraManager &m_pipeline)
void setCamera(const UUID &camera)
Definition GraphicsCameraManager.h:75
CameraUniformObject getCameraUniformObject(const Camera &camera, GraphicsUpdateArguments &args) const
UUID m_camera
Definition GraphicsCameraManager.h:90
UUID m_override_material
Definition GraphicsCameraManager.h:91
bool m_use_anisotropy
Definition GraphicsCameraManager.h:85
bool m_use_camera_material
Definition GraphicsCameraManager.h:86
const CameraUniformObject & uniformObject() const
Definition GraphicsCameraManager.h:79
bool m_needs_pipeline_update
Definition GraphicsCameraManager.h:84
Time m_last_updated_time
Definition GraphicsCameraManager.h:92
void updateUniformBuffer(GraphicsUpdateArguments &args)
bool m_uses_origin
Definition GraphicsCameraManager.h:83
UUID overrideMaterial() const
Definition GraphicsCameraManager.h:78
bool m_needs_uniform_commit
Definition GraphicsCameraManager.h:87
CameraUniformObject m_camera_uniform
Definition GraphicsCameraManager.h:89
Options that are used for performing an update on a Graphics Engine call.
Definition GraphicsUpdateArguments.h:43
Definition Matrix.hpp:176
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:54
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
Definition ACIColor.h:37
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
Definition BaseValues.hpp:127
A structure containing common information pushed to the video card for NDEVR Rendering Engine operati...
Definition GraphicsCameraManager.h:48
fltp04 dpi
Definition GraphicsCameraManager.h:53
Vector< 4, fltp04 > camera_pos
Definition GraphicsCameraManager.h:52
RGBColor background_color
Definition GraphicsCameraManager.h:54
bool operator!=(const CameraUniformObject &object) const
Definition GraphicsCameraManager.h:56
Vector< 4, fltp04 > sun_pos
Definition GraphicsCameraManager.h:51
Matrix< fltp04 > transform
Definition GraphicsCameraManager.h:49
Vector< 4, sint04 > origin
Definition GraphicsCameraManager.h:50
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233