Esempio n. 1
0
        public void pixelRGBA()
        {
            this.InitSdl();

            //Random rand = new Random();
            int result = SdlGfx.pixelRGBA(surfacePtr, 100, 100, 200, 0, (byte)0, 254);

            result = Sdl.SDL_Flip(surfacePtr);
            Thread.Sleep(sleepTime);
            Assert.AreEqual(result, 0);
            this.Quit();
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="col"></param>
 public void SetPixel(int x, int y, Color col)
 {
     SdlGfx.pixelRGBA(this.surfacePtrs[0], (short)x, (short)y, col.R, col.G, col.B, 255);
 }