43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#ifndef IPL_CHANNEL_RSO_THREAD_H
|
|
#define IPL_CHANNEL_RSO_THREAD_H
|
|
|
|
#include "utility/iplThread.h"
|
|
|
|
#include <egg/core.h>
|
|
|
|
#include <nw4r/lyt/layout.h>
|
|
|
|
namespace ipl {
|
|
namespace channel {
|
|
typedef void (*CreateFunc)(nw4r::lyt::Layout* channelLayout);
|
|
typedef BOOL (*CalcFunc)(BOOL onSceneChange /* ??? */);
|
|
typedef void (*ThreadCalcFunc)();
|
|
|
|
class RsoThread : public utility::ut_thread {
|
|
public:
|
|
/** @param heap The work heap used. */
|
|
RsoThread(EGG::Heap* heap);
|
|
virtual ~RsoThread(); // 0x08
|
|
|
|
virtual void* Run(); // 0x0C
|
|
|
|
void start();
|
|
/** @param func The new loop function. */
|
|
void setCalcFunc(ThreadCalcFunc func);
|
|
|
|
OSMessageQueue* getCalcQueue() { return &mCalcQueue; }
|
|
|
|
private:
|
|
u8* mpStack; // 0x32C
|
|
|
|
bool mbStarted; // 0x330
|
|
|
|
ThreadCalcFunc mpCalcFunc; // 0x334
|
|
OSMessageQueue mCalcQueue; // 0x338
|
|
OSMessage mCalcMsg; // 0x358
|
|
};
|
|
} // namespace channel
|
|
} // namespace ipl
|
|
|
|
#endif // IPL_CHANNEL_RSO_THREAD_H
|