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

#ifndef MAME_RENDER_BGFX_TEXTUREHANDLEPROVIDER_H
#define MAME_RENDER_BGFX_TEXTUREHANDLEPROVIDER_H

#pragma once

#include <bgfx/bgfx.h>

class bgfx_texture_handle_provider
{
public:
	virtual ~bgfx_texture_handle_provider() = default;

	// Getters
	virtual bgfx::TextureHandle texture() const = 0;
	virtual bool is_target() const = 0;
	virtual uint16_t width() const = 0;
	virtual uint16_t width_margin() const = 0;
	virtual uint16_t height() const = 0;
	virtual uint16_t rowpixels() const = 0;
	virtual int width_div_factor() const = 0;
	virtual int width_mul_factor() const = 0;
};

#endif // MAME_RENDER_BGFX_TEXTUREHANDLEPROVIDER_H