Core.WindowRenderer.drawPixel C# (CSharp) Method

drawPixel() public method

public drawPixel ( int x, int y, int c ) : void
x int
y int
c int
return void
        public void drawPixel(int x, int y, int c)
        {
            if (x > window.endX - window.startX)
                throw new Exception("Window tried to draw to a pixel out of bounds");
            if (y > window.endY - window.startY)
                throw new Exception("Window tried to draw to a pixel out of bounds");
            windowManager.display.setPixel(x, y, c);
        }