Is there a float version of the draw2d functions?
I use to use popcap and they had a float version of their draw functions for smoother drawing, noticed the difference when i ported some of my game code over to irrlicht.
If none, any ideas on how to draw 2d images/polygons smoother?
Using floats to draw 2d?
Would like to solve the problem in 2d if possible first.
As for the pixel suggestion, possible i could get a code example?
This is what i currently do to draw a circle.
The variable "m_vPos" is a vector2df.
Do you mean calculate the 15 points using x = cos(angle), y = sin(angle)?
If so how would that be any smoother? as the drawPixel function paramaters are u32.
As for the pixel suggestion, possible i could get a code example?
This is what i currently do to draw a circle.
The variable "m_vPos" is a vector2df.
Do you mean calculate the 15 points using x = cos(angle), y = sin(angle)?
If so how would that be any smoother? as the drawPixel function paramaters are u32.
Code: Select all
g_pApp->GetVideoDriver()->draw2DPolygon(core::position2d<s32>(m_vPos.X,m_vPos.Y),m_fRadius,m_Color,15);
-
- Posts: 237
- Joined: Mon Jan 16, 2006 1:18 pm
- Location: Odessa,Russian Federation