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

Small helper functions to organize which OpenGL formats to use. More...

#include "SDL_opengl.h"

Go to the source code of this file.

Functions

GLenum texformat (int bpp)
 
bool alphaformat (GLenum format)
 
GLenum uncompressedformat (GLenum format)
 
GLenum compressedformat (GLenum format, int w, int h, int force=0)
 
GLenum textarget (GLenum subtarget)
 
int formatsize (GLenum format)
 

Detailed Description

Small helper functions to organize which OpenGL formats to use.

Function Documentation

bool alphaformat ( GLenum  format)

Referenced by cubemaploadwildcard(), and newtexture().

GLenum compressedformat ( GLenum  format,
int  w,
int  h,
int  force = 0 
)
int formatsize ( GLenum  format)
GLenum texformat ( int  bpp)
GLenum textarget ( GLenum  subtarget)
GLenum uncompressedformat ( GLenum  format)

Referenced by cubemaploadwildcard(), and newtexture().