reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofGLUtils.h File Reference
#include "ofGraphicsConstants.h"
#include "ofConstants.h"

Go to the source code of this file.

Macros

#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS   GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT
 
#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS   GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT
 
#define GL_UNSIGNED_INT_24_8   GL_UNSIGNED_INT_24_8_EXT
 

Typedefs

typedef ofPixels_< unsigned char > ofPixels
 
typedef ofPixels_< float > ofFloatPixels
 
typedef ofPixels_< unsigned short > ofShortPixels
 
typedef ofPixelsofPixelsRef
 

Functions

int ofGetGLInternalFormat (const ofPixels &pixels)
 
int ofGetGLInternalFormat (const ofShortPixels &pixels)
 
int ofGetGLInternalFormat (const ofFloatPixels &pixels)
 
 OF_DEPRECATED_MSG ("Use ofGetGLInternalFormat() instead", int ofGetGlInternalFormat(const ofPixels &pixels))
 
 OF_DEPRECATED_MSG ("Use ofGetGLInternalFormat() instead", int ofGetGlInternalFormat(const ofShortPixels &pixels))
 
 OF_DEPRECATED_MSG ("Use ofGetGLInternalFormat() instead", int ofGetGlInternalFormat(const ofFloatPixels &pixels))
 
std::string ofGetGLInternalFormatName (int glInternalFormat)
 
int ofGetGLFormatFromInternal (int gInternalFormat)
 
int ofGetGLTypeFromInternal (int glInternalFormat)
 
 OF_DEPRECATED_MSG ("Use ofGetGLInternalFormatName() instead", std::string ofGetGlInternalFormatName(int glInternalFormat))
 
 OF_DEPRECATED_MSG ("Use ofGetGLTypeFromInternal() instead", int ofGetGlTypeFromInternal(int glInternalFormat))
 
std::shared_ptr< ofBaseGLRendererofGetGLRenderer ()
 
int ofGetGLType (const ofPixels &pixels)
 
int ofGetGLType (const ofShortPixels &pixels)
 
int ofGetGLType (const ofFloatPixels &pixels)
 
 OF_DEPRECATED_MSG ("Use ofGetGLType() instead", int ofGetGlType(const ofPixels &pixels))
 
 OF_DEPRECATED_MSG ("Use ofGetGLType() instead", int ofGetGlType(const ofShortPixels &pixels))
 
 OF_DEPRECATED_MSG ("Use ofGetGLType() instead", int ofGetGlType(const ofFloatPixels &pixels))
 
ofImageType ofGetImageTypeFromGLType (int glType)
 
GLuint ofGetGLPolyMode (ofPolyRenderMode m)
 
ofPolyRenderMode ofGetOFPolyMode (GLuint m)
 
GLuint ofGetGLPrimitiveMode (ofPrimitiveMode mode)
 
ofPrimitiveMode ofGetOFPrimitiveMode (GLuint mode)
 
int ofGetGLInternalFormatFromPixelFormat (ofPixelFormat pixelFormat)
 
int ofGetGLFormatFromPixelFormat (ofPixelFormat pixelFormat)
 
int ofGetBytesPerChannelFromGLType (int glType)
 
int ofGetNumChannelsFromGLFormat (int glFormat)
 
void ofSetPixelStoreiAlignment (GLenum pname, int w, int bpc, int numChannels)
 
void ofSetPixelStoreiAlignment (GLenum panme, int stride)
 
std::vector< std::string > ofGLSupportedExtensions ()
 
bool ofGLCheckExtension (std::string searchName)
 
bool ofGLSupportsNPOTTextures ()
 
bool ofIsGLProgrammableRenderer ()
 
template<class T >
 OF_DEPRECATED_MSG ("Use ofGetGLFormat() instead", int ofGetGlFormat(const ofPixels_< T > &pixels))
 
template<class T >
int ofGetGlFormat (const ofPixels_< T > &pixels)
 
template<class T >
int ofGetGLFormat (const ofPixels_< T > &pixels)
 
std::string ofGLSLVersionFromGL (int major, int minor)
 
std::string ofGLSLVersionFromGL ()
 
std::string ofGLSLGetDefaultHeader ()
 
void ofEnableGLDebugLog ()
 
void ofDisableGLDebugLog ()
 

Macro Definition Documentation

◆ GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS

#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS   GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT

◆ GL_FRAMEBUFFER_INCOMPLETE_FORMATS

#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS   GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT

◆ GL_UNSIGNED_INT_24_8

#define GL_UNSIGNED_INT_24_8   GL_UNSIGNED_INT_24_8_EXT

Typedef Documentation

◆ ofFloatPixels

typedef ofPixels_<float> ofFloatPixels

◆ ofPixels

typedef ofPixels_<unsigned char> ofPixels

◆ ofPixelsRef

◆ ofShortPixels

typedef ofPixels_<unsigned short> ofShortPixels

Function Documentation

◆ OF_DEPRECATED_MSG() [1/9]

template<class T >
OF_DEPRECATED_MSG ( "Use ofGetGLFormat() instead"  ,
int   ofGetGlFormatconst ofPixels_< T > &pixels 
)

◆ OF_DEPRECATED_MSG() [2/9]

OF_DEPRECATED_MSG ( "Use ofGetGLInternalFormat() instead"  ,
int   ofGetGlInternalFormatconst ofFloatPixels &pixels 
)

