Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-11-19 13:55:07 +0300
committerTon Roosendaal <ton@blender.org>2005-11-19 13:55:07 +0300
commitec2e8d53801fad23e30294e28f1b83681d4d0f1f (patch)
tree7a73b33c1b5e8e6775b2b4791332653763e469ed /source/blender/include/BIF_resources.h
parent97c13508ff67ed95eb9a87f3173992115bcd3f82 (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/include/BIF_resources.h')
-rw-r--r--source/blender/include/BIF_resources.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/include/BIF_resources.h b/source/blender/include/BIF_resources.h
index f7a075e55b1..8df1117c6d4 100644
--- a/source/blender/include/BIF_resources.h
+++ b/source/blender/include/BIF_resources.h
@@ -450,7 +450,9 @@ enum {
TH_BONE_POSE,
TH_STRIP,
- TH_STRIP_SELECT
+ TH_STRIP_SELECT,
+
+ TH_LAMP
};
/* XXX WARNING: previous is saved in file, so do not change order! */