#include "Teddy/TeddyConfig.h"
#include <SDL.h>
#include <cstring>
Include dependency graph for convgltex.cpp:
Go to the source code of this file.
Functions | |
SDL_Surface * | conv_surf_gl (SDL_Surface *s, int want_alpha) |
Convert surface for OpenGL. More... | |
SDL_Surface * | load_gl_texture (const char *file) |
Definition in file convgltex.cpp.
|
Convert surface for OpenGL.
Convert a surface into one suitable as an OpenGL texture; in RGBA format if want_alpha is nonzero, or in RGB format otherwise. The surface may have a colourkey, which is then translated to an alpha channel if RGBA is desired. Return the resulting texture, or NULL on error. The original surface is always freed. Definition at line 33 of file convgltex.cpp. |
|
A sample use of conv_surf_gl(): Load an image from a file, and convert it to RGB or RGBA format, depending on the image. Return the resulting surface, or NULL on error Definition at line 121 of file convgltex.cpp. References conv_surf_gl. |