Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualCC Ricers

Posted 20 March 2013 - 03:47 PM

I don't remember the specifics, but you can make the texture during runtime by locking a texture resource and writing the pixel color to it. What I usually do is create a single 1x1 white texture for all uses, and a helper function to draw a rectangle area for the sprite using that texture. The function would also let you set your own color, which to multiply with the white texture. Either in your drawing code or pixel shader will do.


#1CC Ricers

Posted 20 March 2013 - 03:42 PM

What I usually do is create a single 1x1 white texture for all uses, and a helper function to draw a rectangle area for the sprite using that texture. The function would also let you set the color, which to multiply with the white texture. Either in your drawing code or pixel shader will do.


PARTNERS