SGCT
master (487fac4)
Simple Graphics Cluster Toolkit
Toggle main menu visibility
Loading...
Searching...
No Matches
callbackdata.h
Go to the documentation of this file.
1
/*****************************************************************************************
2
* SGCT *
3
* Simple Graphics Cluster Toolkit *
4
* *
5
* Copyright (c) 2012-2026 *
6
* For conditions of distribution and use, see copyright notice in LICENSE.md *
7
****************************************************************************************/
8
9
#ifndef __SGCT__CALLBACKDATA__H__
10
#define __SGCT__CALLBACKDATA__H__
11
12
#include <sgct/sgctexports.h>
13
14
#include <
sgct/definitions.h
>
15
#include <
sgct/math.h
>
16
17
namespace
sgct
{
18
19
class
BaseViewport
;
20
class
Window
;
21
22
struct
SGCT_EXPORT
RenderData
{
23
const
Window
&
window
;
24
const
BaseViewport
&
viewport
;
25
const
FrustumMode
frustumMode
;
26
27
mat4
modelMatrix
;
28
mat4
viewMatrix
;
29
mat4
projectionMatrix
;
30
// @TODO (abock, 2019-12-03) Performance measurements needed to see whether this
31
// caching is necessary
32
mat4
modelViewProjectionMatrix
;
33
34
ivec2
bufferSize
;
35
};
36
37
}
// namespace sgct
38
39
#endif
// __SGCT__CALLBACKDATA__H__
sgct::BaseViewport
This class holds and manages viewportdata and calculates frustums.
Definition
baseviewport.h:27
sgct::Window
Definition
window.h:46
definitions.h
math.h
sgct
Definition
actions.h:16
sgct::FrustumMode
FrustumMode
Definition
definitions.h:23
sgct::RenderData
Definition
callbackdata.h:22
sgct::RenderData::viewport
const BaseViewport & viewport
Definition
callbackdata.h:24
sgct::RenderData::modelMatrix
mat4 modelMatrix
Definition
callbackdata.h:27
sgct::RenderData::frustumMode
const FrustumMode frustumMode
Definition
callbackdata.h:25
sgct::RenderData::modelViewProjectionMatrix
mat4 modelViewProjectionMatrix
Definition
callbackdata.h:32
sgct::RenderData::projectionMatrix
mat4 projectionMatrix
Definition
callbackdata.h:29
sgct::RenderData::bufferSize
ivec2 bufferSize
Definition
callbackdata.h:34
sgct::RenderData::window
const Window & window
Definition
callbackdata.h:23
sgct::RenderData::viewMatrix
mat4 viewMatrix
Definition
callbackdata.h:28
sgct::ivec2
Definition
math.h:17
sgct::mat4
Definition
math.h:89
sgct
callbackdata.h
Generated by
1.18.0