@@ -198,6 +198,19 @@ var WebGLPipeline = new Class({
198198 this . flushLocked = false ;
199199 } ,
200200
201+ addAttribute : function ( name , size , type , normalized , offset )
202+ {
203+ this . attributes . push ( {
204+ name : name ,
205+ size : size ,
206+ type : this . renderer . glFormats [ type ] ,
207+ normalized : normalized ,
208+ offset : offset
209+ } ) ;
210+
211+ return this ;
212+ } ,
213+
201214 /**
202215 * [description]
203216 *
@@ -381,6 +394,75 @@ var WebGLPipeline = new Class({
381394 delete this . vertexBuffer ;
382395 delete this . gl ;
383396
397+ return this ;
398+ } ,
399+
400+ setFloat1 : function ( name , x )
401+ {
402+ this . renderer . setFloat1 ( this . program , name , x ) ;
403+ return this ;
404+ } ,
405+
406+ setFloat2 : function ( name , x , y )
407+ {
408+
409+ this . renderer . setFloat2 ( this . program , name , x , y ) ;
410+ return this ;
411+ } ,
412+
413+ setFloat3 : function ( name , x , y , z )
414+ {
415+
416+ this . renderer . setFloat3 ( this . program , name , x , y , z ) ;
417+ return this ;
418+ } ,
419+
420+ setFloat4 : function ( name , x , y , z , w )
421+ {
422+
423+ this . renderer . setFloat4 ( this . program , name , x , y , z , w ) ;
424+ return this ;
425+ } ,
426+
427+ setInt1 : function ( name , x )
428+ {
429+ this . renderer . setInt1 ( this . program , name , x ) ;
430+ return this ;
431+ } ,
432+
433+ setInt2 : function ( name , x , y )
434+ {
435+ this . renderer . setInt2 ( this . program , name , x , y ) ;
436+ return this ;
437+ } ,
438+
439+ setInt3 : function ( name , x , y , z )
440+ {
441+ this . renderer . setInt3 ( this . program , name , x , y , z ) ;
442+ return this ;
443+ } ,
444+
445+ setInt4 : function ( name , x , y , z , w )
446+ {
447+ this . renderer . setInt4 ( this . program , name , x , y , z , w ) ;
448+ return this ;
449+ } ,
450+
451+ setMatrix2 : function ( name , transpose , matrix )
452+ {
453+ this . renderer . setMatrix2 ( this . program , name , transpose , matrix ) ;
454+ return this ;
455+ } ,
456+
457+ setMatrix3 : function ( name , transpose , matrix )
458+ {
459+ this . renderer . setMatrix3 ( this . program , name , transpose , matrix ) ;
460+ return this ;
461+ } ,
462+
463+ setMatrix4 : function ( name , transpose , matrix )
464+ {
465+ this . renderer . setMatrix4 ( this . program , name , transpose , matrix ) ;
384466 return this ;
385467 }
386468
0 commit comments