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
10using std::set;
12
13namespace Kisaragi_Lib
14{
16 {
17 private:
18 //Transform2D camPos; //TODO J̍W offset͗~J
19
20 set<Layer*> excludedLayers;
21
22 public:
23
25 {
26
27 }
28
30 {
31 Matrix2D gameObjMat = gameObj->transform;
32
33 //JƂ͔΂̋objɂ邽ߔ].(ts)
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
66 {
68
69 //deque<CameraComponent*>
70 };
71}
Definition Camera.hpp:16
set< Layer * > excludedLayers
Definition Camera.hpp:20
void AddExcludedLayer(Layer *_excludedLayer)
Definition Camera.hpp:53
CameraComponent()
Definition Camera.hpp:24
Matrix2D GetCamMatrix()
Definition Camera.hpp:29
bool FindExcludedLayer(Layer *_excludedLayer)
Definition Camera.hpp:39
void PopExcludedLayer(Layer *_excludedLayer)
Definition Camera.hpp:58
Definition Camera.hpp:66
CameraComponent * main
Definition Camera.hpp:67
Definition ComponentBase.hpp:24
GameObjBase * gameObj
Definition ComponentBase.hpp:28
Definition ImgComponent.hpp:208
Definition Matrix2D.hpp:24
Matrix2D CreateInverseTransformationMatrix()
Definition Matrix2D.hpp:342
Definition Accessor.hpp:110