VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCommonRenderData.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <set>
15 #include <unordered_map>
16 #include <vector>
17 
18 namespace makVrv
19 {
21  {
22  std::vector<int> myFirstIndices;
23  std::vector<int> myCounts;
24 
26 
27  std::set<unsigned int> myTextureIds;
28  std::unordered_map<unsigned int, int> myMapTextureIdToTextureIndexInGlobalArray;
29  std::vector<std::uint64_t> myTextureAddressArray;
30 
31  };
32 
34  {
36  double myAltitude = 0.0;
37  double myViewResolution = 1.0; // meter per pixel ratio
38  bool myIs2D = false;
39  };
40 
44  {
46  bool myGeocentricEffect = false;
47 
51 
53  double myWorldToWindow[16] = {};
54 
56  double myCameraPosition[3] = { 0,0,0 };
57 
59  int myViewport[4] = { 0,0,1,1 };
60 
62  double mySceneCameraPosition[3] = { 0,0,0 };
63 
65  double mySceneCameraRotation[16] = {};
66 
68  double mySceneProjectionMatrix[16] = {};
69 
71  double mySceneProjectionMatrixI[16] = {};
72 
74  int mySceneViewport[4] = { 0,0,1,1 };
75 
78  double mySceneCameraFrustum[6] = {};
79  };
80 
85  {
86  // True if the scene depth texture is required.
88 
89  // True if the scene occlusion texture is required.
91  };
92 }
bool myGeocentricEffect
True if the rendering effect is considered geocentric.
Definition: DtCommonRenderData.h:46
int myViewport[4]
The overlay viewport position and dimensions (x, y, width, height).
Definition: DtCommonRenderData.h:59
double myWorldToWindow[16]
The transform from world space to window space.
Definition: DtCommonRenderData.h:53
double mySceneProjectionMatrix[16]
The scene projection matrix.
Definition: DtCommonRenderData.h:68
A structure to hold rendering requiresments for overlays. This is used to update overlay resource pro...
Definition: DtCommonRenderData.h:84
double mySceneCameraPosition[3]
The scene camera position.
Definition: DtCommonRenderData.h:62
double myAltitude
Definition: DtCommonRenderData.h:36
std::vector< int > myCounts
Definition: DtCommonRenderData.h:23
double mySceneProjectionMatrixI[16]
The scene inverse projection matrix.
Definition: DtCommonRenderData.h:71
std::vector< int > myFirstIndices
Definition: DtCommonRenderData.h:22
bool myRequiresSceneOcclusionTexture
Definition: DtCommonRenderData.h:90
std::vector< std::uint64_t > myTextureAddressArray
Definition: DtCommonRenderData.h:29
double myObserverTopographicTrueNorthHeading
Definition: DtCommonRenderData.h:35
int myTotalNumCodePoints
Definition: DtCommonRenderData.h:25
bool myIs2D
Definition: DtCommonRenderData.h:38
float myGeocentricOccludedAlpha
Used in the rendering effect shaders as the alpha value multiplyer of geometry that is occluded by th...
Definition: DtCommonRenderData.h:50
std::set< unsigned int > myTextureIds
Definition: DtCommonRenderData.h:27
int mySceneViewport[4]
The scene viewport position and dimensions (x, y, width, height).
Definition: DtCommonRenderData.h:74
double myViewResolution
Definition: DtCommonRenderData.h:37
double myCameraPosition[3]
The everlay camera position.
Definition: DtCommonRenderData.h:56
A structure to hold rendering information for overlays. This is used to pass to various overlay rende...
Definition: DtCommonRenderData.h:43
std::unordered_map< unsigned int, int > myMapTextureIdToTextureIndexInGlobalArray
Definition: DtCommonRenderData.h:28
Definition: DtCommonRenderData.h:20
bool myRequiresSceneDepthTexture
Definition: DtCommonRenderData.h:87
double mySceneCameraFrustum[6]
The scene camera frustum. left, right, bottom, top, near, far.
Definition: DtCommonRenderData.h:78
double mySceneCameraRotation[16]
The scene camera rotation matrix (no translation).
Definition: DtCommonRenderData.h:65
Definition: DtCommonRenderData.h:33

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)