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
17namespace 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}
Contains a 2D texture that can be used as a render target.
static void SetDisplay(ALLEGRO_DISPLAY *pDisplay)
Set the display of the target.
virtual bool Load(const std::string &path, ResourceManager *pManager)
Render targets don't need to be loaded so this simply returns true.
RenderTarget(const int width, const int height)
Instantiate a render target object.
static void Set(RenderTarget *pTarget)
Set the desired target to render to when drawing.
Loads and manages the lifespan of objects from external files.
Represents a 2D grid of texels.
Definition Texture.h:21
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...
Definition Animation.cpp:18