MxEngine
Classes | Functions
MxEngine::GUI Namespace Reference

Classes

struct  Indent
 
struct  TreeNodeAutoPop
 

Functions

void TransformEditor (Transform &transform)
 
void BehaviourEditor (Behaviour &behaviour)
 
void ScriptEditor (Script &script)
 
void InstanceFactoryEditor (InstanceFactory &instanceFactory)
 
void SkyboxEditor (Skybox &skybox)
 
void DebugDrawEditor (DebugDraw &debugDraw)
 
void MeshRendererEditor (MeshRenderer &meshRenderer)
 
void MeshSourceEditor (MeshSource &meshSource)
 
void MeshLODEditor (MeshLOD &meshLOD)
 
void DirectionalLightEditor (DirectionalLight &dirLight)
 
void PointLightEditor (PointLight &pointLight)
 
void SpotLightEditor (SpotLight &spotLight)
 
void CameraControllerEditor (CameraController &cameraController)
 
void VRCameraControllerEditor (VRCameraController &vrCameraController)
 
void InputControlEditor (InputControl &inputControl)
 
void AudioSourceEditor (AudioSource &audioSource)
 
void AudioListenerEditor (AudioListener &audioListener)
 
bool InputIntOnClick (const char *title, int *v, const char *buttonText="apply")
 
bool InputFloatOnClick (const char *title, float *v, const char *buttonText="apply")
 
bool InputTextOnClick (const char *text, MxString &str, size_t sizeRequired, const char *buttonText="apply")
 
void DrawProfiler (size_t graphRecordSize=128)
 
void DrawRenderEditor ()
 
void DrawTextureEditor (const char *name, GResource< Texture > &texture)
 
void DrawCubeMapEditor (const char *name, GResource< CubeMap > &cubemap)
 
void DrawMaterialEditor (MaterialHandle &material)
 
void DrawAABBEditor (const char *name, AABB &aabb)
 
void DrawLightBaseEditor (LightBase &base)
 
void DrawVertexEditor (Vertex &vertex)
 
void DrawImageSaver (const GResource< Texture > &texture, const char *name)
 
void DrawMeshEditor (const char *name, MeshHandle &mesh)
 
void DrawViewportWindow (Vector2 &viewportSize)
 

Detailed Description

MxEngine GUI namespace. Used for declaration of Immediate GUI functions

Function Documentation

§ DrawProfiler()

void MxEngine::GUI::DrawProfiler ( size_t  graphRecordSize = 128)
inline

draws fps graph in currenly active window. Listens to FpsUpdateEvent in global (Application) context

Parameters
graphRecordSizehow many fps updates to track before refreshing (clearing). Each update happens each second.

§ InputFloatOnClick()

bool MxEngine::GUI::InputFloatOnClick ( const char *  title,
float *  v,
const char *  buttonText = "apply" 
)
inline

creates input field for a float and apply-button next to it

Parameters
titleinput field title
vvalue in which input will be stored
buttonTexttext of apply-button
Returns
true if button was pressed, false either

§ InputIntOnClick()

bool MxEngine::GUI::InputIntOnClick ( const char *  title,
int *  v,
const char *  buttonText = "apply" 
)
inline

creates input field for an int and apply-button next to it

Parameters
titleinput field title
vvalue in which input will be stored
buttonTexttext of apply-button
Returns
true if button was pressed, false either

§ InputTextOnClick()

bool MxEngine::GUI::InputTextOnClick ( const char *  text,
MxString &  str,
size_t  sizeRequired,
const char *  buttonText = "apply" 
)
inline

creates input field for a char string and a apply-button next to it

Parameters
titleinput field title
vvalue in which input will be stored
sizemaximal size of v to limit user input
buttonTexttext of apply-button
Returns
true if button was pressed, false either