Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Utils.inl File Reference

Go to the source code of this file.

Namespaces

namespace  Divide
 Handle console commands that start with a forward slash.
 
namespace  Divide::Util
 

Macros

#define DVD_EDITOR_UTILS_INL_
 

Functions

template<typename T , bool SeparateActivate, typename Pred >
void Divide::Util::RegisterUndo (Editor &editor, PushConstantType type, const T &oldVal, const T &newVal, const char *name, Pred &&dataSetter)
 
template<typename T , bool isSlider>
DrawReturnValue Divide::Util::DrawVecComponent (ImGuiDataType data_type, const char *label, T &value, T resetValue, T minValue, T maxValue, T step, T stepFast, ImVec4 buttonColour, ImVec4 buttonColourHovered, ImVec4 buttonColourActive, ImGuiInputTextFlags flags, const char *format="%.2f")
 
template<typename T , size_t N, bool isSlider>
DrawReturnValue Divide::Util::DrawVec (ImGuiDataType data_type, const char *label, const char *const compLabels[], T *values, ImGuiInputTextFlags flags, T resetValue=0, T minValue=0, T maxValue=0, T step=0, T stepFast=0, const char *format="%.2f")
 
template<typename T , size_t N, bool isSlider>
FORCE_INLINE DrawReturnValue Divide::Util::DrawVec (ImGuiDataType data_type, const char *label, T *values, const ImGuiInputTextFlags flags, T resetValue, const char *format)
 
template<typename Pred >
bool Divide::Util::colourInput4 (Editor &parent, const char *name, FColour4 &col, const bool readOnly, Pred &&dataSetter)
 
template<typename Pred >
bool Divide::Util::colourInput3 (Editor &parent, const char *name, FColour3 &col, const bool readOnly, Pred &&dataSetter)
 
template<typename FieldDataType , typename ComponentType , size_t num_comp>
bool Divide::Util::inputOrSlider (Editor &parent, const bool isSlider, const char *label, const F32 stepIn, ImGuiDataType data_type, EditorComponentField &field, ImGuiInputTextFlags flags, const char *format)
 
template<typename FieldDataType , typename ComponentType , size_t num_comp, bool IsSlider>
bool Divide::Util::inputOrSlider (Editor &parent, const char *label, const F32 stepIn, const ImGuiDataType data_type, EditorComponentField &field, const ImGuiInputTextFlags flags, const char *format)
 
template<typename T , size_t num_rows>
bool Divide::Util::inputMatrix (Editor &parent, const char *label, const F32 stepIn, const ImGuiDataType data_type, EditorComponentField &field, const ImGuiInputTextFlags flags, const char *format)
 

Macro Definition Documentation

◆ DVD_EDITOR_UTILS_INL_

#define DVD_EDITOR_UTILS_INL_

Definition at line 34 of file Utils.inl.