Ejemplo n.º 1
0
int main(void)
{	
	//long attrflags;
	void *p, *q;
	
	jit_tml_fluid2_init();	
	setup((void*)&max_jit_tml_fluid2_class,
			(method)max_jit_tml_fluid2_new,
			(method)max_jit_tml_fluid2_free, (short)sizeof(t_max_jit_tml_fluid2), 
		0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_jit_tml_fluid2,obex));
	q = jit_class_findbyname(gensym("jit_tml_fluid2"));    
    	max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_BANG|MAX_JIT_MOP_FLAGS_OWN_OUTPUTMATRIX);
    	max_jit_classex_mop_mproc(p, q, max_jit_tml_fluid2_mproc); // custom mproc
	max_jit_classex_standard_wrap(p,q,0); 	

		addmess((method)max_jit_tml_fluid2_assist, "assist", A_CANT,0);
    	
    	// bang method (accept bang)
    	addbang((method)max_jit_tml_fluid2_bang);
    
    	ps_getmap = gensym("getmap");
	
	return 0;
}
Ejemplo n.º 2
0
void main(void)
{	
	void *p,*q,*attr;
	long attrflags;
	
	setup(&max_jit_op_class, max_jit_op_new, (method)max_jit_op_free, (short)sizeof(t_max_jit_op), 
		0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_jit_op,obex));
	q = jit_class_findbyname(gensym("jit_op"));    
    
    addmess((method)max_jit_op_jit_matrix, "jit_matrix", A_GIMME, 0);
    max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_JIT_MATRIX); 		
    max_jit_classex_mop_mproc(p,q,max_jit_op_mproc); 	//custom mproc
    max_jit_classex_standard_wrap(p,q,0);
        
    attrflags = JIT_ATTR_GET_DEFER_LOW | JIT_ATTR_SET_USURP_LOW ;
	attr = jit_object_new(_jit_sym_jit_attr_offset_array,"val",_jit_sym_atom,JIT_MATRIX_MAX_PLANECOUNT,attrflags,
		(method)0,(method)max_jit_op_val,calcoffset(t_max_jit_op,valcount),calcoffset(t_max_jit_op,val));
	max_jit_classex_addattr(p,attr);
 	
 	addint((method)max_jit_op_int);
 	addfloat((method)max_jit_op_float);
	addmess((method)max_jit_op_list, "list", A_GIMME, 0);
    addmess((method)max_jit_mop_assist, "assist", A_CANT,0);  
}
void C74_EXPORT main(void)
{
	void *p,*q,*attr;
	long attrflags;

	xray_jit_levelsetseg_init();
	setup((t_messlist **)&max_xray_jit_levelsetseg_class, max_xray_jit_levelsetseg_new, (method)max_xray_jit_levelsetseg_free, (short)sizeof(t_max_xray_jit_levelsetseg),
		0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_xray_jit_levelsetseg,obex));
	q = jit_class_findbyname(gensym("xray_jit_levelsetseg"));

	addmess((method)max_xray_jit_levelsetseg_jit_matrix, "jit_matrix", A_GIMME, 0);
    max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_JIT_MATRIX);
    max_jit_classex_mop_mproc(p,q,max_xray_jit_levelsetseg_mproc); 	//custom mproc
    max_jit_classex_standard_wrap(p,q,0);

    attrflags = JIT_ATTR_GET_DEFER_LOW | JIT_ATTR_SET_USURP_LOW ;
	attr = jit_object_new(_jit_sym_jit_attr_offset,"val",_jit_sym_float32,attrflags,
		(method)0,(method)max_xray_jit_levelsetseg_val,calcoffset(t_max_xray_jit_levelsetseg,val),calcoffset(t_max_xray_jit_levelsetseg,val));
	max_jit_classex_addattr(p,attr);

    addfloat((method)max_xray_jit_levelsetseg_float);
    addmess((method)max_jit_mop_assist, "assist", A_CANT,0);
}
void main(void)
{	
	void *p,*q;
	
	jit_human_init();	
	setup(&max_jit_human_class, max_jit_human_new, (method)max_jit_human_free, (short)sizeof(t_max_jit_human), 
		0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_jit_human,obex));
	q = jit_class_findbyname(gensym("jit_human"));    
