diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-08-26 08:12:44 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-08-26 08:12:44 +0300 |
commit | 42bbfe7f0a1f357781859ee3a2819f00e2c54f4c (patch) | |
tree | 728fbad4a5fecb6b89724f38ebc2ac4a718aaacc /source/blender/gpu/GPU_immediate.h | |
parent | 060bf1bd288dba99f9214099315e4fe64818c56c (diff) |
OpenGL: draw grid floor & axes with new immediate mode
Significant rewrite with some improvements.
Maintain visual hierarchy of the grid:
- emphasized lines draw atop normal lines
- axes draw atop all lines (same as before)
Draw axes only once, not twice.
Return early if nothing to draw.
Single draw call for the default case (grid floor with X and Y axes).
Z axis needs a second draw call because it uses 3D coordinates.
Part of T49043
Diffstat (limited to 'source/blender/gpu/GPU_immediate.h')
0 files changed, 0 insertions, 0 deletions