VuoBoolean * nodeInstanceInit(void) { VuoBoolean *lastValue = (VuoBoolean *)malloc(sizeof(VuoBoolean)); VuoRegister(lastValue, free); *lastValue = false; return lastValue; }
struct nodeInstanceData *nodeInstanceInit(void) { struct nodeInstanceData *state = (struct nodeInstanceData *) malloc(sizeof(struct nodeInstanceData)); VuoRegister(state, free); state->minSet = false; return state; }
bool * nodeInstanceInit() { bool *hasNewValueReceivedEvent = (bool *) malloc(sizeof(bool)); VuoRegister(hasNewValueReceivedEvent, free); *hasNewValueReceivedEvent = false; return hasNewValueReceivedEvent; }
VuoInteger * nodeInstanceInit() { VuoInteger *countState = (VuoInteger *) malloc(sizeof(VuoInteger)); VuoRegister(countState, free); *countState = 0; return countState; }
VuoBoolean * nodeInstanceInit(void) { VuoBoolean *state = (VuoBoolean *)malloc(sizeof(VuoBoolean)); VuoRegister(state, free); *state = false; return state; }
struct nodeInstanceData *nodeInstanceInit(void) { struct nodeInstanceData *state = (struct nodeInstanceData *) malloc(sizeof(struct nodeInstanceData)); VuoRegister(state, free); state->valueCount = 0; return state; }
struct nodeInstanceData *nodeInstanceInit() { struct nodeInstanceData *ctx = (struct nodeInstanceData *) malloc(sizeof(struct nodeInstanceData)); VuoRegister(ctx, free); ctx->first = true; return ctx; }
struct nodeInstanceData *nodeInstanceInit() { struct nodeInstanceData *ctx = (struct nodeInstanceData *) malloc(sizeof(struct nodeInstanceData)); VuoRegister(ctx, free); ctx->first = true; ctx->timeLastFrame = ctx->timeWhenTargetChanged = 0; return ctx; }
struct nodeInstanceData * nodeInstanceInit() { struct nodeInstanceData *context = (struct nodeInstanceData *)calloc(1,sizeof(struct nodeInstanceData)); VuoRegister(context, free); context->isTriggerStopped = true; context->typedListener = VuoKeyboard_make(); return context; }
struct nodeInstanceData * nodeInstanceInit(void) { struct nodeInstanceData *context = (struct nodeInstanceData *)calloc(1,sizeof(struct nodeInstanceData)); VuoRegister(context, free); context->window = VuoWindowText_make(); VuoRetain(context->window); return context; }
struct nodeInstanceData * nodeInstanceInit() { struct nodeInstanceData *context = (struct nodeInstanceData *)calloc(1,sizeof(struct nodeInstanceData)); context->isTriggerStopped = true; VuoRegister(context, free); context->movedListener = VuoMouse_make(); VuoRetain(context->movedListener); return context; }
/** * @ingroup VuoText * Creates a VuoText value from an unquoted string (unlike @c VuoText_valueFromString(), which expects a quoted string). */ VuoText VuoText_make(const char * unquotedString) { VuoText text; if (unquotedString) text = strdup(unquotedString); else text = strdup(""); VuoRegister(text, free); return text; }
/** * Allocates and registers the @c samples array. */ VuoAudioSamples VuoAudioSamples_alloc(VuoInteger sampleCount) { VuoAudioSamples value; value.sampleCount = sampleCount; value.samples = (VuoReal *)malloc(sizeof(VuoReal)*value.sampleCount); VuoRegister(value.samples, free); return value; }
struct nodeInstanceData *nodeInstanceInit(void) { struct nodeInstanceData *context = (struct nodeInstanceData *)malloc(sizeof(struct nodeInstanceData)); context->glContext = VuoGlContext_use(); context->sceneRenderer = VuoSceneRenderer_make(context->glContext); VuoRetain(context->sceneRenderer); VuoRegister(context, free); return context; }
struct nodeInstanceData * nodeInstanceInit(void) { struct nodeInstanceData * instance = (struct nodeInstanceData *)malloc(sizeof(struct nodeInstanceData)); VuoRegister(instance, free); instance->glContext = VuoGlContext_use(); instance->imageRenderer = VuoImageRenderer_make(instance->glContext); VuoRetain(instance->imageRenderer); return instance; }
struct nodeInstanceData * nodeInstanceInit(void) { struct nodeInstanceData * instance = (struct nodeInstanceData *)malloc(sizeof(struct nodeInstanceData)); VuoRegister(instance, free); instance->glContext = VuoGlContext_use(); instance->imageRenderer = VuoImageRenderer_make(instance->glContext); VuoRetain(instance->imageRenderer); instance->shader = VuoShader_makeUnlitColorShader( VuoColor_makeWithRGBA(1.,1.,1.,1.) ); VuoRetain(instance->shader); return instance; }
struct nodeInstanceData * nodeInstanceInit(void) { struct nodeInstanceData * instance = (struct nodeInstanceData *)malloc(sizeof(struct nodeInstanceData)); VuoRegister(instance, free); instance->glContext = VuoGlContext_use(); instance->imageRenderer = VuoImageRenderer_make(instance->glContext); VuoRetain(instance->imageRenderer); VuoList_VuoColor colors = VuoListCreate_VuoColor(); VuoRetain(colors); instance->shader = VuoShader_makeRadialGradientShader(colors, VuoPoint2d_make(0., 0.), 1., 1., 1.); VuoRetain(instance->shader); VuoRelease(colors); return instance; }
struct nodeInstanceData *nodeInstanceInit(void) { struct nodeInstanceData *context = (struct nodeInstanceData *)calloc(1,sizeof(struct nodeInstanceData)); VuoRegister(context, free); context->sceneRenderer = NULL; context->displayRefresh = VuoDisplayRefresh_make(context); VuoRetain(context->displayRefresh); context->window = VuoWindowOpenGl_make( true, vuo_scene_render_window_init, vuo_scene_render_window_resize, vuo_scene_render_window_draw, (void *)context ); VuoRetain(context->window); return context; }
struct nodeInstanceData *nodeInstanceInit(void) { struct nodeInstanceData *context = (struct nodeInstanceData *)calloc(1,sizeof(struct nodeInstanceData)); VuoRegister(context, free); return context; }