85ca3156fc
Cleanup: typedef for empty list
...
Without this the intent isn't clear.
2017-05-03 05:21:55 +10: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
08142dde2c
Hide object center and other info when drawing sets
2017-04-28 23:52:02 +10:00
a680bcd13b
Draw Manager: basic text overlay support
2017-04-28 04:54:04 +10:00
a4b97390d9
Fix basic pose-mode select drawing
2017-04-27 16:57:11 +10:00
edd1512741
Draw Manager: cleanup, use doxy categories
...
Also add DRW_state for accessing current draw state.
2017-04-27 02:04:56 +10:00
7631f4bf6d
Draw Manager: use engine drawing for depth drawing
2017-04-27 01:43:05 +10:00
d8e83516e2
Draw Manager: support for selection using engines
...
Needed to remove old draw code entirely.
Object mode selection support, pose and armature still need to be added.
Enabled when 'use_modern_viewport' is set.
2017-04-26 04:59:18 +10:00
acf07e7366
Draw Manager: store context vars per draw
...
Was performing context access per object for scene, region etc.
While not very slow they don't change during drawing so cache in a struct.
This also makes it possible to draw in views besides the current context.
2017-04-26 00:35:08 +10:00
23c4f01fb4
Draw Manager: hide 2d curves normals
2017-04-23 03:28:53 +10:00
36b29c05db
Cleanup: use DRW_shgroup_call prefix for dynamic and fixed
...
More useful for completion since an 'shgroup_dynamic' is not a thing
(would be confusing if other dynamic functions are added).
2017-04-22 15:53:11 +10:00
3e7968c35f
Draw Manager: don't assign bool from flags
...
Some MSVC versions don't support this.
2017-04-21 18:43:54 +10:00
3a75e84376
Draw Manager: edit-mode 3d text drawing
...
Draw cursor and selection, also support for fast-display.
2017-04-21 17:58:18 +10:00
c4780ee459
Cleanup: redundant struct qualifier & long lines
2017-04-21 04:40:44 +10:00
d21a4407dc
Cleanup: rename & change order of declaration
2017-04-21 04:29:33 +10:00
677aa36632
Curve: draw curve/surface/text geometry
...
Note that displists will be removed, but this wont be hard to replace.
Signed-off-by: Campbell Barton <ideasman42@gmail.com >
2017-04-21 04:23:28 +10:00
84c464a4b8
Use theme vertex size for lattice & curve vertices
2017-04-20 21:16:37 +10:00
72efee07ff
Draw Manager: draw curve normals
2017-04-20 05:33:52 +10:00
896d62d1c2
Fix error disabling curve handles
2017-04-20 04:53:55 +10:00
cdba73c8fa
Draw Manager: curve support
...
Draws the curve centerline and editmode verts/handles.
Handle theme colors, and normal display still need adding.
2017-04-20 00:38:44 +10:00
ce6b01f203
Cleanup: move theme-id to shader-group into funcs
2017-04-20 00:26:44 +10:00
76ecbd38f2
Edit Mode Engine: Fix shader compilation on AMD. Also fix Bweight display.
2017-04-19 11:09:07 +02:00
f1fb605ec9
GPUFramebuffer: Allow to bind a specific texture mip to framebuffer.
2017-04-18 12:52:29 +02:00
608b711beb
Cleanup: explicit names for return arguments and position last
2017-04-15 14:07:57 +10:00
02273441dc
Draw Manager: lattice editmode drawing
2017-04-14 04:34:12 +10:00
2128e26d86
Draw Manager: initial lattice support
...
Still misses support for edit-mode selection & weight drawing.
2017-04-13 22:09:59 +10:00
b96777b3e1
Cleanup: minor changes to logic for outline drawing
...
Use brace placement following code-style too.
2017-04-13 21:46:18 +10:00
c0a9e388b3
GLSL: rename edit_overlay -> edit_mesh_overlay
...
Avoid confusion with overlays with non-mesh types
2017-04-13 14:13:46 +10: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
e78412c905
Cleanup: use const pointer for view access API
2017-04-12 12:10:01 +10:00
95dd478e47
Cleanup: line length
...
Avoid right-shift
2017-04-12 12:05:11 +10:00
e8ddd258ef
Correct own error in adding colors
...
Make comment regarding GLSL more clear.
2017-04-12 00:56:19 +10:00
9d00b7680f
Uncomment deselected center point color
2017-04-11 15:48:54 +10:00
e199eae39d
Draw Manager: Add center-color for linked/multiuser objects
...
Draws a blue center circle for library objects.
As with regular drawing, this uses a hard-coded color.
2017-04-11 14:05:39 +10:00
016790b3b0
Object Engine: Fix Selected Group Objects color.
2017-04-10 22:23:50 +02:00
4f063dc4dd
Object Engine: Ported Force Field object drawing.
2017-04-10 22:23:50 +02:00
0811d089b4
Draw Manager: Use Texture flag in Framebuffer init.
2017-04-10 12:36:32 +02:00
928f5df1b4
Cleanup: glsl indentation
2017-04-09 16:36:39 +10:00
ccaa21df6d
Infinite Grid: View angle fade
...
and show Z axis in special persp views
2017-04-03 21:52:42 +02:00
4a8aaab0b2
Draw Manager: Use engine type pointer instead of engine name.
...
Faster search
2017-04-03 21:52:42 +02:00
ccd8353d58
Object Engine: Fix multi user lamp data display bug.
...
Objects that were using the same lamp data were having the same display matrices.
This is fixed by allowing engine to store a memory block inside the object itself.
2017-04-03 21:52:42 +02:00
Dalai Felinto
ce3c7e8ff5
Layers: use IDProperty and override collection properties system
...
First this replace a custom data struct with IDProperty, and use
IDProperty group merge and copying functions. Which means that a collection
property setting is only created if necessary.
This implements the "Layer Collection settings" override system, as
suggested in the "Override Manifesto" document.
The core is working, with Scene, LayerCollection and Object using a
single IDProperty to store all the render settings data. Next step is to
migrate this to depsgraph.
Note: Clay engine "ssao_samples" was hardcoded to 32 for now. It will come
back as part of "Workspace Settings" later.
Many thanks for Bastien Montagne for the help with the UI template
nightmare ;)
Differential Revision: https://developer.blender.org/D2563
2017-03-30 17:01:23 +02:00
4d3d10f625
New Outline: Fix warning.
2017-03-28 00:06:14 +02:00
21d0f71963
New Outline: Fix ATI compile error.
2017-03-28 00:05:41 +02:00
6435983876
New Outline: make it countour the screen.
2017-03-27 16:36:13 +02:00
0396a15cbb
New Outlines: fix upper edge
2017-03-27 14:09:55 +02:00
b33693cb44
New Grid: small modification
...
Fix wrong coord picked when display only one axis.
Small optimizations here and there.
2017-03-27 14:01:47 +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