Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
SDL_loading.hpp File Reference

Wrapper for the SDL API calls used to load textures. More...

#include <SDL_surface.h>

Go to the source code of this file.

Functions

SDL_Surface * wrapsurface (void *data, int width, int height, int bpp)
 
bool canloadsurface (const char *name)
 
SDL_Surface * loadsurface (const char *name)
 

Detailed Description

Wrapper for the SDL API calls used to load textures.

Function Documentation

bool canloadsurface ( const char *  name)

References f(), and openfile().

Referenced by texturedata().

SDL_Surface* loadsurface ( const char *  name)

References findfile(), and fixsurfaceformat().

Referenced by loadimage(), and texturedata().

SDL_Surface* wrapsurface ( void data,
int  width,
int  height,
int  bpp 
)

References RGBAMASKS, and RGBMASKS.

Referenced by saveimage().