All Classes Functions Variables Typedefs Enumerations Groups
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

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.

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.

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.

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.