Vuo 2.4.4
Loading...
Searching...
No Matches
VuoRunnerCocoa.h
Go to the documentation of this file.
1
10#pragma once
11
12#if defined(__OBJC__)
13
15#import <AppKit/AppKit.h>
16
18#define VuoRunner void
19#define VuoCompiler void
20#define VuoComposition void
21#define VuoProtocol void
22struct _VuoImage;
23typedef struct _VuoImage * VuoImage;
24typedef struct json_object json_object;
26
27#ifdef VUO_PCH_DEFAULT
29#define VUO_RUNNER_COCOA_DEPRECATED
30#else
32#define VUO_RUNNER_COCOA_DEPRECATED __attribute__((deprecated("Use @ref VuoRunner (a similar API, in C++) instead. The VuoRunnerCocoa Objective-C API is deprecated as of Vuo 2.4.3 and tentatively planned for removal in Vuo 3.0.0, since, as far as we know, it isn't currently being used by any apps. If you do still need the Objective-C API, please contact Team Vuo to tell us about your use-case.")))
33#endif
34
42VUO_RUNNER_COCOA_DEPRECATED @interface VuoRunnerCocoa : NSObject
43
51@property (readonly) NSString *compositionName VUO_RUNNER_COCOA_DEPRECATED;
52
60@property (readonly) NSString *compositionDescription VUO_RUNNER_COCOA_DEPRECATED;
61
69@property (readonly) NSString *compositionCopyright VUO_RUNNER_COCOA_DEPRECATED;
70
71+ (void)setGlobalRootContext:(CGLContextObj)context VUO_RUNNER_COCOA_DEPRECATED;
72+ (void)prepareModuleCaches VUO_RUNNER_COCOA_DEPRECATED;
73
74- (NSArray *)inputPorts VUO_RUNNER_COCOA_DEPRECATED;
75- (NSArray *)outputPorts VUO_RUNNER_COCOA_DEPRECATED;
76- (NSDictionary *)detailsForPort:(NSString *)portName VUO_RUNNER_COCOA_DEPRECATED;
77- (id)propertyListFromInputValues VUO_RUNNER_COCOA_DEPRECATED;
78- (BOOL)setInputValuesWithPropertyList:(id)propertyList VUO_RUNNER_COCOA_DEPRECATED;
79- (BOOL)setInputValues:(NSDictionary *)namesAndValues VUO_RUNNER_COCOA_DEPRECATED;
80- (BOOL)setInputJSON:(NSDictionary *)namesAndJSON VUO_RUNNER_COCOA_DEPRECATED;
81
82- (id)valueForOutputPort:(NSString *)portName VUO_RUNNER_COCOA_DEPRECATED;
83- (GLuint)glTextureWithTarget:(GLuint)target forOutputPort:(NSString *)portName outputPixelsWide:(NSUInteger *)outputPixelsWide pixelsHigh:(NSUInteger *)outputPixelsHigh VUO_RUNNER_COCOA_DEPRECATED;
84- (GLuint)glTextureFromProvider:(GLuint (^)(NSUInteger pixelsWide, NSUInteger pixelsHigh))provider forOutputPort:(NSString *)portName outputPixelsWide:(NSUInteger *)outputPixelsWide pixelsHigh:(NSUInteger *)outputPixelsHigh ioSurface:(IOSurfaceRef *)outputIOSurface VUO_RUNNER_COCOA_DEPRECATED;
85@end
86
92VUO_RUNNER_COCOA_DEPRECATED @interface VuoImageFilter : VuoRunnerCocoa
93+ (BOOL)canOpenComposition:(NSURL *)compositionURL VUO_RUNNER_COCOA_DEPRECATED;
94+ (BOOL)canOpenCompositionString:(NSString *)compositionString VUO_RUNNER_COCOA_DEPRECATED;
95- (id)initWithComposition:(NSURL *)compositionURL VUO_RUNNER_COCOA_DEPRECATED;
96- (id)initWithCompositionString:(NSString *)compositionString name:(NSString *)name sourcePath:(NSString *)sourcePath VUO_RUNNER_COCOA_DEPRECATED;
97- (NSImage *)filterNSImage:(NSImage *)image atTime:(NSTimeInterval)time VUO_RUNNER_COCOA_DEPRECATED;
98- (GLuint)filterGLTexture:(GLuint)textureName target:(GLuint)target pixelsWide:(NSUInteger)pixelsWide pixelsHigh:(NSUInteger)pixelsHigh atTime:(NSTimeInterval)time outputPixelsWide:(NSUInteger *)outputPixelsWide pixelsHigh:(NSUInteger *)outputPixelsHigh VUO_RUNNER_COCOA_DEPRECATED;
99- (GLuint)filterGLTexture:(GLuint)textureName target:(GLuint)target pixelsWide:(NSUInteger)pixelsWide pixelsHigh:(NSUInteger)pixelsHigh atTime:(NSTimeInterval)time withTextureProvider:(GLuint (^)(NSUInteger pixelsWide, NSUInteger pixelsHigh))provider outputPixelsWide:(NSUInteger *)outputPixelsWide pixelsHigh:(NSUInteger *)outputPixelsHigh ioSurface:(IOSurfaceRef *)outputIOSurface VUO_RUNNER_COCOA_DEPRECATED;
100@end
101
107VUO_RUNNER_COCOA_DEPRECATED @interface VuoImageGenerator : VuoRunnerCocoa
108+ (BOOL)canOpenComposition:(NSURL *)compositionURL VUO_RUNNER_COCOA_DEPRECATED;
109+ (BOOL)canOpenCompositionString:(NSString *)compositionString VUO_RUNNER_COCOA_DEPRECATED;
110- (id)initWithComposition:(NSURL *)compositionURL VUO_RUNNER_COCOA_DEPRECATED;
111- (id)initWithCompositionString:(NSString *)compositionString name:(NSString *)name sourcePath:(NSString *)sourcePath VUO_RUNNER_COCOA_DEPRECATED;
112- (NSImage *)generateNSImageWithSuggestedPixelsWide:(NSUInteger)suggestedPixelsWide pixelsHigh:(NSUInteger)suggestedPixelsHigh atTime:(NSTimeInterval)time VUO_RUNNER_COCOA_DEPRECATED;
113- (GLuint)generateGLTextureWithTarget:(GLuint)target suggestedPixelsWide:(NSUInteger)suggestedPixelsWide pixelsHigh:(NSUInteger)suggestedPixelsHigh atTime:(NSTimeInterval)time outputPixelsWide:(NSUInteger *)outputPixelsWide pixelsHigh:(NSUInteger *)outputPixelsHigh VUO_RUNNER_COCOA_DEPRECATED;
114- (GLuint)generateGLTextureWithProvider:(GLuint (^)(NSUInteger pixelsWide, NSUInteger pixelsHigh))provider suggestedPixelsWide:(NSUInteger)pixelsWide pixelsHigh:(NSUInteger)pixelsHigh atTime:(NSTimeInterval)time outputPixelsWide:(NSUInteger *)outputPixelsWide pixelsHigh:(NSUInteger *)outputPixelsHigh ioSurface:(IOSurfaceRef *)outputIOSurface VUO_RUNNER_COCOA_DEPRECATED;
115- (VuoImage)generateVuoImageWithSuggestedPixelsWide:(NSUInteger)suggestedPixelsWide pixelsHigh:(NSUInteger)suggestedPixelsHigh atTime:(NSTimeInterval)time VUO_RUNNER_COCOA_DEPRECATED;
116@end
117
118#undef VuoRunner
119#undef VuoCompiler
120#undef VuoComposition
121#undef VuoProtocol
122
123#endif // defined(__OBJC__) || defined(DOXYGEN)