summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfxutil.h
blob: 88a679e51703088ce858c47c3b9fe91c022bb365 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
#pragma once

#ifndef __RENDER_BGFX_UTIL__
#define __RENDER_BGFX_UTIL__

#include <bgfx/bgfx.h>

/* sdl_info is the information about SDL for the current screen */
class bgfx_util
{
public:
	static const bgfx::Memory* mame_texture_data_to_bgfx_texture_data(uint32_t format, int width, int height, int rowpixels, const rgb_t *palette, void *base);
	static uint64_t get_blend_state(uint32_t blend);
};

#endif // __RENDER_BGFX_UTIL__