Blender Git Loki

Git Commits -> Revision cb2c4bf

Revision cb2c4bf by Dalai Felinto (master)
April 14, 2017, 16:07 (GMT)
GPU Matrix API refactor: Stick to a single 4x4 stack for 2D and 3D

* Brings us closer to core profile, all matrices are working, and apart
from a problem with text drawing, Blender is working fine.

* Reduce the coding overhead of having to setup/teardown when
alternating between 2D and 3D drawing sessions.

* Gives us fewer modes and states we need to keep track of.

Unfortunatelly this also "rejects a fundamental change" the original
design was trying to make - that 2D is different from 3D and
deserves its own best implementation.

That said, it is still aligned with the function API design as
originally implemented (i.e., it still uses gpuTranslate2D, ...).

Finally, if you build with core profile and this patch you get:
https://developer.blender.org/F545352

[The text glitch is an unrelated issue].

Reviewers: merwin, sergey, brecht

Differential Revision: https://developer.blender.org/D2626

Commit Details:

Full Hash: cb2c4bfb74ca7f385bbd8d7c3445a49a2d1b7b8d
Parent Commit: e7c4edd
Lines Changed: +78, -302

6 Modified Paths:

/source/blender/draw/intern/draw_manager.c (+0, -4) (Diff)
/source/blender/draw/intern/draw_view.c (+0, -4) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+0, -4) (Diff)
/source/blender/gpu/GPU_matrix.h (+0, -16) (Diff)
/source/blender/gpu/intern/gpu_framebuffer.c (+0, -5) (Diff)
/source/blender/gpu/intern/gpu_matrix.c (+78, -269) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021