Ejemplo n.º 1
0
        public bool TryGetRenderTarget(out SDLTexture Texture)
        {
            IntPtr Result = SDL.SDL_GetRenderTarget(myPtr);

            if (Result == IntPtr.Zero)
            {
                Texture = null;

                return(false);
            }

            Texture = new SDLTexture(Result);

            return(true);
        }
Ejemplo n.º 2
0
 public bool IsRenderTarget(SDLTexture Texture)
 {
     return(Texture == SDL.SDL_GetRenderTarget(myPtr));
 }
Ejemplo n.º 3
0
 public void RenderCopyEx(SDLTexture TheTexture, ref SDL.SDL_Rect Srcrect, ref SDL.SDL_Rect Dstrect, double Angle, ref SDL.SDL_Point Center, SDL.SDL_RendererFlip Flip)
 {
     Util.ThrowIfResultIsError(SDL.SDL_RenderCopyEx(myPtr, TheTexture.Ptr, ref Srcrect, ref Dstrect, Angle, ref Center, Flip));
 }
Ejemplo n.º 4
0
 public void SetTarget(SDLTexture Texture)
 {
     Util.ThrowIfResultIsError(SDL.SDL_SetRenderTarget(myPtr, Texture.Ptr));
 }
Ejemplo n.º 5
0
 public void RenderCopy(SDLTexture Texture, ref SDL.SDL_Rect Srcrect, ref SDL.SDL_Rect Dstrect)
 {
     Util.ThrowIfResultIsError(SDL.SDL_RenderCopy(myPtr, Texture.Ptr, ref Srcrect, ref Dstrect));
 }