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

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

#include <SDL_opengl.h>
#include <algorithm>
#include "inexor/network/SharedVar.hpp"
#include "inexor/shared/tools.hpp"
#include "inexor/texture/format.hpp"
#include "inexor/texture/texsettings.hpp"

Functions

GLenum texformat (int bpp)
 
bool alphaformat (GLenum format)
 
GLenum uncompressedformat (GLenum format)
 
GLenum compressedformat (GLenum format, int w, int h, int force)
 
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 
)
int formatsize ( GLenum  format)
GLenum texformat ( int  bpp)
GLenum textarget ( GLenum  subtarget)
GLenum uncompressedformat ( GLenum  format)

Referenced by cubemaploadwildcard(), and newtexture().