My Project
Loading...
Searching...
No Matches
Surface, Image, and Target Conversions
DECLSPEC GPU_Image *SDLCALL GPU_CopyImageFromSurface (SDL_Surface *surface)
 
DECLSPEC GPU_Image *SDLCALL GPU_CopyImageFromSurfaceRect (SDL_Surface *surface, GPU_Rect *surface_rect)
 
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.

◆ GPU_CopyImageFromSurfaceRect()

DECLSPEC GPU_Image *SDLCALL GPU_CopyImageFromSurfaceRect ( SDL_Surface *  surface,
GPU_Rect surface_rect 
)

Like GPU_CopyImageFromSurface but enable to copy only part of the surface.

◆ 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.

◆ 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.

◆ 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.