//    max_jit_classex_mop_wrap(p,q,0); 		
    max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_BANG|MAX_JIT_MOP_FLAGS_OWN_OUTPUTMATRIX); //custom bang/outputmatrix 		
    max_jit_classex_mop_mproc(p,q,max_jit_human_mproc); 	//custom mproc
    max_jit_classex_standard_wrap(p,q,0); 	
    addmess((method)max_jit_human_assist, "assist", A_CANT,0);  

	ps_getstate = gensym("getstate");
	ps_getbox_coords = gensym("getbox_coords");
	ps_getarm_left = gensym("getarm_left");
	ps_getarm_right = gensym("getarm_right");
	ps_gethead = gensym("gethead");
	ps_getfoot_left = gensym("getfoot_left");
	ps_getfoot_right = gensym("getfoot_right");


	post("a-jit.human  - andrŽ sier - "__DATE__"  "__TIME__);
}
Ejemplo n.º 5
0
void ext_main(void *r)
{
	void *p,*q;

	jit_submatrix_init();
	setup(&max_jit_submatrix_class, max_jit_submatrix_new, (method)max_jit_submatrix_free, (short)sizeof(t_max_jit_submatrix),
		  0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_jit_submatrix,obex));
	q = jit_class_findbyname(gensym("jit_submatrix"));
	max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_ALL & ~MAX_JIT_MOP_FLAGS_OWN_JIT_MATRIX);
	max_jit_classex_mop_mproc(p,q,max_jit_submatrix_mproc); 	//custom mproc
	max_jit_classex_standard_wrap(p,q,0); 	//getattributes/dumpout/maxjitclassaddmethods/etc
	addmess((method)max_jit_mop_assist, "assist", A_CANT,0);  //standard mop assist fn
}
Ejemplo n.º 6
0
void C74_EXPORT main(void)
{	
	void *p,*q;
	
	setup(&max_jit_la_diagproduct_class, max_jit_la_diagproduct_new, (method)max_jit_la_diagproduct_free, (short)sizeof(t_max_jit_la_diagproduct), 
		0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_jit_la_diagproduct,obex));
	q = jit_class_findbyname(gensym("jit_la_diagproduct"));    
    max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_BANG|MAX_JIT_MOP_FLAGS_OWN_OUTPUTMATRIX); //custom bang/outputmatrix 		
    max_jit_classex_mop_mproc(p,q,max_jit_la_diagproduct_mproc); 	//custom mproc
    max_jit_classex_standard_wrap(p,q,0); 	
 	addmess((method)max_jit_la_diagproduct_assist,			"assist",			A_CANT,0);

	ps_getresult	= gensym("getresult");
}
Ejemplo n.º 7
0
void
main(void)
	
	{
	const long kAttrFlags = MAX_JIT_MOP_FLAGS_OWN_OUTPUTMATRIX
								| MAX_JIT_MOP_FLAGS_OWN_BANG;
	
	voidPtr	p,									// Have to guess about what these two do
			q;									// Not much is documented in the Jitter SDK
	
	LITTER_CHECKTIMEOUT(kClassName);
	
	PenizeJitInit();
	
	// Standard Max setup() call
	setup(	&gPenizeMaxClass,					// Pointer to our class definition
			(method) PenizeNewMaxShell,			// Instance creation function
			(method) PenizeFreeMaxShell,		// Custom deallocation function
			(short) sizeof(msobPenize),			// Class object size
			NIL,								// No menu function
			A_GIMME,							// Jitter objects always parse their own
			0);									// arguments
	
	// Jitter Magic... 
	p	= max_jit_classex_setup(
					calcoffset(msobPenize, jitObEx)
					);
	q	= jit_class_findbyname(
					gensym((char*) kMaxClassName)
					);    
    max_jit_classex_mop_wrap(p, q, kAttrFlags); 		
    max_jit_classex_mop_mproc(p, q, PenizeMaxMProc);	// Custom MProc
    max_jit_classex_standard_wrap(p, q, 0); 	
	
	// Add messages...
	LITTER_TIMEBOMB addbang	((method) PenizeBang);
	addmess	((method) PenizeTattle,	"dblclick",	A_CANT, 0);
	addmess	((method) PenizeTattle,	"tattle",	A_NOTHING);
	addmess	((method) PenizeAssist,	"assist",	A_CANT, 0);
	addmess	((method) PenizeInfo,	"info",		A_CANT, 0);
	
	// Define global symbols
	gSymGetDiffs	= gensym("getdiffs");
	
	// Initialize Litter Library
	LitterInit(kMaxClassName, 0);
	}
