예제 #1
0
파일: Item.cpp 프로젝트: Dopelust/SP3-13
void CFood::RenderItem(MS& modelStack)
{
	float C = Charge * 8;
	C = C > 1 ? 1 : C;

	modelStack.Translate(0, translation.y, translation.z);
	modelStack.Translate((currentWeapbobX + translation.x) * (1 - C), currentWeapbobY * (1 - C), 0);
	modelStack.Translate(0, bobY * C, 0);
	modelStack.Rotate(-45 * (1 - C), 0, 1, 0);
	modelStack.Rotate(90, 1, 0, 0);
	modelStack.Scale(2, 4, 2);
}
예제 #2
0
파일: Entity.cpp 프로젝트: Dopelust/SP3-13
void Entity::RenderObject(MS& modelStack)
{
	modelStack.Translate(position);
	modelStack.Rotate(hOrientation, 0, 1, 0);
	modelStack.Scale(size);
}