public void Draw(IDrawable drawable, float x, float y, float rotate, float scale, Color4 color) { if (drawable is Texture) { DX.SetDrawBlendMode(DX.DX_BLENDMODE_ALPHA, (int)(color.a * 255)); DX.SetDrawBright((int)(color.r * 255), (int)(color.g * 255), (int)(color.b * 255)); DX.DrawRotaGraphFastF(x, y, scale, (float)(rotate + Math.PI), (int)drawable.GetRes(), 1); //DX.DrawBoxAA(x - 2, y - 2, x + 2, y + 2, 0xFFFFFF, 1); DX.SetDrawBright(255, 255, 255); DX.SetDrawBlendMode(DX.DX_BLENDMODE_ALPHA, 255); } }