#import <FlowShader.h>
Public Member Functions | |
(id) | - init |
(void) | - useProgramm: |
(int) | - bindShaderRenderMode: |
(int) | - bindShaderTexture:textureUnit:uniformName: |
(int) | - bindShaderFloatValue:unfiormName: |
(int) | - bindShaderColor:uniformName: |
Protected Attributes | |
GLuint | programm |
This class handles the OpenGL shaders
- (int) bindShaderColor: | (NSColor *) | color | |
uniformName: | (NSString *) | name | |
Sets a color parameter for the shaders
color | The color for the shdader |
uniformName | The parameter name for the shaders |
- (int) bindShaderFloatValue: | (float) | value | |
unfiormName: | (NSString *) | name | |
Sets a float value to the shaders
value | The float value |
uniformName | The parameter name for the shaders |
- (int) bindShaderRenderMode: | (RenderMode) | mode |
Sets the render mode of the shader (arrow plot, stream line, color coding)
mode | The render mode for the shaders |
- (int) bindShaderTexture: | (GLuint) | texture | |
textureUnit: | (int) | unit | |
uniformName: | (NSString *) | name | |
Sets a texture for the shaders
texture | The OpenGL texture unit |
uniformName | The parameter name for the shaders |
- (id) init |
Initializes the shader object
- (void) useProgramm: | (BOOL) | use |
Defines if the shaders should be used
use | Indicates if shaders should be used |
- (GLuint) programm [protected] |