|
Post by u9 on Jul 30, 2008 7:37:27 GMT -5
Hey, would it be possible to add the ability of setting each corner of an image from code? I mean how are the images in brutus currently handled, is it not just quads with a texture on them? This is I disagreeumption since it is using hardware acceleration to draw, scale and rotate the images. If so, maybe you could add the ability to move these points, or alternatively (and maybe simpler) add quads to b2d where you just specify the coordinates of the 4 corners and what texture (image?) it should draw on that quad. I'm asking because i would like more flexibility drawing e.g. maps (roads in my truck demo or levels in my spacerace thingy), perspective (e.g. buildings in my truck demo) and so on and so on. And if quads were doable, maybe one could also even set the texture coordinates for each point/vertex... I haven't completely thought this through yet, just wanted to hear your opinion on this.
|
|
|
Post by Guilect on Jul 30, 2008 20:31:18 GMT -5
Brutus2D does not use textured quads for its images. It uses D3DXSprite, a feature in DirectX 8.1. This makes loading and manipulating (scaleing, rotating, etc) images pretty easy.
I believe that awhile back I tried to put in a textured quad command and it did not like to play nicely with other D3DXSprite images.
I can look into it again.
|
|
|
Post by u9 on Jul 31, 2008 1:04:59 GMT -5
I know you are doing this in your spare time, so only if you want to, or have nothing to do No need to stress over it For the next month or two I won't have time to try it anyway, but i think it might be a nice feature.
|
|