KisaragiLibrary
èªã�¿å�–りä¸â€¦
検索ä¸â€¦
一致ã�™ã‚‹æ–‡å—列を見ã�¤ã�‘られã�¾ã�›ã‚“
Camera.hpp
[詳解]
1
#pragma once
2
3
#include "
ComponentBase.hpp
"
4
#include "
Matrix2D.hpp
"
5
#include "
Transform.hpp
"
6
#include "
GameObj.hpp
"
7
#include "set"
8
#include "
Imgcomponent.hpp
"
9
10
using
std::set;
11
using
Kisaragi_Lib::ImgComponent::Layer
;
12
13
namespace
Kisaragi_Lib
14
{
15
class
CameraComponent
:
public
ComponentBase
16
{
17
private
:
18
//Transform2D camPos; //TODO ƒJƒ�ƒ‰‚Ì�À•W offset‚Í—~‚µ‚¢ƒJƒ‚
19
20
set<Layer*>
excludedLayers
;
21
22
public
:
23
24
CameraComponent
()
25
{
26
27
}
28
29
Matrix2D
GetCamMatrix
()
30
{
31
Matrix2D
gameObjMat =
gameObj
->transform;
32
33
//ƒJƒ�ƒ‰‚Ƃ͔½‘΂̋““®‚ðobj‚É‚©‚¯‚邽‚ß”½“]‚³‚¹‚é.(‹t�s—ñ)
34
return
gameObjMat.
CreateInverseTransformationMatrix
();
35
}
36
37
38
39
bool
FindExcludedLayer
(
Layer
* _excludedLayer)
40
{
41
42
if
(
excludedLayers
.count(_excludedLayer) == 1)
43
{
44
return
true
;
45
}
46
else
47
{
48
return
false
;
49
}
50
51
}
52
53
void
AddExcludedLayer
(
Layer
* _excludedLayer)
54
{
55
excludedLayers
.emplace(_excludedLayer);
56
}
57
58
void
PopExcludedLayer
(
Layer
* _excludedLayer)
59
{
60
excludedLayers
.erase(_excludedLayer);
61
}
62
63
};
64
65
class
CameraQueue
66
{
67
CameraComponent
*
main
;
68
69
//deque<CameraComponent*>
70
};
71
}
ComponentBase.hpp
GameObj.hpp
ImgComponent.hpp
Matrix2D.hpp
Transform.hpp
Kisaragi_Lib::CameraComponent
Definition
Camera.hpp:16
Kisaragi_Lib::CameraComponent::excludedLayers
set< Layer * > excludedLayers
Definition
Camera.hpp:20
Kisaragi_Lib::CameraComponent::AddExcludedLayer
void AddExcludedLayer(Layer *_excludedLayer)
Definition
Camera.hpp:53
Kisaragi_Lib::CameraComponent::CameraComponent
CameraComponent()
Definition
Camera.hpp:24
Kisaragi_Lib::CameraComponent::GetCamMatrix
Matrix2D GetCamMatrix()
Definition
Camera.hpp:29
Kisaragi_Lib::CameraComponent::FindExcludedLayer
bool FindExcludedLayer(Layer *_excludedLayer)
Definition
Camera.hpp:39
Kisaragi_Lib::CameraComponent::PopExcludedLayer
void PopExcludedLayer(Layer *_excludedLayer)
Definition
Camera.hpp:58
Kisaragi_Lib::CameraQueue
Definition
Camera.hpp:66
Kisaragi_Lib::CameraQueue::main
CameraComponent * main
Definition
Camera.hpp:67
Kisaragi_Lib::ComponentBase
Definition
ComponentBase.hpp:24
Kisaragi_Lib::ComponentBase::gameObj
GameObjBase * gameObj
Definition
ComponentBase.hpp:28
Kisaragi_Lib::ImgComponent::Layer
Definition
ImgComponent.hpp:208
Kisaragi_Lib::Matrix2D
Definition
Matrix2D.hpp:24
Kisaragi_Lib::Matrix2D::CreateInverseTransformationMatrix
Matrix2D CreateInverseTransformationMatrix()
Definition
Matrix2D.hpp:342
Kisaragi_Lib
Definition
Accessor.hpp:110
src
Camera.hpp
構築:
1.13.2