예제 #1
0
        public static uint GetPixel(uint x, uint y)
        {
            var res = Native.PGET32(x, y);

            FpUtil.ResetFpuRegisters();

            return(res);
        }
예제 #2
0
        public static uint CreateSprite(uint width, uint height, uint bytesPerPixel)
        {
            var res = Native.InitSprite(width, height, bytesPerPixel);

            FpUtil.ResetFpuRegisters();

            return(res);
        }
예제 #3
0
        public static void CopyMemoryCrt(uint targetPtr, uint srcPtr, uint sizeInBytes)
        {
            Native.CopyMemory(targetPtr, srcPtr, sizeInBytes);

            FpUtil.ResetFpuRegisters();
        }
예제 #4
0
        public static void PutSpriteBlend(uint x, uint y, uint dataPtr, byte blendMode)
        {
            Native.btPut32(x, y, dataPtr, blendMode);

            FpUtil.ResetFpuRegisters();
        }
예제 #5
0
        public static void PutSprite(uint x, uint y, uint transparentColor, uint dataPtr)
        {
            Native.tPut32(x, y, transparentColor, dataPtr);

            FpUtil.ResetFpuRegisters();
        }
예제 #6
0
        public static void SetPixel(uint x, uint y, uint color)
        {
            Native.PSET32(x, y, color);

            FpUtil.ResetFpuRegisters();
        }
예제 #7
0
        public static void CopyMemoryMmx(uint srcPtr, uint dstPtr, uint length)
        {
            Native.MemCopyMmx(srcPtr, dstPtr, length);

            FpUtil.ResetFpuRegisters();
        }
예제 #8
0
        public static void ClearScreen(uint color)
        {
            Native._CLS(color);

            FpUtil.ResetFpuRegisters();
        }