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 <vector>
15 #include <unordered_map>
16 
17 namespace makVrv
18 {
20  {
21  std::vector<int> myFirstIndices;
22  std::vector<int> myCounts;
23 
25 
26  std::set<unsigned int> myTextureIds;
27  std::unordered_map<unsigned int, int> myMapTextureIdToTextureIndexInGlobalArray;
28  std::vector<std::uint64_t> myTextureAddressArray;
29 
30  };
31 
33  {
35  double myAltitude = 0.0;
36  double myViewResolution = 1.0; // meter per pixel ratio
37  bool myIs2D = false;
38  };
39 
43  {
45  bool myGeocentricEffect = false;
46 
50 
52  double myWorldToWindow[16] = {};
53 
55  double myCameraPosition[3] = { 0,0,0 };
56 
58  int myViewport[4] = { 0,0,1,1 };
59 
61  double mySceneCameraPosition[3] = { 0,0,0 };
62 
64  double mySceneCameraRotation[16] = {};
65 
67  double mySceneProjectionMatrix[16] = {};
68 
70  double mySceneProjectionMatrixI[16] = {};
71 
73  int mySceneViewport[4] = { 0,0,1,1 };
74 
77  double mySceneCameraFrustum[6] = {};
78  };
79 
84  {
85  // True if the scene depth texture is required.
87 
88  // True if the scene occlusion texture is required.
90  };
91 }
bool myGeocentricEffect
True if the rendering effect is considered geocentric.
Definition: DtCommonRenderData.h:45
int myViewport[4]
The overlay viewport position and dimensions (x, y, width, height).
Definition: DtCommonRenderData.h:58
double myWorldToWindow[16]
The transform from world space to window space.
Definition: DtCommonRenderData.h:52
double mySceneProjectionMatrix[16]
The scene projection matrix.
Definition: DtCommonRenderData.h:67
A structure to hold rendering requiresments for overlays. This is used to update overlay resource pro...
Definition: DtCommonRenderData.h:83
double mySceneCameraPosition[3]
The scene camera position.
Definition: DtCommonRenderData.h:61
double myAltitude
Definition: DtCommonRenderData.h:35
std::vector< int > myCounts
Definition: DtCommonRenderData.h:22
double mySceneProjectionMatrixI[16]
The scene inverse projection matrix.
Definition: DtCommonRenderData.h:70
std::vector< int > myFirstIndices
Definition: DtCommonRenderData.h:21
bool myRequiresSceneOcclusionTexture
Definition: DtCommonRenderData.h:89
std::vector< std::uint64_t > myTextureAddressArray
Definition: DtCommonRenderData.h:28
double myObserverTopographicTrueNorthHeading
Definition: DtCommonRenderData.h:34
int myTotalNumCodePoints
Definition: DtCommonRenderData.h:24
bool myIs2D
Definition: DtCommonRenderData.h:37
float myGeocentricOccludedAlpha
Used in the rendering effect shaders as the alpha value multiplyer of geometry that is occluded by th...
Definition: DtCommonRenderData.h:49
std::set< unsigned int > myTextureIds
Definition: DtCommonRenderData.h:26
int mySceneViewport[4]
The scene viewport position and dimensions (x, y, width, height).
Definition: DtCommonRenderData.h:73
double myViewResolution
Definition: DtCommonRenderData.h:36
double myCameraPosition[3]
The everlay camera position.
Definition: DtCommonRenderData.h:55
A structure to hold rendering information for overlays. This is used to pass to various overlay rende...
Definition: DtCommonRenderData.h:42
std::unordered_map< unsigned int, int > myMapTextureIdToTextureIndexInGlobalArray
Definition: DtCommonRenderData.h:27
Definition: DtCommonRenderData.h:19
bool myRequiresSceneDepthTexture
Definition: DtCommonRenderData.h:86
double mySceneCameraFrustum[6]
The scene camera frustum. left, right, bottom, top, near, far.
Definition: DtCommonRenderData.h:77
double mySceneCameraRotation[16]
The scene camera rotation matrix (no translation).
Definition: DtCommonRenderData.h:64
Definition: DtCommonRenderData.h:32

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)