| ARX 1.0 The next-generation open source augmented reality toolkit.

Loading...
Searching...
No Matches
Macros
glStateCache2.h File Reference
`#include <ARX/AR/config.h>`
Include dependency graph for glStateCache2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros
#define | glStateCacheFlush()
#define | glStateCacheBeginAgain glStateCacheFlush
#define | glStateCacheEnableDepthTest() glEnable(GL_DEPTH_TEST)
#define | glStateCacheDisableDepthTest() glDisable(GL_DEPTH_TEST)
#define | glStateCacheEnableBlend() glEnable(GL_BLEND)
#define | glStateCacheDisableBlend() glDisable(GL_BLEND)
#define | glStateCacheActiveTexture(texture) glActiveTexture(texture)
#define | glStateCacheBindTexture2D(name) glBindTexture(GL_TEXTURE_2D, name)
#define | glStateCacheBlendFunc(sfactor, dfactor) glBlendFunc(sfactor, dfactor)
#define | glStateCacheColorMask(red, green, blue, alpha) glColorMask(red, green, blue, alpha)
#define | glStateCacheDepthMask(flag) glDepthMask(flag)
#define | glStateCachePixelStoreUnpackAlignment(param) glPixelStorei(GL_UNPACK_ALIGNMENT, param)

## Macro Definition Documentation

## ◆ glStateCacheActiveTexture

#define glStateCacheActiveTexture | ( |  | texture | ) | glActiveTexture(texture)

## ◆ glStateCacheBeginAgain

#define glStateCacheBeginAgain glStateCacheFlush

## ◆ glStateCacheBindTexture2D

#define glStateCacheBindTexture2D | ( |  | name | ) | glBindTexture(GL_TEXTURE_2D, name)

## ◆ glStateCacheBlendFunc

#define glStateCacheBlendFunc | ( |  | sfactor,
|  |  | dfactor
| ) |  | glBlendFunc(sfactor, dfactor)

## ◆ glStateCacheColorMask

#define glStateCacheColorMask | ( |  | red,
|  |  | green,
|  |  | blue,
|  |  | alpha
| ) |  | glColorMask(red, green, blue, alpha)

## ◆ glStateCacheDepthMask

#define glStateCacheDepthMask | ( |  | flag | ) | glDepthMask(flag)

## ◆ glStateCacheDisableBlend

#define glStateCacheDisableBlend | ( |  | ) | glDisable(GL_BLEND)

## ◆ glStateCacheDisableDepthTest

#define glStateCacheDisableDepthTest | ( |  | ) | glDisable(GL_DEPTH_TEST)

## ◆ glStateCacheEnableBlend

#define glStateCacheEnableBlend | ( |  | ) | glEnable(GL_BLEND)

## ◆ glStateCacheEnableDepthTest

#define glStateCacheEnableDepthTest | ( |  | ) | glEnable(GL_DEPTH_TEST)

## ◆ glStateCacheFlush

#define glStateCacheFlush | ( |  | ) |

## ◆ glStateCachePixelStoreUnpackAlignment

#define glStateCachePixelStoreUnpackAlignment | ( |  | param | ) | glPixelStorei(GL_UNPACK_ALIGNMENT, param)