I'm using a single surface system for my graphics, and want to be able to draw a rectangle of a single colour onto this surface.
I don't believe Vertex Colours would do the trick, as using them means I can't use my brush (and therefore all my graphics can't be displayed).
The best way I can think of is to have a section of the texture I use set aside, and draw on it a single pixel of the required colour. I can then use this as the u,v coords for the quad and the rectangle will be textured as required.
However, such a method means I have to have the colours I want to use predefined. Not really a problem, but considering this texture is split into tiles which can be loaded or deleted as appropriate, I have to set aside one whole tile for this information - or implement a system of smaller tiles for one section of the texture.
Before I begin all that, I ask "Is there a simpler way to achieve what I want?" It could save me a lot of work.
Ta.
I don't believe Vertex Colours would do the trick, as using them means I can't use my brush (and therefore all my graphics can't be displayed).
The best way I can think of is to have a section of the texture I use set aside, and draw on it a single pixel of the required colour. I can then use this as the u,v coords for the quad and the rectangle will be textured as required.
However, such a method means I have to have the colours I want to use predefined. Not really a problem, but considering this texture is split into tiles which can be loaded or deleted as appropriate, I have to set aside one whole tile for this information - or implement a system of smaller tiles for one section of the texture.
Before I begin all that, I ask "Is there a simpler way to achieve what I want?" It could save me a lot of work.
Ta.