summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/chain.h
blob: 6993a56ea10897c846e2868012ca7962944ccce5 (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
34
35
36
37
38
39
40
41
42
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
//  chain.h - BGFX screen-space post-effect chain
//
//============================================================

#pragma once

#ifndef __DRAWBGFX_CHAIN__
#define __DRAWBGFX_CHAIN__

#include <string>
#include <vector>
#include <map>

class render_primitive;
class bgfx_slider;
class bgfx_parameter;
class bgfx_chain_entry;
class texture_manager;

class bgfx_chain
{
public:
	bgfx_chain(std::string name, std::string author, std::vector<bgfx_slider*> sliders, std::vector<bgfx_parameter*> params, std::vector<bgfx_chain_entry*> entries);
	~bgfx_chain();

	void process(render_primitive* prim, int view, texture_manager& textures, uint16_t screen_width, uint16_t screen_height, uint64_t blend = 0L);
    std::vector<bgfx_slider*>& sliders() { return m_sliders; }

private:
	std::string                     m_name;
	std::string                     m_author;
    std::vector<bgfx_slider*>       m_sliders;
    std::vector<bgfx_parameter*>    m_params;
	std::vector<bgfx_chain_entry*>  m_entries;
    std::map<std::string, bgfx_slider*> m_slider_map;
};

#endif // __DRAWBGFX_CHAIN__