* Add missing files.
This commit is contained in:
jean.chalard
2009-08-22 06:01:52 +00:00
parent 3349f974f1
commit b2f75d45e7
21 changed files with 1625 additions and 0 deletions

19
projects/mtg/src/Pos.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include "JRenderer.h"
#include "../include/Pos.h"
Pos::Pos(float x, float y, float z, float t, float a) : actX(x), actY(y), actZ(z), actT(t), actA(a), x(x), y(y), zoom(z), t(t), alpha(a) {}
void Pos::Update(float dt)
{
actX += 10 * dt * (x - actX);
actY += 10 * dt * (y - actY);
actT += 10 * dt * (t - actT);
actZ += 10 * dt * (zoom - actZ);
actA += 10 * dt * (alpha - actA);
}
void Pos::Render(){}
void Pos::Render(JQuad* quad)
{
quad->SetColor(ARGB((int)actA, 255, 255, 255));
JRenderer::GetInstance()->RenderQuad(quad, actX, actY, actT, actZ, actZ);
}