mjohansson
Supporter
- Joined
- Feb 10, 2011
- Messages
- 409
I actually dont know how the rendering should be handled, since there wont be a ton of polygons I think drawing them individually is perhaps not a problem. It might also be possible to add several bmp images into one big sheet and just use offset coordinates for drawing all polygons with different textures in one single go. That could gain performance possibly.
I should be able to create a function that draws like you described anyway.
drawTexture(texWidht, texHeight, posX, posY, texNumber, rtotateAngle, scaleSize);
texWidht and Height is size of polygon, posX and Y is to place it either in world space coordinates or in screen space coordinates. texNumbaer is wich created texture to bind for use, rotation and scaling. posX can be center of poly or any corner.
I should be able to create a function that draws like you described anyway.
drawTexture(texWidht, texHeight, posX, posY, texNumber, rtotateAngle, scaleSize);
texWidht and Height is size of polygon, posX and Y is to place it either in world space coordinates or in screen space coordinates. texNumbaer is wich created texture to bind for use, rotation and scaling. posX can be center of poly or any corner.