vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
GLShaderScene.h
1 #import <Cocoa/Cocoa.h>
2 #import "GLScene.h"
3 #import <OpenGL/OpenGL.h>
4 #import <OpenGL/CGLMacro.h>
5 #import <pthread.h>
6 
7 
8 
9 
11 
14 @interface GLShaderScene : GLScene {
15  BOOL vertexShaderUpdated;
16  BOOL fragmentShaderUpdated;
17  GLenum program;
18  GLenum vertexShader;
20  NSString *vertexShaderString;
22 
23  pthread_mutex_t renderLock;
24 
25  OSSpinLock errDictLock;
26  NSMutableDictionary *errDict;
27 }
28 
30 @property (retain,readwrite) NSString *vertexShaderString;
32 @property (retain,readwrite) NSString *fragmentShaderString;
33 
34 @property (assign,readwrite) BOOL vertexShaderUpdated;
35 @property (assign,readwrite) BOOL fragmentShaderUpdated;
37 @property (readonly) GLenum program;
39 @property (readonly) GLenum vertexShader;
41 @property (readonly) GLenum fragmentShader;
42 
43 @end
GLenum vertexShader
the (GL) name of the vertex shader after it's been compiled
Definition: GLShaderScene.h:18
GLenum program
the (GL) name of the program after the frag shaders have been compiled and linked ...
Definition: GLShaderScene.h:17
NSString * vertexShaderString
Set/get the vertex shader string.
Definition: GLShaderScene.h:20
GLenum fragmentShader
the (GL) name of the fragment shader after it's been compiled
Definition: GLShaderScene.h:19
Wrapper around a GL context with the intent of standardizing the more common render-to-texture operat...
Definition: GLScene.h:34
NSString * fragmentShaderString
Set/get the fragment shader string.
Definition: GLShaderScene.h:21
Subclass of GLScene for working with vertex & frag shaders- just give it some shader strings and watc...
Definition: GLShaderScene.h:14