◆ OF_DEPRECATED_MSG() [3/9]

OF_DEPRECATED_MSG ( "Use ofGetGLInternalFormat() instead"  ,
int   ofGetGlInternalFormatconst ofPixels &pixels 
)

◆ OF_DEPRECATED_MSG() [4/9]

OF_DEPRECATED_MSG ( "Use ofGetGLInternalFormat() instead"  ,
int   ofGetGlInternalFormatconst ofShortPixels &pixels 
)

◆ OF_DEPRECATED_MSG() [5/9]

OF_DEPRECATED_MSG ( "Use ofGetGLInternalFormatName() instead"  ,
std::string   ofGetGlInternalFormatNameint glInternalFormat 
)

◆ OF_DEPRECATED_MSG() [6/9]

OF_DEPRECATED_MSG ( "Use ofGetGLType() instead"  ,
int   ofGetGlTypeconst ofFloatPixels &pixels 
)

◆ OF_DEPRECATED_MSG() [7/9]

OF_DEPRECATED_MSG ( "Use ofGetGLType() instead"  ,
int   ofGetGlTypeconst ofPixels &pixels 
)

◆ OF_DEPRECATED_MSG() [8/9]

OF_DEPRECATED_MSG ( "Use ofGetGLType() instead"  ,
int   ofGetGlTypeconst ofShortPixels &pixels 
)

◆ OF_DEPRECATED_MSG() [9/9]

OF_DEPRECATED_MSG ( "Use ofGetGLTypeFromInternal() instead"  ,
int   ofGetGlTypeFromInternalint glInternalFormat 
)

◆ ofDisableGLDebugLog()

void ofDisableGLDebugLog ( )

◆ ofEnableGLDebugLog()

void ofEnableGLDebugLog ( )

◆ ofGetBytesPerChannelFromGLType()

int ofGetBytesPerChannelFromGLType ( int  glType)

◆ ofGetGlFormat()

template<class T >
int ofGetGlFormat ( const ofPixels_< T > &  pixels)

◆ ofGetGLFormat()

template<class T >
int ofGetGLFormat ( const ofPixels_< T > &  pixels)

◆ ofGetGLFormatFromInternal()

int ofGetGLFormatFromInternal ( int  gInternalFormat)

◆ ofGetGLFormatFromPixelFormat()

int ofGetGLFormatFromPixelFormat ( ofPixelFormat  pixelFormat)

◆ ofGetGLInternalFormat() [1/3]

int ofGetGLInternalFormat ( const ofFloatPixels pixels)

◆ ofGetGLInternalFormat() [2/3]

int ofGetGLInternalFormat ( const ofPixels pixels)

◆ ofGetGLInternalFormat() [3/3]

int ofGetGLInternalFormat ( const ofShortPixels pixels)

◆ ofGetGLInternalFormatFromPixelFormat()

int ofGetGLInternalFormatFromPixelFormat ( ofPixelFormat  pixelFormat)

◆ ofGetGLInternalFormatName()

std::string ofGetGLInternalFormatName ( int  glInternalFormat)

◆ ofGetGLPolyMode()

GLuint ofGetGLPolyMode ( ofPolyRenderMode  m)

◆ ofGetGLPrimitiveMode()

GLuint ofGetGLPrimitiveMode ( ofPrimitiveMode  mode)

◆ ofGetGLRenderer()

std::shared_ptr< ofBaseGLRenderer > ofGetGLRenderer ( )

◆ ofGetGLType() [1/3]

int ofGetGLType ( const ofFloatPixels pixels)

◆ ofGetGLType() [2/3]

int ofGetGLType ( const ofPixels pixels)

◆ ofGetGLType() [3/3]

int ofGetGLType ( const ofShortPixels pixels)

◆ ofGetGLTypeFromInternal()

int ofGetGLTypeFromInternal ( int  glInternalFormat)

◆ ofGetImageTypeFromGLType()

ofImageType ofGetImageTypeFromGLType ( int  glType)

◆ ofGetNumChannelsFromGLFormat()

int ofGetNumChannelsFromGLFormat ( int  glFormat)

◆ ofGetOFPolyMode()

ofPolyRenderMode ofGetOFPolyMode ( GLuint  m)

◆ ofGetOFPrimitiveMode()

ofPrimitiveMode ofGetOFPrimitiveMode ( GLuint  mode)

◆ ofGLCheckExtension()

bool ofGLCheckExtension ( std::string  searchName)

◆ ofGLSLGetDefaultHeader()

std::string ofGLSLGetDefaultHeader ( )

◆ ofGLSLVersionFromGL() [1/2]

std::string ofGLSLVersionFromGL ( )

◆ ofGLSLVersionFromGL() [2/2]

std::string ofGLSLVersionFromGL ( int  major,
int  minor 
)

◆ ofGLSupportedExtensions()

std::vector< std::string > ofGLSupportedExtensions ( )

◆ ofGLSupportsNPOTTextures()

bool ofGLSupportsNPOTTextures ( )

◆ ofIsGLProgrammableRenderer()

bool ofIsGLProgrammableRenderer ( )

◆ ofSetPixelStoreiAlignment() [1/2]

void ofSetPixelStoreiAlignment ( GLenum  panme,
int  stride 
)

◆ ofSetPixelStoreiAlignment() [2/2]

void ofSetPixelStoreiAlignment ( GLenum  pname,
int  w,
int  bpc,
int  numChannels 
)