1 #ifndef RADIX_RENDER_CONTEXT_HPP
2 #define RADIX_RENDER_CONTEXT_HPP
22 return projStack.back();
25 return projStack.back();
28 projStack.push_back(m);
40 return viewStack.back();
43 return viewStack.back();
46 return invViewStack.back();
49 return invViewStack.back();
52 viewStack.push_back(m);
53 invViewStack.push_back(
inverse(m));
58 invViewStack.pop_back();
69 projDirty = viewDirty =
true;
74 invViewStack.pop_back();
75 projDirty = viewDirty =
true;
81 return viewFramesStack.back();
84 viewFramesStack.push_back(frame);
87 viewFramesStack.pop_back();
void popView()
Definition: RenderContext.hpp:56
size_t viewStackMaxDepth
Definition: RenderContext.hpp:38
Definition: GameController.hpp:7
void pushCamera(const Camera &c)
Definition: RenderContext.hpp:62
std::vector< ViewFrameInfo > viewFramesStack
Definition: RenderContext.hpp:79
std::vector< Matrix4f > projStack
Definition: RenderContext.hpp:19
const Matrix4f & getView() const
Definition: RenderContext.hpp:42
const Matrix4f & getInvView() const
Definition: RenderContext.hpp:48
bool viewDirty
Definition: RenderContext.hpp:37
std::pair< const Mesh &, const Transform & > ViewFrameInfo
Definition: RenderContext.hpp:78
Matrix4f & getInvView()
Definition: RenderContext.hpp:45
std::vector< Matrix4f > viewStack
Definition: RenderContext.hpp:36
void pushView(const Matrix4f &m)
Definition: RenderContext.hpp:51
void getInvViewMatrix(Matrix4f &m) const
Definition: Camera.cpp:60
Matrix3f inverse(const Matrix3f &m)
Definition: Matrix3f.cpp:150
const ViewFrameInfo getViewFrame() const
Definition: RenderContext.hpp:80
void popViewFrame()
Definition: RenderContext.hpp:86
void getProjMatrix(Matrix4f &m) const
Definition: Camera.cpp:43
Definition: Camera.hpp:11
Matrix4f & getProj()
Definition: RenderContext.hpp:21
bool projDirty
Definition: RenderContext.hpp:20
void pushViewFrame(const ViewFrameInfo &frame)
Definition: RenderContext.hpp:83
static const Matrix4f Identity
Definition: Matrix4f.hpp:27
Definition: RenderContext.hpp:15
void getViewMatrix(Matrix4f &m) const
Definition: Camera.cpp:51
Matrix4f & getView()
Definition: RenderContext.hpp:39
Definition: Matrix4f.hpp:25
void popCamera()
Definition: RenderContext.hpp:71
Renderer & renderer
Definition: RenderContext.hpp:16
void popProj()
Definition: RenderContext.hpp:31
void pushProj(const Matrix4f &m)
Definition: RenderContext.hpp:27
Main renderer - handles sub-renderers and provides low level render functions.
Definition: Renderer.hpp:35
RenderContext(Renderer &r)
Definition: RenderContext.hpp:17
const Matrix4f & getProj() const
Definition: RenderContext.hpp:24
std::vector< Matrix4f > invViewStack
Definition: RenderContext.hpp:36