You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
539 B
27 lines
539 B
#ifndef components_H
|
|
#define components_H
|
|
|
|
enum Component
|
|
{
|
|
C_TRANSFORM = 0,
|
|
C_MODEL,
|
|
C_CAMERA,
|
|
C_RIGIDBODY,
|
|
MAX_COMPONENTS
|
|
};
|
|
|
|
inline static const char* comp_to_str(enum Component component)
|
|
{
|
|
const char* str = 0;
|
|
switch(component)
|
|
{
|
|
case C_TRANSFORM : str = "TRANSFORM"; break;
|
|
case C_MODEL : str = "MODEL"; break;
|
|
case C_CAMERA : str = "CAMERA"; break;
|
|
case C_RIGIDBODY : str = "RIGIDBODY"; break;
|
|
case MAX_COMPONENTS : str = "MAX_COMPONENTS"; break;
|
|
}
|
|
return str;
|
|
}
|
|
|
|
#endif
|
|
|