2016-02-13 09:02:47 +00:00
|
|
|
#ifndef __PSHAG_CMODEL_HPP__
|
|
|
|
#define __PSHAG_CMODEL_HPP__
|
2016-02-13 00:57:09 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
2016-03-04 23:04:53 +00:00
|
|
|
#include "zeus/CColor.hpp"
|
2016-02-13 00:57:09 +00:00
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2016-02-13 00:57:09 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
struct CModelFlags
|
|
|
|
{
|
2016-03-17 02:18:01 +00:00
|
|
|
u8 f1; /* Blend state 3/5 enable additive */
|
2016-02-13 00:57:09 +00:00
|
|
|
u8 f2;
|
2016-03-17 02:18:01 +00:00
|
|
|
u16 f3; /* Depth state */
|
|
|
|
zeus::CColor color; /* Set into kcolor slot specified by material */
|
|
|
|
|
|
|
|
/* depth flags
|
|
|
|
0x8: greater
|
|
|
|
0x10: non-inclusive
|
|
|
|
*/
|
2016-02-13 00:57:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CModel
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void Draw(const CModelFlags& flags) const;
|
2016-03-17 02:18:01 +00:00
|
|
|
void Touch(int) const;
|
|
|
|
bool IsLoaded(int) const;
|
2016-02-13 00:57:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
#endif // __PSHAG_CMODEL_HPP__
|