MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoShader/Inventor/misc/SoShaderTypes.h File Reference

Shader-releated types. More...

#include "SoShaderSystem.h"
#include <Inventor/SbBasic.h>

Go to the source code of this file.

Classes

struct  SoShader

Defines

#define SO_SHADER_TYPE_TO_STRING(shaderType)   (((shaderType) == SoShader::VERTEX_SHADER) ? "vertex" : (((shaderType) == SoShader::FRAGMENT_SHADER) ? "fragment" : "geometry"))
#define SO_SHADER_TYPE_TO_GLTYPE(shaderType)   (((shaderType) == SoShader::VERTEX_SHADER) ? GL_VERTEX_SHADER : (((shaderType) == SoShader::FRAGMENT_SHADER) ? GL_FRAGMENT_SHADER : GL_GEOMETRY_SHADER_EXT))

Detailed Description

Shader-releated types.

Author:
Felix Ritter

Definition in file SoShaderTypes.h.


Define Documentation

#define SO_SHADER_TYPE_TO_GLTYPE (   shaderType)    (((shaderType) == SoShader::VERTEX_SHADER) ? GL_VERTEX_SHADER : (((shaderType) == SoShader::FRAGMENT_SHADER) ? GL_FRAGMENT_SHADER : GL_GEOMETRY_SHADER_EXT))

Definition at line 27 of file SoShaderTypes.h.

#define SO_SHADER_TYPE_TO_STRING (   shaderType)    (((shaderType) == SoShader::VERTEX_SHADER) ? "vertex" : (((shaderType) == SoShader::FRAGMENT_SHADER) ? "fragment" : "geometry"))

Definition at line 26 of file SoShaderTypes.h.