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.cpp File Reference
#include "ofGLUtils.h"
#include "ofGLProgrammableRenderer.h"
#include "ofGraphics.h"
#include "ofShader.h"
#include "ofGraphicsBaseTypes.h"
#include "ofRendererCollection.h"
#include "ofGLRenderer.h"
#include "ofPixels.h"
#include "ofLog.h"
#include "ofGraphicsConstants.h"
#include <set>

Macros

#define OF_ROUND_UP_2(num)   (((num)+1)&~1)
 
#define OF_ROUND_UP_4(num)   (((num)+3)&~3)
 
#define OF_ROUND_UP_8(num)   (((num)+7)&~7)
 

Functions

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

Macro Definition Documentation

◆ OF_ROUND_UP_2

#define OF_ROUND_UP_2 (   num)    (((num)+1)&~1)

◆ OF_ROUND_UP_4

#define OF_ROUND_UP_4 (   num)    (((num)+3)&~3)

◆ OF_ROUND_UP_8

#define OF_ROUND_UP_8 (   num)    (((num)+7)&~7)

Function Documentation

◆ ofDisableGLDebugLog()

void ofDisableGLDebugLog ( )

◆ ofEnableGLDebugLog()

void ofEnableGLDebugLog ( )

◆ ofGetBytesPerChannelFromGLType()

int ofGetBytesPerChannelFromGLType ( int  glType)

◆ ofGetGLFormatFromInternal()

int ofGetGLFormatFromInternal ( int  glInternalFormat)

◆ ofGetGLFormatFromPixelFormat()

int ofGetGLFormatFromPixelFormat ( ofPixelFormat  pixelFormat)

◆ ofGetGlInternalFormat() [1/3]

int ofGetGlInternalFormat ( const ofFloatPixels pixels)

◆ ofGetGLInternalFormat() [1/3]

int ofGetGLInternalFormat ( const ofFloatPixels pixels)

◆ ofGetGlInternalFormat() [2/3]

int ofGetGlInternalFormat ( const ofPixels pixels)

◆ ofGetGLInternalFormat() [2/3]

int ofGetGLInternalFormat ( const ofPixels pixels)

◆ ofGetGlInternalFormat() [3/3]

int ofGetGlInternalFormat ( const ofShortPixels pixels)

◆ ofGetGLInternalFormat() [3/3]

int ofGetGLInternalFormat ( const ofShortPixels pixels)

◆ ofGetGLInternalFormatFromPixelFormat()

int ofGetGLInternalFormatFromPixelFormat ( ofPixelFormat  pixelFormat)

◆ ofGetGlInternalFormatName()

std::string ofGetGlInternalFormatName ( int  glInternalFormat)

◆ ofGetGLInternalFormatName()

string ofGetGLInternalFormatName ( int  glInternalFormat)

◆ ofGetGLPolyMode()

GLuint ofGetGLPolyMode ( ofPolyRenderMode  mode)

◆ ofGetGLPrimitiveMode()

GLuint ofGetGLPrimitiveMode ( ofPrimitiveMode  mode)

◆ ofGetGLRenderer()

shared_ptr< ofBaseGLRenderer > ofGetGLRenderer ( )

◆ ofGetGlType() [1/3]

int ofGetGlType ( const ofFloatPixels pixels)

◆ ofGetGLType() [1/3]

int ofGetGLType ( const ofFloatPixels pixels)

◆ ofGetGlType() [2/3]

int ofGetGlType ( const ofPixels pixels)

◆ ofGetGLType() [2/3]

int ofGetGLType ( const ofPixels pixels)

◆ ofGetGlType() [3/3]

int ofGetGlType ( const ofShortPixels pixels)

◆ ofGetGLType() [3/3]

int ofGetGLType ( const ofShortPixels pixels)

◆ ofGetGlTypeFromInternal()

int ofGetGlTypeFromInternal ( int  glInternalFormat)

◆ ofGetGLTypeFromInternal()

int ofGetGLTypeFromInternal ( int  glInternalFormat)

◆ ofGetImageTypeFromGLType()

ofImageType ofGetImageTypeFromGLType ( int  glType)

◆ ofGetNumChannelsFromGLFormat()

int ofGetNumChannelsFromGLFormat ( int  glFormat)

◆ ofGetOFPolyMode()

ofPolyRenderMode ofGetOFPolyMode ( GLuint  mode)

◆ ofGetOFPrimitiveMode()

ofPrimitiveMode ofGetOFPrimitiveMode ( GLuint  mode)

◆ ofGLCheckExtension()

bool ofGLCheckExtension ( string  searchName)

◆ ofGLSLGetDefaultHeader()

string ofGLSLGetDefaultHeader ( )

◆ ofGLSLVersionFromGL() [1/2]

string ofGLSLVersionFromGL ( )

◆ ofGLSLVersionFromGL() [2/2]

string ofGLSLVersionFromGL ( int  major,
int  minor 
)

◆ ofGLSupportedExtensions()

vector< string > ofGLSupportedExtensions ( )

◆ ofGLSupportsNPOTTextures()

bool ofGLSupportsNPOTTextures ( )

◆ ofSetPixelStoreiAlignment() [1/2]

void ofSetPixelStoreiAlignment ( GLenum  pname,
int  stride 
)

◆ ofSetPixelStoreiAlignment() [2/2]

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