Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Replace Texture with Solid Color

$
0
0

@testsubject wrote:

Is there any fast way (without using GetData/SetData) that I can any pixel where the alpha is non-zero with a solid color?
For example:

to:

I will need to be doing this to many small (32 x 32) textures, filling the entire screen.
I wrote a shader to do this, but it still seems too slow (drops to 15~20 fps).

Or, even better, if there is some way to determine if the mouse is over any opaque portion of a texture that has been drawn to the screen (while ignoring textures underneath it)?

Posts: 10

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles