Can someone write me a quick XNA C# function to render pixels to the screen at any given screen coordinate?
Example:
The reason I want this is because I have a screen buffer of colours for each pixel on the screen and I can find no way of converting that to a texture2D to use, so I'm looking for a way to do:
Example:
Code:
renderPixel(x, y, color.pink);
Code:
for (int x =1; x<800; x++)
{
for (int y =1; y<600; y++)
{
renderPixel(x, y, buffer[x, y]);
}
}