diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-19 13:55:07 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-19 13:55:07 +0300 |
commit | ec2e8d53801fad23e30294e28f1b83681d4d0f1f (patch) | |
tree | 7a73b33c1b5e8e6775b2b4791332653763e469ed /source/blender/makesdna | |
parent | 97c13508ff67ed95eb9a87f3173992115bcd3f82 (diff) |
Finally switched to porting UI stuff from tuhopuu!
This commit is based on the patch & cool design work of Matt. It includes
the new Lamp drawing style, and replaces the Object center dots with a
similar styled OpenGL drawn dot.
Important side-note is that removing the old glDrawPixels() for centers or
lamps will not only make Blender faster, but also prevents crashing on a
couple of cheaper 3d cards (as reported for S3 and Intel on-board cards)
Notes:
- The new default only draws Object centers when selected or active. If
you like to see them always, use the View Properties Panel. You can also
save that in the .B.blend
- The size for centers (and lamps) is in the User settings "View & Controls"
- Unselected Lamps, and their offset lines from zero Z, are drawn in a new
Theme color
Changes and additions in Matt's patch:
- Lamps and centers are drawn fixed size, in pixels. Also the 'sun' lamp
draws screen aligned now.
- Center dots now also draw in blue to denote Library linkage or to show
that an Object has been linked to other scenes.
- When objects are empty (no vertices) they will always draw a center dot.
Otherwise these objects would never be selectable anymore!
- Added theme setting for center size, and initialization
- Removed the old redundant code for drawing centers
- Cleanup of drawing routines, made center dots faster
- Started removing calls to glBlendFunc(). Regular alpha drawing should
become standard, and the (very) occasional exception should return this
to default after usage.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_view3d_types.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 6aac12ea622..0958b3142e8 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -79,6 +79,7 @@ typedef struct ThemeSpace { char grid[4]; char wire[4], select[4]; + char lamp[4]; char active[4], transform[4]; char vertex[4], vertex_select[4]; char edge[4], edge_select[4]; @@ -159,6 +160,7 @@ typedef struct UserDef { struct SolidLight light[3]; short tw_hotspot, tw_flag, tw_handlesize, tw_size; int textimeout, texcollectrate; + short obcenter_dia, pad1, pad2, pad3; } UserDef; extern UserDef U; /* from usiblender.c !!!! */ diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index b745a1f59e0..bf4f44a421d 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -113,7 +113,7 @@ typedef struct View3D { int lay, layact; short scenelock, around, camzoom, flag; - float lens, grid, gridview, pad, near, far; + float lens, grid, gridview, pixsize, near, far; float ofs[3], cursor[3]; short gridlines, viewbut; @@ -151,6 +151,7 @@ typedef struct View3D { #define V3D_ZBUF_SELECT 4096 #define V3D_GLOBAL_STATS 8192 #define V3D_CLIPPING 16384 +#define V3D_DRAW_CENTERS 32768 /* View3D->around */ #define V3D_CENTRE 0 |