2.5
[blender-staging.git] / source / blender / editors / space_nla / space_nla.c
index 58f7b92e8721620ec65a3fc302b42e379cf8c177..1be1908b6819cdb48c03e7cd914236aa16cfb892 100644 (file)
@@ -63,7 +63,7 @@
 
 /* ******************** default callbacks for nla space ***************** */
 
-static SpaceLink *nla_new(void)
+static SpaceLink *nla_new(const bContext *C)
 {
        ARegion *ar;
        SpaceNla *snla;
@@ -142,6 +142,28 @@ static SpaceLink *nla_duplicate(SpaceLink *sl)
        return (SpaceLink *)snlan;
 }
 
+static void nla_channel_area_draw(const bContext *C, ARegion *ar)
+{
+       /* draw entirely, view changes should be handled here */
+       // SpaceNla *snla= (SpaceNla*)CTX_wm_space_data(C);
+       // View2D *v2d= &ar->v2d;
+       float col[3];
+       
+       /* clear and setup matrix */
+       UI_GetThemeColor3fv(TH_BACK, col);
+       glClearColor(col[0], col[1], col[2], 0.0);
+       glClear(GL_COLOR_BUFFER_BIT);
+       
+       // UI_view2d_view_ortho(C, v2d);
+       
+       /* data... */
+       
+       
+       /* reset view matrix */
+       //UI_view2d_view_restore(C);
+       
+       /* scrollers? */
+}
 
 
 /* add handlers, stuff you only do once or on area/region changes */
@@ -265,7 +287,7 @@ void ED_spacetype_nla(void)
        art->keymapflag= ED_KEYMAP_UI|ED_KEYMAP_VIEW2D;
        
        //art->init= nla_channel_area_init;
-       //art->draw= nla_channel_area_draw;
+       art->draw= nla_channel_area_draw;
        
        BLI_addhead(&st->regiontypes, art);