summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/texturehandleprovider.h
blob: 5620e54974e45e22d6ea66914025ff9cc7e0201c (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
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
//  texturehandleprovider.h - base class for any class that
//  can potentially return information about a texture handle
//
//============================================================

#pragma once

#ifndef __DRAWBGFX_TEXTURE_HANDLE_PROVIDER__
#define __DRAWBGFX_TEXTURE_HANDLE_PROVIDER__

#include <bgfx/bgfx.h>

class bgfx_texture_handle_provider
{
public:
	virtual ~bgfx_texture_handle_provider() { }

	// Getters
	virtual bgfx::TextureHandle texture() const = 0;
	virtual bool is_target() const = 0;
	virtual uint16_t width() const = 0;
	virtual uint16_t height() const = 0;
};

#endif // __DRAWBGFX_TEXTURE_HANDLE_PROVIDER__