Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
CEGUIRenderer.inl
Go to the documentation of this file.
1/***********************************************************************
2 created: Tue Apr 30 2013
3 authors: Paul D Turner <paul@cegui.org.uk>
4 Lukas E Meindl
5*************************************************************************/
6/***************************************************************************
7 * Copyright (C) 2004 - 2013 Paul D Turner & The CEGUI Development Team
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining
10 * a copy of this software and associated documentation files (the
11 * "Software"), to deal in the Software without restriction, including
12 * without limitation the rights to use, copy, modify, merge, publish,
13 * distribute, sublicense, and/or sell copies of the Software, and to
14 * permit persons to whom the Software is furnished to do so, subject to
15 * the following conditions:
16 *
17 * The above copyright notice and this permission notice shall be
18 * included in all copies or substantial portions of the Software.
19 *
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26 * OTHER DEALINGS IN THE SOFTWARE.
27 ***************************************************************************/
28#pragma once
29#ifndef DVD_CEGUIRenderer_inl_
30#define DVD_CEGUIRenderer_inl_
31
32namespace CEGUI
33{
34
35inline const String& CEGUIRenderer::getIdentifierString() const
36{
37 return s_rendererID;
38}
39
41{
42 return _context;
43}
44
45inline bool CEGUIRenderer::flipClippingHeight() const noexcept
46{
48}
49
51{
52 return _bufferInOut;
53}
54
56{
57 return _memCmdInOut;
58}
59
61{
62 return *_defaultTarget;
63}
64
65inline const glm::mat4& CEGUIRenderer::getViewProjectionMatrix() const noexcept
66{
68}
69
70inline void CEGUIRenderer::setViewProjectionMatrix( const glm::mat4& viewProjectionMatrix )
71{
72 _viewProjectionMatrix = viewProjectionMatrix;
73}
74
75inline const Sizef& CEGUIRenderer::getDisplaySize() const
76{
77 return _displaySize;
78}
79
80inline const Vector2f& CEGUIRenderer::getDisplayDPI() const
81{
82 return _displayDPI;
83}
84
85inline void CEGUIRenderer::setActiveRenderTarget( RenderTarget* renderTarget )
86{
87 _activeRenderTarget = renderTarget;
88}
89
90}
91
92#endif //DVD_CEGUIRenderer_inl_
void setActiveRenderTarget(RenderTarget *renderTarget)
void setViewProjectionMatrix(const glm::mat4 &viewProjectionMatrix)
static String s_rendererID
String holding the renderer identification text.
Divide::GFXDevice & _context
Parent app's graphics context.
Divide::GFX::CommandBuffer * cmdBuffer() const
const Vector2f & getDisplayDPI() const override
RenderTarget * _activeRenderTarget
The active RenderTarget.
Divide::GFXDevice & context()
const String & getIdentifierString() const override
RenderTarget & getDefaultRenderTarget() override
RenderTarget * _defaultTarget
The default RenderTarget.
bool flipClippingHeight() const noexcept
Vector2f _displayDPI
What the renderer considers to be the current display DPI resolution.
const bool _flipClippingHeight
Clipping direction is the only thing we need to manually adjust between rendering APIs....
Divide::GFX::MemoryBarrierCommand * _memCmdInOut
Memory command from the parent app used to protected geometry buffer updates.
Divide::GFX::MemoryBarrierCommand * memCmd() const
const Sizef & getDisplaySize() const override
glm::mat4 _viewProjectionMatrix
View projection matrix.
Sizef _displaySize
What the renderer considers to be the current display size.
const glm::mat4 & getViewProjectionMatrix() const noexcept
Divide::GFX::CommandBuffer * _bufferInOut
Command buffer from the parent app used to queue up rendering commands.
Rough around the edges Adapter pattern abstracting the actual rendering API and access to the GPU.
Definition: GFXDevice.h:215