void ETHScriptWrapper::DrawShaped(const str_type::string &name, const Vector2 &v2Pos, const Vector2 &v2Size, const GS_DWORD color, const float angle)
{
	SpritePtr sprite = LoadAndGetSprite(name);
	DrawShapedFromPtr(sprite, v2Pos, v2Size, color, angle);
}
Example #2
0
void ETHScriptWrapper::DrawBlackCurtain()
{
	const SpritePtr sprite = m_provider->GetShaderManager()->GetOpaqueSprite();
	const Vector2& screenSize(m_provider->GetVideo()->GetScreenSizeF());
	DrawShapedFromPtr(sprite, gs2d::math::constant::ZERO_VECTOR2, screenSize, gs2d::constant::BLACK, 0.0f);
}