VenomEngine
Cross-Platform Modern Graphics Engine
Loading...
Searching...
No Matches
venom::common::GUI Class Referenceabstract
+ Inheritance diagram for venom::common::GUI:

Public Member Functions

void SetGraphicsApplication (GraphicsApplication *app)
 
virtual vc::Error Initialize ()=0
 
virtual vc::Error Reset ()=0
 
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

Static Public Member Functions

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.
 

Protected Member Functions

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

Protected Attributes

GraphicsApplication_app
 

Additional Inherited Members

- 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.
 

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