How would I go about creating buttons? I feel reluctant about using polygons and textures. Is there a possibility to cut out the middleman and slap a texture straight onto the pixels. Something that doesn't require textures being in powers of 2.
Name:
Anonymous2011-10-13 11:19
You have to make your own textures. Do they need to be power of 2? no, just make it so whenever you load them with your program it'll make a power of 2 texture >= size of the original texture then copy that original texture into the power of 2 texture.
Name:
Anonymous2011-10-13 11:20
Use a pow2 Texture2D atlas for all widgets and real polygons. It should be the fastest way to render widgets on a system with a graphics card.
Name:
Phil McRevis2011-10-13 11:25
Does using polygons really outperform glDrawPixels that badly? =/
Thanks for the replies =/
Name:
Anonymous2011-10-13 11:29
>>4 Does using polygons really outperform glDrawPixels that badly? =/ Yes. glDrawPixels is almost never hardware-accelerated and can cause the CPU to stall if the graphics unit is active.