29 lines
586 B
C++
29 lines
586 B
C++
#include "ObjectInterfacePerModule.h"
|
|
#include "IObject.h"
|
|
|
|
#include "rcpp/IUpdateable.h"
|
|
#include "rcpp/InterfaceIds.h"
|
|
#include <iostream>
|
|
#include <sstream>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "Renderer.h"
|
|
|
|
class TestModule : public TInterface<IID_IUPDATEABLE,IUpdateable>
|
|
{
|
|
public:
|
|
virtual void Update( float deltaTime )
|
|
{
|
|
std::ostringstream s;
|
|
s << "TestModule: 2 Runtime Object 2 " << deltaTime << " update called!";
|
|
|
|
bgfx::dbgTextPrintf(1, 20, 0x6f, s.str().c_str());
|
|
|
|
// wait a little so that we don't hog the CPU.
|
|
usleep (1000 * 100);
|
|
}
|
|
};
|
|
|
|
REGISTERCLASS(TestModule);
|