Blender Git Loki
Git Commits -> Revision db5ad6a
Revision db5ad6a by Mike Erwin (master) August 13, 2016, 22:14 (GMT) |
draw ortho grid with new immediate mode Work toward T49043, with a side of client vertex arrays. Not a straightforward port from glVertex to immVertex since Gawain needs to know how many vertices we'll be drawing *before* we start drawing. Fixed these not-so-great aspects of grid drawing: - coarse grids would draw atop some lines from the finer grids - visible axes would draw atop lines from coarse grid - axes were drawn even if they weren't in view - terrible misuse of vertex arrays - each line issued its own draw call New code draws each line exactly once. The entire grid is one draw call. Bonus: I had to / got to learn how the units system works! |
Commit Details:
Full Hash: db5ad6a79e77471d43bd5a0376f75a580accd1ef
Parent Commit: e36af2c
Lines Changed: +180, -94
1 Modified Path:
/source/blender/editors/space_view3d/view3d_draw.c (+180, -94) (Diff)