Crazy Eddies GUI System
0.7.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
cegui
include
RendererModules
Direct3D9
CEGUIDirect3D9RenderTarget.h
1
/***********************************************************************
2
filename: CEGUIDirect3D9RenderTarget.h
3
created: Tue Feb 10 2009
4
author: Paul D Turner
5
*************************************************************************/
6
/***************************************************************************
7
* Copyright (C) 2004 - 2009 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
#ifndef _CEGUIDirect3D9RenderTarget_h_
29
#define _CEGUIDirect3D9RenderTarget_h_
30
31
#include "CEGUIDirect3D9Renderer.h"
32
#include "../../CEGUIRenderTarget.h"
33
#include "../../CEGUIRect.h"
34
#include <d3dx9.h>
35
36
#if defined(_MSC_VER)
37
# pragma warning(push)
38
# pragma warning(disable : 4251)
39
#endif
40
41
// Start of CEGUI namespace section
42
namespace
CEGUI
43
{
48
class
DIRECT3D9_GUIRENDERER_API
Direct3D9RenderTarget
:
public
virtual
RenderTarget
49
{
50
public
:
52
Direct3D9RenderTarget
(
Direct3D9Renderer
& owner);
53
54
// implement parts of RenderTarget interface
55
void
draw(
const
GeometryBuffer
& buffer);
56
void
draw(
const
RenderQueue
& queue);
57
void
setArea(
const
Rect
& area);
58
const
Rect
& getArea()
const
;
59
void
activate();
60
void
deactivate();
61
void
unprojectPoint(
const
GeometryBuffer
& buff,
62
const
Vector2
& p_in,
Vector2
& p_out)
const
;
63
64
protected
:
66
void
updateMatrix()
const
;
68
void
setupViewport(D3DVIEWPORT9& vp)
const
;
69
71
Direct3D9Renderer
&
d_owner
;
73
LPDIRECT3DDEVICE9
d_device
;
75
Rect
d_area
;
77
mutable
D3DXMATRIX
d_matrix
;
79
mutable
bool
d_matrixValid
;
81
mutable
float
d_viewDistance
;
82
};
83
84
}
// End of CEGUI namespace section
85
86
#if defined(_MSC_VER)
87
# pragma warning(pop)
88
#endif
89
90
#endif // end of guard _CEGUIDirect3D9RenderTarget_h_
Generated by
1.8.3.1