Convert ED_region_grid_draw to new immediate mode.
Part of T49043
Differential D2289
Use new immediate mode for ED_region_grid_draw Authored by Anthony Edlin (krash) on Oct 12 2016, 7:57 AM. Tags Subscribers None
Details
Diff Detail
Event TimelineComment Actions This is one of four different grid drawing functions in blender. The others are in view2d.c. This one is used for UV/image editor and clip editor when there is no image or clip. This is the last of the glBegin calls in area.c, but there remains a few glRect, fdrawline, and fdrawbox calls though. Comment Actions Good so far, comments below. What do you think we should do about fdrawline, fdrawbox, etc? Could provide more immHelper functions, but do we really need help drawing a single line?
Comment Actions It does seem silly to add helper functions to just draw a line. Plus I don't think it works that well with gawain as it is, having to pass in attribs and do all the setup outside the function anyways, what's the point in helper function then really.
Comment Actions Any update on this? It's been a little while and I want to finalize this either open or closed. Thanks. | |||||||||||||||||||||||||||