summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/inputpair.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/render/bgfx/inputpair.h')
-rw-r--r--src/osd/modules/render/bgfx/inputpair.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/src/osd/modules/render/bgfx/inputpair.h b/src/osd/modules/render/bgfx/inputpair.h
index ae8e37981cc..550595a1c55 100644
--- a/src/osd/modules/render/bgfx/inputpair.h
+++ b/src/osd/modules/render/bgfx/inputpair.h
@@ -16,25 +16,37 @@
#include <string>
+#include "ui/uimain.h"
+
class bgfx_effect;
-class texture_manager;
-class target_manager;
+class chain_manager;
class bgfx_input_pair
{
public:
- bgfx_input_pair(int index, std::string sampler, std::string texture);
+ bgfx_input_pair(int index, std::string sampler, std::string texture, std::vector<std::string> available_textures, std::string selection, chain_manager& chains, uint32_t screen_index);
- void bind(bgfx_effect *effect, target_manager& targets, texture_manager& textures, const int32_t screen) const;
+ void bind(bgfx_effect *effect, const int32_t screen) const;
+ int32_t texture_changed(int32_t index, std::string *str, int32_t newval);
// Getters
+ chain_manager& chains() const { return m_chains; }
std::string sampler() const { return m_sampler; }
std::string texture() const { return m_texture; }
+ std::vector<ui_menu_item> get_slider_list();
private:
- int m_index;
- std::string m_sampler;
- std::string m_texture;
+ void create_selection_slider(uint32_t screen_index);
+ bool needs_sliders();
+
+ int m_index;
+ std::string m_sampler;
+ std::string m_texture;
+ std::vector<std::string> m_available_textures;
+ std::string m_selection;
+ chain_manager& m_chains;
+ int32_t m_current_texture;
+ ui_menu_item m_selection_slider;
};
#endif // __DRAWBGFX_INPUT_PAIR__