A 3d fps game made in OpenGL
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.
 
 
 
 
Symmetry/src/components.h

31 lines
667 B

#ifndef components_H
#define components_H
enum Component
{
C_TRANSFORM = 0,
C_MODEL,
C_CAMERA,
C_LIGHT,
C_SOUND_SOURCE,
C_RIGIDBODY,
NUM_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_LIGHT: str = "LIGHT"; break;
case C_SOUND_SOURCE: str = "SOUND_SOURCE"; break;
case C_RIGIDBODY: str = "RIGIDBODY"; break;
case NUM_COMPONENTS: str = "NUM_COMPONENTS"; break;
}
return str;
}
#endif