Skylicht Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
OcclusionQuery
COcclusionQueryData.h
1
/*
2
!@
3
MIT License
4
5
Copyright (c) 2024 Skylicht Technology CO., LTD
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
8
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
9
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
10
subject to the following conditions:
11
12
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
14
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
20
This file is part of the "Skylicht Engine".
21
https://github.com/skylicht-lab/skylicht-engine
22
!#
23
*/
24
25
#pragma once
26
27
#include "Entity/IEntityData.h"
28
#include "RenderMesh/CMesh.h"
29
#include "COcclusionQuerySceneNode.h"
30
31
namespace
Skylicht
32
{
33
class
SKYLICHT_API COcclusionQueryData :
public
IEntityData
34
{
35
protected
:
36
core::aabbox3df
m_box;
37
38
core::matrix4
m_localTransform;
39
40
COcclusionQuerySceneNode
* m_node;
41
42
bool
m_registerQuery;
43
44
public
:
45
bool
Enable;
46
47
bool
NeedValidate;
48
49
u32
QueryResult;
50
51
bool
QueryVisible;
52
53
public
:
54
COcclusionQueryData();
55
56
virtual
~COcclusionQueryData();
57
58
void
setAABBox(
const
core::aabbox3df
& box);
59
60
inline
const
core::aabbox3df
& getAABBox()
61
{
62
return
m_box;
63
}
64
65
void
updateLocalTransform();
66
67
inline
const
core::matrix4
& getLocalTransform()
68
{
69
return
m_localTransform;
70
}
71
72
inline
COcclusionQuerySceneNode
* getSceneNode()
73
{
74
return
m_node;
75
}
76
77
inline
bool
isRegisterQuery()
78
{
79
return
m_registerQuery;
80
}
81
82
void
registerQuery(
CMesh
* mesh);
83
84
DECLARE_GETTYPENAME(COcclusionQueryData)
85
};
86
87
DECLARE_PUBLIC_DATA_TYPE_INDEX(
COcclusionQueryData
);
88
}
Skylicht::CMesh
Definition
CMesh.h:75
Skylicht::COcclusionQueryData
Definition
COcclusionQueryData.h:34
Skylicht::COcclusionQuerySceneNode
Definition
COcclusionQuerySceneNode.h:32
Skylicht
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition
AudioDebugLog.h:29
irr::core::matrix4
CMatrix4< f32 > matrix4
Typedef for f32 matrix.
Definition
matrix4.h:2241
irr::core::aabbox3df
aabbox3d< f32 > aabbox3df
Typedef for a f32 3d bounding box.
Definition
aabbox3d.h:351
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition
irrTypes.h:58
Generated by
1.17.0