no message
This commit is contained in:
@@ -18,12 +18,10 @@
|
|||||||
Sample3dObject::Sample3dObject()
|
Sample3dObject::Sample3dObject()
|
||||||
{
|
{
|
||||||
rot = 0;
|
rot = 0;
|
||||||
Sample3dObject::Update();
|
|
||||||
DrawPrimitives();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sample3dObject::Update()
|
void Sample3dObject::Update( float fDeltaTime )
|
||||||
{
|
{
|
||||||
rot += fDeltaTime * 360.f;
|
rot += fDeltaTime * 360.f;
|
||||||
rot = float(fmod(rot, 360.f));
|
rot = float(fmod(rot, 360.f));
|
||||||
|
|||||||
@@ -6,13 +6,10 @@
|
|||||||
class Sample3dObject: public ActorFrame
|
class Sample3dObject: public ActorFrame
|
||||||
{
|
{
|
||||||
float rot;
|
float rot;
|
||||||
float fDeltaTime;
|
|
||||||
float tX;
|
|
||||||
float tY;
|
|
||||||
float tZ;
|
|
||||||
public:
|
public:
|
||||||
Sample3dObject();
|
Sample3dObject();
|
||||||
void Update();
|
void Update( float fDeltaTime );
|
||||||
void DrawPrimitives();
|
void DrawPrimitives();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user