661f5a24d1
DwM: Show face-mask overlay even with full-shading
...
Without this face selection would be used but invisible,
display this over fully shaded surface.
2017-07-14 16:45:47 +10:00
b4d053efc7
Gawain API naming refactor
...
Use consistent prefix for gawain API names as well as
some abbreviations to avoid over-long names, see: D2678
2017-06-19 20:18:04 +10:00
d41f98406f
DWM: minor changes to face-flag use
2017-05-17 17:27:20 +10:00
9995bd8532
DWM: use DRWContextState.obact
2017-05-17 16:08:36 +10:00
Dalai Felinto
8d9c484152
Implement overridable scene render settings
...
This add a new set of (possible) render settings that can be defined at
the scene level and overridable at the scene layer level.
Once we get workspaces we can either add workspace inbetween scene and
scene layer evaluation. Or to replace layer settings, to avoid extra
confusion to users.
An example of this setting is "samples", as implemented now for the clay
engine.
2017-05-05 18:08:24 +02:00
872d8993dd
Clean up weight/vertex painting code
...
Now passing selection state instead of colors for the wire/face mask
overlay thing. Also added masking indication on the faces in vertex
paint.
2017-05-05 15:53:37 +02:00
a7388d650a
Fix empty struct errors in paint_vertex_mode.c
2017-05-05 11:38:15 +02:00
3103b819aa
Vertex paint with draw manager
...
Reviewers: fclem
Subscribers: campbellbarton, dfelinto
Differential Revision: https://developer.blender.org/D2658
2017-05-04 20:05:59 +02:00
8f028ec840
Cleanup: rename struct for private engine data
...
Also remove from pass list (there were some duplicate unused entries).
2017-04-29 16:52:12 +10:00
f1fb605ec9
GPUFramebuffer: Allow to bind a specific texture mip to framebuffer.
2017-04-18 12:52:29 +02:00
64660b902c
Use 'safe' macros for common free operation
...
Same as MEM_SAFE_FREE macro,
checks for NULL, runs free then sets NULL.
Blocks of code that do this many times are noisy and likely
errors here wouldn't be noticed immediately.
Also NULL's static vars which were being left set.
2017-04-13 13:37:27 +10:00
0c9a2def8b
Draw Engine: remove hard coded limit on array sizes
...
This removes MAX_STORAGE, MAX_BUFFERS, MAX_TEXTURES, MAX_PASSES limits.
Actual memory saving isn't so important, it just means we don't need to
manually bump these based on changes to engines.
2017-04-12 19:51:14 +10:00
cc0c5dbd91
Cleanup: use DRW_cache_mesh prefix w/ mesh objects
...
Avoid confusion for non mesh types where verts/wire/surface might apply.
Other object types use this convention already.
2017-04-12 18:11:10 +10:00
0811d089b4
Draw Manager: Use Texture flag in Framebuffer init.
2017-04-10 12:36:32 +02:00
4a8aaab0b2
Draw Manager: Use engine type pointer instead of engine name.
...
Faster search
2017-04-03 21:52:42 +02:00
deda6a43fc
Draw Engines: Make g_data struct part of the viewport storage
...
This makes viewport cache construction independant from each others and will allow multithread down the road.
2017-03-27 14:01:47 +02:00
e54d8eeab2
Draw Manager: Make Viewport Data passed by the manager call.
2017-03-27 14:01:47 +02:00
fc72a2ff4b
Draw module: code style, encapsulate static vars
2017-03-20 15:19:03 +01:00
91837cd5b0
Cleanup: warnings
2017-03-14 18:40:23 +11:00
ecce1fabca
Mode Engines: Fix MSVC compilation error.
2017-03-13 11:39:41 +01:00
9c6b9e889c
Clay Engine: Mode engine templates.
...
Standard Engine layout easy to extend.
Note that most of the work will also happen in mesh_render.c to create geometry batches.
2017-03-12 21:16:03 +01:00