4 #import <Cocoa/Cocoa.h>
57 int uniformLocation[4];
65 - (NSString *) attribName;
67 - (NSString *) attribDescription;
69 - (NSString *) attribLabel;
86 - (NSMutableArray *) labelArray;
88 - (NSMutableArray *) valArray;
90 - (void) setIsFilterInputImage:(BOOL)n;
92 - (BOOL) isFilterInputImage;
95 - (void) setUserInfo:(
id)n;
98 - (void) setUniformLocation:(
int)n forIndex:(
int)i;
99 - (int) uniformLocationForIndex:(
int)i;
100 - (void) clearUniformLocations;
NSString * attribName()
returns the name of the attribute- the name of the attribute is also the variable name in the source!...
Definition: ISFAttrib.m:149
GLfloat floatVal
used if this is a float attribute
Definition: ISFAttrib.h:30
GLfloat colorVal[4]
array of four floats, used if this is a color attribute
Definition: ISFAttrib.h:32
sends a 2 element vector
Definition: ISFAttrib.h:18
long longVal
if this is a long attribute, store the desired value here
Definition: ISFAttrib.h:29
sends a long
Definition: ISFAttrib.h:16
internally, an ISFGLScene creates an ISFAttrib for each of the declared inputs in an ISF file...
Definition: ISFAttrib.h:43
NSString * attribDescription()
returns the description of the attribute (from the JSON blob) as an NSString
Definition: ISFAttrib.m:152
union ISFAttribVal ISFAttribVal
union describing a value for one of the listed attribute types
ISFAttribVal defaultVal()
returns a union describing this attribute's default val
Definition: ISFAttrib.m:198
no data, just an event. sends a 1 the next render after the event is received, a 0 any other time it'...
Definition: ISFAttrib.h:14
ISFAttribVal maxVal()
returns a union describing this attribute's max val
Definition: ISFAttrib.m:195
a long- the texture number (like GL_TEXTURE0) to pass to the shader
Definition: ISFAttrib.h:20
ISFAttribVal identityVal()
returns a union describing this attribute's identity val
Definition: ISFAttrib.m:201
a boolean choice, sends 1 or 0 to the shader
Definition: ISFAttrib.h:15
BOOL eventVal
if this is an event attribute, set eventVal to YES
Definition: ISFAttrib.h:27
NSMutableArray * labelArray()
only used if this is an ISFAT_Long-type attribute- returns an array containing labels (NSStrings) for...
Definition: ISFAttrib.m:204
long imageVal
not really used- you never pass images as values (images are passed as VVBuffers, as there are resour...
Definition: ISFAttrib.h:33
ISFAttribValType attribType()
returns an ISFAttribValType describing what type of attribute this is (what kind of value/input it is...
Definition: ISFAttrib.m:158
GLfloat point2DVal[2]
array of two floats, used if this is a point2D attribute
Definition: ISFAttrib.h:31
sends a 4 element vector representing an RGBA color
Definition: ISFAttrib.h:19
NSMutableArray * valArray()
only used if this is an ISFAT_Long-type attribute- returns an array containing values (NSNumbers) for...
Definition: ISFAttrib.m:207
ISFAttribVal minVal()
returns a union describing this attribute's min val
Definition: ISFAttrib.m:192
id userInfo()
returns the userInfo, an arbitrary id retained with this attribute
Definition: ISFAttrib.m:225
union describing a value for one of the listed attribute types
Definition: ISFAttrib.h:26
ISFAttribVal currentVal()
returns the current value of this attribute. not useful if this is an image attribute- if this is an ...
Definition: ISFAttrib.m:162
ISFAttribValType
enum describing the different types of attributes listed in the ISF spec
Definition: ISFAttrib.h:13
BOOL isFilterInputImage()
returns a YES if this attribute describes the default input for an image filter
Definition: ISFAttrib.m:215
sends a float
Definition: ISFAttrib.h:17
NSString * attribLabel()
returns the label of the attribute (from the JSON blob) as an NSString
Definition: ISFAttrib.m:155
BOOL boolVal
if this is a bool attribute, store the desired value here
Definition: ISFAttrib.h:28