Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Commands.h File Reference
#include "Commands.inl"

Go to the source code of this file.

Classes

struct  Divide::GFX::CommandBase
 
struct  Divide::GFX::Command< EnumVal >
 

Namespaces

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

Macros

#define DVD_GFX_COMMAND_H_
 
#define DEFINE_COMMAND_BEGIN(Name, Enum)
 
#define DEFINE_COMMAND_END(Name)   }
 
#define DEFINE_COMMAND(Name, Enum)
 

Typedefs

template<CommandType T>
using Divide::GFX::MapToDataType = typename MapToDataType_t< T >::type
 

Functions

string Divide::GFX::ToString (const CommandBase &cmd, const CommandType type, U16 indent)
 

Macro Definition Documentation

◆ DEFINE_COMMAND

#define DEFINE_COMMAND (   Name,
  Enum 
)
Value:
DEFINE_COMMAND_BEGIN(Name, Enum);\
DEFINE_COMMAND_END(Name)
#define DEFINE_COMMAND_BEGIN(Name, Enum)
Definition: Commands.h:87

Definition at line 95 of file Commands.h.

◆ DEFINE_COMMAND_BEGIN

#define DEFINE_COMMAND_BEGIN (   Name,
  Enum 
)
Value:
struct Name;\
template<> struct MapToDataType_t<Enum> { using type = Name; }; \
struct Name final : public Command<Enum> { \
PROPERTY_RW(bool, flag, false)

Definition at line 87 of file Commands.h.

◆ DEFINE_COMMAND_END

#define DEFINE_COMMAND_END (   Name)    }

Definition at line 93 of file Commands.h.

◆ DVD_GFX_COMMAND_H_

#define DVD_GFX_COMMAND_H_

Definition at line 34 of file Commands.h.