Blender Git Loki

Git Commits -> Revision 18d49a8

Revision 18d49a8 by Mike Erwin (master)
September 6, 2016, 20:56 (GMT)
Gawain: add immBeginAtMost

immBegin requires us to know how many vertices will be drawn. Most times this is fine, but sometimes it can be tricky. Do we make the effort to count everything in one pass, then draw it in a second?

immBeginAtMost makes this simple. Example: I'll draw at most 100 vertices. Supply only 6 verts and it draws only 6.

Any unused space is reclaimed and given to the next immBegin.

Commit Details:

Full Hash: 18d49a8283f2490b0751798685770533cc814d29
Parent Commit: 031c5ba
Lines Changed: +54, -22

2 Modified Paths:

/source/blender/gpu/GPU_immediate.h (+2, -1) (Diff)
/source/blender/gpu/intern/gpu_immediate.c (+52, -21) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021