Space Fighter
A "shmup" game for Computer Programming C++
Loading...
Searching...
No Matches
RenderTarget.h
Go to the documentation of this file.
1
2
/*
3
██╗ ██╗ █████╗ ████████╗ █████╗ ███╗ ██╗ █████╗
4
██║ ██╔╝ ██╔══██╗ ╚══██╔══╝ ██╔══██╗ ████╗ ██║ ██╔══██╗
5
█████╔╝ ███████║ ██║ ███████║ ██╔██╗ ██║ ███████║
6
██╔═██╗ ██╔══██║ ██║ ██╔══██║ ██║╚██╗██║ ██╔══██║
7
██║ ██╗ ██║ ██║ ██║ ██║ ██║ ██║ ╚████║ ██║ ██║
8
╚═╝ ╚═╝ ╚═╝ ╚═╝/\ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝
9
/vvvvvvvvvvvvvvvvvvv \=========================================,
10
`^^^^^^^^^^^^^^^^^^^ /---------------------------------------"
11
Katana Engine \/ © 2012 - Shuriken Studios LLC
12
http://www.shurikenstudios.com
13
*/
14
15
#pragma once
16
17
namespace
KatanaEngine
18
{
20
class
RenderTarget
:
public
Texture
21
{
22
23
public
:
24
28
RenderTarget
(
const
int
width,
const
int
height);
29
virtual
~RenderTarget
() { }
30
31
34
static
void
Set
(
RenderTarget
*pTarget);
35
38
static
void
SetDisplay
(ALLEGRO_DISPLAY *pDisplay) { s_pDisplay = pDisplay; }
39
44
virtual
bool
Load
(
const
std::string &path,
ResourceManager
*pManager) {
return
true
; }
45
46
private
:
47
48
static
ALLEGRO_DISPLAY *s_pDisplay;
49
50
};
51
}
KatanaEngine::RenderTarget
Contains a 2D texture that can be used as a render target.
Definition
RenderTarget.h:21
KatanaEngine::RenderTarget::SetDisplay
static void SetDisplay(ALLEGRO_DISPLAY *pDisplay)
Set the display of the target.
Definition
RenderTarget.h:38
KatanaEngine::RenderTarget::Load
virtual bool Load(const std::string &path, ResourceManager *pManager)
Render targets don't need to be loaded so this simply returns true.
Definition
RenderTarget.h:44
KatanaEngine::RenderTarget::RenderTarget
RenderTarget(const int width, const int height)
Instantiate a render target object.
Definition
RenderTarget.cpp:21
KatanaEngine::RenderTarget::~RenderTarget
virtual ~RenderTarget()
Definition
RenderTarget.h:29
KatanaEngine::RenderTarget::Set
static void Set(RenderTarget *pTarget)
Set the desired target to render to when drawing.
Definition
RenderTarget.cpp:28
KatanaEngine::ResourceManager
Loads and manages the lifespan of objects from external files.
Definition
ResourceManager.h:21
KatanaEngine::Texture
Represents a 2D grid of texels.
Definition
Texture.h:21
KatanaEngine
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...
Definition
Animation.cpp:18
doxy_src
KatanaEngine
RenderTarget.h
Generated by
1.11.0