i already have a function to draw text and i can draw stuff. the problem is: i don't know the best way to render any color text and then continue rendereing stuff normally.
So, what exactly is wrong with the suggestion I (or SeanMiddleditch if you want individual characters to be different colors) already gave?
i don't know the best way to render any color text and then continue rendereing stuff normally.
The color of the text comes from a value passed to the shader (while the alpha value is retained from the text texture).
I don’t know how else I am supposed to answer.
Do you not know how to use multiple shaders?
#1: Activate text shader and alpha blending.
#2: Pass the color of the text to the shader.
#3: Shader outputs the color you passed + alpha from the texture containing the text (which you already know how to draw, apparently).
#4: Switch shader and continue rendering.
If your problem has not been solved into the dirt by now, you are going to have to get more specific on which part you do not understand how to do.
L. Spiro