Exemple #1
0
        public Sprite(IntPtr handle)
        {
            this.handle = handle;

            uint fmt; int access; // Junk for out parameters
            var  size = VectorInt.Zero;

            var err = SDL_QueryTexture(
                handle, out fmt, out access,
                out size.x, out size.y
                );

            if (err != 0)
            {
                throw new SDLException(SDL_GetError());
            }

            this.size = size;
        }