VenomEngine
Cross-Platform Modern Graphics Engine
Loading...
Searching...
No Matches
venom::vulkan::VulkanGUI Class Reference
+ Inheritance diagram for venom::vulkan::VulkanGUI:

Public Member Functions

vc::Error Initialize () override
 
vc::Error Reset () override
 
- Public Member Functions inherited from venom::common::GUI
void SetGraphicsApplication (GraphicsApplication *app)
 
void DrawCallback ()
 
void Render ()
 
- Public Member Functions inherited from venom::common::GraphicsPluginObject
virtual void Destroy () override
 /!\ THIS FUNCTION MUST BE CALLED FOR DESTRUCTION, DO NOT USE delete
 
- Public Member Functions inherited from venom::common::PluginObject
 PluginObject (const PluginType type)
 
PluginType GetType () const override
 
template<class T >
T * DAs ()
 
template<class T >
const T * DAs () const
 
- Public Member Functions inherited from venom::common::IPluginObject

Protected Member Functions

void _NewFrame () override
 
void _Begin (const char *name, bool *p_open, vc::GUIWindowFlags flags) override
 
void _End () override
 
void _Text (const char *fmt,...) override
 
void _TextColored (const vcm::Vec4 &col, const char *fmt,...) override
 
void _LabelText (const char *label, const char *fmt,...) override
 
bool _SliderFloat (const char *label, float *v, float v_min, float v_max, const char *format, float power) override
 
bool _SliderFloat3 (const char *label, float v[3], float v_min, float v_max, const char *format, float power)
 
void _ColorEdit3 (const char *label, float col[3], vc::GUIColorEditFlags flags) override
 
bool _Button (const char *label, const vcm::Vec2 &size) override
 
bool _Checkbox (const char *label, bool *v) override
 
void _ProgressBar (float fraction, const vcm::Vec2 &size_arg, const char *overlay) override
 
bool _Selectable (const char *label, bool selected, vc::GUISelectableFlags flags, const vcm::Vec2 &size) override
 
bool _BeginCombo (const char *label, const char *preview_value, vc::GUIComboFlags flags) override
 
void _EndCombo () override
 
void _SetItemDefaultFocus () override
 
void _SameLine (float offset_from_start_x, float spacing) override
 
void _Render () override
 
- Protected Member Functions inherited from venom::common::GUI

Additional Inherited Members

- Static Public Member Functions inherited from venom::common::GUI
static void SetGUIDrawCallback (GUIDrawCallback guiDrawCallback)
 
static GUIGet ()
 
static void NewFrame ()
 
static void Begin (const char *name, bool *p_open=nullptr, GUIWindowFlags flags=0)
 
static void End ()
 
static void Text (const char *fmt,...)
 
static void TextColored (const vcm::Vec4 &col, const char *fmt,...)
 
static void LabelText (const char *label, const char *fmt,...)
 
static bool SliderFloat (const char *label, float *v, float v_min, float v_max, const char *format="%.3f", float power=1.0f)
 
static bool SliderFloat3 (const char *label, float v[3], float v_min, float v_max, const char *format="%.3f", float power=1.0f)
 
static void ColorEdit3 (const char *label, float col[3], GUIColorEditFlags flags=0)
 
static bool Button (const char *label, const vcm::Vec2 &size=vcm::Vec2(0, 0))
 
static bool Checkbox (const char *label, bool *v)
 
static void ProgressBar (float fraction, const vcm::Vec2 &size_arg=vcm::Vec2(-1, 0), const char *overlay=nullptr)
 
static bool Selectable (const char *label, bool selected, GUISelectableFlags flags=0, const vcm::Vec2 &size=vcm::Vec2(0, 0))
 
static bool BeginCombo (const char *label, const char *preview_value, GUIComboFlags flags=0)
 
static void EndCombo ()
 
static void SetItemDefaultFocus ()
 
static void SameLine (float offset_from_start_x=0.0f, float spacing=-1.0f)
 
- Static Public Member Functions inherited from venom::common::GraphicsPluginObject
static bool HasCachedObject (const std::string &path)
 Checks if an object is in the cache.
 
static SPtr< GraphicsCachedResourceGetCachedObject (const std::string &path)
 Gets a cached object from the graphics cache.
 
static const std::unordered_map< std::string, std::shared_ptr< GraphicsCachedResource > > & GetCachedObjects ()
 Gets all cached objects.
 
- Static Protected Member Functions inherited from venom::common::GraphicsPluginObject
static void _SetInCache (const std::string &path, const SPtr< GraphicsCachedResource > &object)
 Sets an object in the cache.
 
static void _SetCacheSize (size_t size)
 Adds cache size to avoid unnecessary additional allocations.
 
static void _AddCacheSize (size_t size)
 Adds cache size to avoid unnecessary additional allocations.
 
- Protected Attributes inherited from venom::common::GUI
GraphicsApplication_app
 

Member Function Documentation

◆ _Begin()

void venom::vulkan::VulkanGUI::_Begin ( const char * name,
bool * p_open,
vc::GUIWindowFlags flags )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _BeginCombo()

bool venom::vulkan::VulkanGUI::_BeginCombo ( const char * label,
const char * preview_value,
vc::GUIComboFlags flags )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _Button()

bool venom::vulkan::VulkanGUI::_Button ( const char * label,
const vcm::Vec2 & size )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _Checkbox()

bool venom::vulkan::VulkanGUI::_Checkbox ( const char * label,
bool * v )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _ColorEdit3()

void venom::vulkan::VulkanGUI::_ColorEdit3 ( const char * label,
float col[3],
vc::GUIColorEditFlags flags )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _End()

void venom::vulkan::VulkanGUI::_End ( )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _EndCombo()

void venom::vulkan::VulkanGUI::_EndCombo ( )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _LabelText()

void venom::vulkan::VulkanGUI::_LabelText ( const char * label,
const char * fmt,
... )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _NewFrame()

void venom::vulkan::VulkanGUI::_NewFrame ( )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _ProgressBar()

void venom::vulkan::VulkanGUI::_ProgressBar ( float fraction,
const vcm::Vec2 & size_arg,
const char * overlay )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _Render()

void venom::vulkan::VulkanGUI::_Render ( )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _SameLine()

void venom::vulkan::VulkanGUI::_SameLine ( float offset_from_start_x,
float spacing )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _Selectable()

bool venom::vulkan::VulkanGUI::_Selectable ( const char * label,
bool selected,
vc::GUISelectableFlags flags,
const vcm::Vec2 & size )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _SetItemDefaultFocus()

void venom::vulkan::VulkanGUI::_SetItemDefaultFocus ( )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _SliderFloat()

bool venom::vulkan::VulkanGUI::_SliderFloat ( const char * label,
float * v,
float v_min,
float v_max,
const char * format,
float power )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _SliderFloat3()

bool venom::vulkan::VulkanGUI::_SliderFloat3 ( const char * label,
float v[3],
float v_min,
float v_max,
const char * format,
float power )
protectedvirtual

Implements venom::common::GUI.

◆ _Text()

void venom::vulkan::VulkanGUI::_Text ( const char * fmt,
... )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ _TextColored()

void venom::vulkan::VulkanGUI::_TextColored ( const vcm::Vec4 & col,
const char * fmt,
... )
overrideprotectedvirtual

Implements venom::common::GUI.

◆ Initialize()

vc::Error venom::vulkan::VulkanGUI::Initialize ( )
overridevirtual

Implements venom::common::GUI.

◆ Reset()

vc::Error venom::vulkan::VulkanGUI::Reset ( )
overridevirtual

Implements venom::common::GUI.


The documentation for this class was generated from the following files: