SDL_gpu  0.11.0
A hardware-accelerated, cross-platform 2D graphics API
Surface, Image, and Target Conversions
DECLSPEC GPU_Image *SDLCALL GPU_CopyImageFromSurface (SDL_Surface *surface)
 
DECLSPEC GPU_Image *SDLCALL GPU_CopyImageFromTarget (GPU_Target *target)
 
DECLSPEC SDL_Surface *SDLCALL GPU_CopySurfaceFromTarget (GPU_Target *target)
 
DECLSPEC SDL_Surface *SDLCALL GPU_CopySurfaceFromImage (GPU_Image *image)
 

Detailed Description

Function Documentation

◆ GPU_CopyImageFromSurface()

DECLSPEC GPU_Image* SDLCALL GPU_CopyImageFromSurface ( SDL_Surface *  surface)

Copy SDL_Surface data into a new GPU_Image. Don't forget to SDL_FreeSurface() the surface and GPU_FreeImage() the image.

Definition at line 1246 of file SDL_gpu.c.

◆ GPU_CopyImageFromTarget()

DECLSPEC GPU_Image* SDLCALL GPU_CopyImageFromTarget ( GPU_Target target)

Copy GPU_Target data into a new GPU_Image. Don't forget to GPU_FreeImage() the image.

Definition at line 1254 of file SDL_gpu.c.

◆ GPU_CopySurfaceFromImage()

DECLSPEC SDL_Surface* SDLCALL GPU_CopySurfaceFromImage ( GPU_Image image)

Copy GPU_Image data into a new SDL_Surface. Don't forget to SDL_FreeSurface() the surface and GPU_FreeImage() the image.

Definition at line 1276 of file SDL_gpu.c.

◆ GPU_CopySurfaceFromTarget()

DECLSPEC SDL_Surface* SDLCALL GPU_CopySurfaceFromTarget ( GPU_Target target)

Copy GPU_Target data into a new SDL_Surface. Don't forget to SDL_FreeSurface() the surface.

Definition at line 1265 of file SDL_gpu.c.