6 марта 2013 в 12:49
Рисование окружностей с помощью HGE
Данная функция использует Gfx_RenderLine для рисования окружностей.
Использование спрайта круга не всегда возможно, потому что иногда требуется увеличить размер в сотни раз.
Для рисования круга нужно задать координаты центра круга х и у, радиус, количество сегментов и цвет.
Чем больше сегментов вы используете, тем плавнее выглядят края круга, но возрастает нагрузка.
void Draw_Circle(float cx, float cy, float Radius, int Segments, DWORD color)
{
float EachAngle;
float a;
float x1;
float x2;
float y1;
float y2;
EachAngle = 2.0 * M_PI / (float)Segments;
x2 = Radius;
y2 = 0.0;
for(a=0.0; a<= (2.0*M_PI + EachAngle); a+=EachAngle)
{
x1 = x2;
y1 = y2;
x2 = Radius * cos(a);
y2 = Radius * sin(a);
hge->Gfx_RenderLine(x1+cx, y1+cy, x2+cx, y2+cy, color);
}
}
26 сентября 2016 в 13:38
Big /mhx/average-price-http://pur9cc.com/ , / Time for end packaging amy reid just?
27 сентября 2016 в 21:44
We will be happy to have a construction loan spehttp://pur9cc.com/ , t call you when it is most convenient for you!
27 сентября 2016 в 21:45
Very informative post.Really thank you! Awesome.
27 сентября 2016 в 21:45
Very informative post.Really thank you! Awesome.
8 марта 2017 в 07:55
, for Women | Cialis for Men | Does Cialis Help Women?
15 апреля 2017 в 09:47
I got what you intend, thankyou for putting up.Woh I am glad to find this website through google. It is a very hard undertaking to seek to please everybody. by Publilius Syrus.
15 апреля 2017 в 09:48
I got what you intend, thankyou for putting up.Woh I am glad to find this website through google. It is a very hard undertaking to seek to please everybody. by Publilius Syrus.
24 мая 2017 в 12:22
Mudbox is a software for 3D sculpting and painting which is developed by Autodesk.
24 мая 2017 в 12:22
Mudbox is a software for 3D sculpting and painting which is developed by Autodesk.
19 октября 2017 в 10:20
Is it safe to take Tadalafil(=http://cialisdfr.com/ , , for impotence) while taking Metformin for Diabetes?
20 октября 2017 в 13:43
Fantastic website. A lot of useful information here. I'm sending it to a few pals ans also sharing in delicious. And naturally, thank you in your sweat!
20 октября 2017 в 13:44
Fantastic website. A lot of useful information here. I'm sending it to a few pals ans also sharing in delicious. And naturally, thank you in your sweat!
1 февраля 2018 в 16:09
Children buy generic , mastercard patients benefits very whether to for and says.
5 мая 2018 в 11:00
You are my inspiration, I possess few web logs and rarely run out from to brand.
авторизуйтесь
или войдите через