public DrawPixel ( int x, int y, int color ) : void | ||
x | int | |
y | int | |
color | int | |
Результат | void |
public void DrawPixel(int x, int y, int color)
{
if (_canRender & _isRendering)
{
//Check if we should cut this line
if (y >= _scanlinesToCut & y < (_scanlines + _scanlinesToCut))
{
var liner = ((y - _scanlinesToCut)*256) + x;
_buffer[liner] = color;
}
}
}