Ejemplo n.º 8
0
void main(void)
{	
	void *p,*q;
	
	jit_str_op_init();	
	setup(&max_jit_str_op_class, max_jit_str_op_new, (method)max_jit_str_op_free, (short)sizeof(t_max_jit_str_op), 
		0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_jit_str_op,obex));
	q = jit_class_findbyname(gensym("jit_str_op"));    
    max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_JIT_MATRIX);
    max_jit_classex_mop_mproc(p,q,max_jit_str_op_mproc);
    max_jit_classex_standard_wrap(p,q,0); 	

	addmess((method)max_jit_str_op_jit_matrix, "jit_matrix", A_GIMME,0);	
    addmess((method)max_jit_mop_assist, "assist", A_CANT,0);  
}
Ejemplo n.º 9
0
void main(void)
{	
	void *p,*q;
	
	jit_findbounds_init();
	setup(&max_jit_findbounds_class, max_jit_findbounds_new, (method)max_jit_findbounds_free, (short)sizeof(t_max_jit_findbounds), 
		0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_jit_findbounds,obex));
	q = jit_class_findbyname(gensym("jit_findbounds"));    
    max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_BANG|MAX_JIT_MOP_FLAGS_OWN_OUTPUTMATRIX); //custom bang/outputmatrix 		
    max_jit_classex_mop_mproc(p,q,max_jit_findbounds_mproc); 	//custom mproc
    max_jit_classex_standard_wrap(p,q,0); 	
 	addmess((method)max_jit_findbounds_assist,			"assist",			A_CANT,0);

	ps_getboundmin	= gensym("getboundmin");
	ps_getboundmax	= gensym("getboundmax");
}
Ejemplo n.º 10
0
void C74_EXPORT main(void)
{	
	void *p,*q;
	
	jit_3m_init();	
	setup((t_messlist **)&max_jit_3m_class, (method)max_jit_3m_new, (method)max_jit_3m_free, (short)sizeof(t_max_jit_3m), 
		0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_jit_3m,obex));
	q = jit_class_findbyname(gensym("jit_3m"));    
    max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_BANG|MAX_JIT_MOP_FLAGS_OWN_OUTPUTMATRIX); //custom bang/outputmatrix 		
    max_jit_classex_mop_mproc(p,q,max_jit_3m_mproc); 	//custom mproc
    max_jit_classex_standard_wrap(p,q,0); 	
 	addmess((method)max_jit_3m_assist,			"assist",			A_CANT,0);
 	addbang((method)max_jit_3m_bang);

	ps_getmin	= gensym("getmin");
	ps_getmean	= gensym("getmean");
	ps_getmax	= gensym("getmax");
}
void main(void)
{	
	long attrflags;
	void *p, *q;
	
	jit_ys_pixelweightmat_init();	
	setup(&max_jit_ys_pixelweightmat_class, max_jit_ys_pixelweightmat_new, (method)max_jit_ys_pixelweightmat_free, (short)sizeof(t_max_jit_ys_pixelweightmat), 
		0L, A_GIMME, 0);

	p = max_jit_classex_setup(calcoffset(t_max_jit_ys_pixelweightmat,obex));
	q = jit_class_findbyname(gensym("jit_ys_pixelweightmat"));    
    	max_jit_classex_mop_wrap(p,q,MAX_JIT_MOP_FLAGS_OWN_BANG|MAX_JIT_MOP_FLAGS_OWN_OUTPUTMATRIX);
    	max_jit_classex_mop_mproc(p, q, max_jit_ys_pixelweightmat_mproc); // custom mproc
	max_jit_classex_standard_wrap(p,q,0); 	

    	addmess((method)max_jit_mop_assist, "assist", A_CANT,0);
    	
    	// bang method (accept bang)
    	addbang((method)max_jit_ys_pixelweightmat_bang);
    
    	ps_getmap = gensym("getmap");
}