blob: d4cea3134648fad48e883a207af2c3745f23a613 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
// target.h - Render target abstraction for BGFX layer
//
//============================================================
#pragma once
#ifndef __DRAWBGFX_TARGET__
#define __DRAWBGFX_TARGET__
#include "texture.h"
class bgfx_target : public bgfx_texture
{
public:
bgfx_target(std::string name, bgfx::TextureFormat::Enum format, uint32_t width, uint32_t height, bool filter = false);
bgfx_target(std::string name, void *handle, uint32_t width, uint32_t height);
virtual ~bgfx_target();
// Getters
bgfx::FrameBufferHandle target() const { return m_target; }
private:
bgfx::FrameBufferHandle m_target;
};
#endif // __DRAWBGFX_TARGET__
|