2D engine done. Advice on optimisation, please?
Frank C. Wrote:It's fairly painless to change your RGBA data to unsigned byte but non-floating-point UVs require that you scale the texture matrix, which may or may not be worth the effort.
Yeah ...
On the other hand, for my 2d module I let users specify texture coordinates using integer coordinates because most people are more comfortable using pixel coordinates when coding with 2d oriented APIs.
In other words I use something like this:
drawSprite(const RectangleI &screenRectangle, const RectangleI &textureRectangle, float scale,float rotate,int origX, int origY,const Color &tint=Color::White)
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| new engine in works. advice? | godexsoft | 4 | 3,776 |
Apr 7, 2012 07:25 AM Last Post: godexsoft |
|
| Advice on 3D Room engine? | devGamer | 4 | 3,406 |
Mar 21, 2010 10:05 AM Last Post: Skorche |
|

