DRW: Add DRWView to improve different view handling
authorClément Foucault <foucault.clem@gmail.com>
Mon, 20 May 2019 16:01:42 +0000 (18:01 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 22 May 2019 11:29:04 +0000 (13:29 +0200)
commit45c085a1718eee2b5616dd2af7f37749f79ab593
tree55bfec4b2bfd658019ebe0b0d65dfdcb01901251
parent88a725eff8f42bcaa5921f35b988fa07d0e619e7
DRW: Add DRWView to improve different view handling

This will have multiple benefit.

TODO detail benefits (culling, more explicit, handling of clipping planes)

For now the view usage is wrapped to make changes needed more progressive.
source/blender/draw/engines/eevee/eevee_materials.c
source/blender/draw/intern/DRW_render.h
source/blender/draw/intern/draw_manager.c
source/blender/draw/intern/draw_manager.h
source/blender/draw/intern/draw_manager_data.c
source/blender/draw/intern/draw_manager_exec.c
source/blender/draw/modes/edit_mesh_mode.c
source/blender/draw/modes/shaders/common_view_lib.glsl
source/blender/gpu/GPU_viewport.h
source/blender/gpu/intern/gpu_viewport.c