diff options
author | Johnny Matthews <johnny.matthews@gmail.com> | 2004-03-08 05:49:50 +0300 |
---|---|---|
committer | Johnny Matthews <johnny.matthews@gmail.com> | 2004-03-08 05:49:50 +0300 |
commit | 9d68a346bb9ffc86661a253896687489b7e8116e (patch) | |
tree | 0917f76664c0bec51a0e25320c55ded97121eee6 /source/blender/src/cursors.c | |
parent | c7a71e4042638a7c02a55f638e5d7baab8ce5898 (diff) |
Initial commit for vertexloop select. I altered the version that is in tuhopuu to not take into consideration hidden verts.
This commit: selection code, loop cursor and menu option for 3d header committed.
Still to come will be activation code (perhaps shift-B rotation) after more discussion.
Diffstat (limited to 'source/blender/src/cursors.c')
-rw-r--r-- | source/blender/src/cursors.c | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/source/blender/src/cursors.c b/source/blender/src/cursors.c index ad512e407c3..1991f54c881 100644 --- a/source/blender/src/cursors.c +++ b/source/blender/src/cursors.c @@ -510,6 +510,83 @@ BEGIN_CURSOR_BLOCK BlenderCursor[BC_KNIFECURSOR]=&KnifeCursor; END_CURSOR_BLOCK + + /********************** Loop Select Cursor ***********************/ +BEGIN_CURSOR_BLOCK + +static char vloop_sbm[]={ + 0x00, 0x00, 0x7e, 0x00, 0x3e, 0x00, 0x1e, 0x00, + 0x0e, 0x00, 0x66, 0x60, 0x62, 0x6f, 0x00, 0x00, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x00, 0x00, 0x60, 0x60, 0x60, 0x6f, 0x00, 0x00, +}; + +static char vloop_smsk[]={ + 0xff, 0x01, 0xff, 0x00, 0x7f, 0x00, 0x3f, 0x00, + 0xff, 0xf0, 0xff, 0xff, 0xf7, 0xff, 0xf3, 0xf0, + 0x61, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, + 0xf0, 0xf0, 0xf0, 0xff, 0xf0, 0xff, 0xf0, 0xf0, +}; + + + +static char vloop_lbm[]={ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, + 0xfc, 0x0f, 0x00, 0x00, 0xfc, 0x0f, 0x00, 0x00, + 0xfc, 0x03, 0x00, 0x00, 0xfc, 0x03, 0x00, 0x00, + 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, + 0x3c, 0x3c, 0x00, 0x3c, 0x3c, 0x3c, 0x00, 0x3c, + 0x0c, 0x3c, 0xff, 0x3c, 0x0c, 0x3c, 0xff, 0x3c, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0c, + 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0c, + 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0c, + 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0c, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x3c, + 0x00, 0x3c, 0xff, 0x3c, 0x00, 0x3c, 0xff, 0x3c, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; + +static char vloop_lmsk[]={ + 0xff, 0xff, 0x03, 0x00, 0xff, 0xff, 0x03, 0x00, + 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, + 0xff, 0x3f, 0x00, 0x00, 0xff, 0x3f, 0x00, 0x00, + 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, + 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x3f, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, + 0x0f, 0xff, 0x00, 0xff, 0x0f, 0xff, 0x00, 0xff, + 0x03, 0x3c, 0x00, 0x3c, 0x03, 0x3c, 0x00, 0x3c, + 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x3c, + 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x3c, + 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x3c, + 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, + 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, + 0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, + 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, +}; + + + + static BCursor VLoopCursor = { + /*small*/ + vloop_sbm, vloop_smsk, + 16, 16, + 0, 0, + /*big*/ + vloop_lbm, vloop_lmsk, + 32,32, + 0, 0, + /*color*/ + BC_BLACK, BC_WHITE + }; + + BlenderCursor[BC_VLOOPCURSOR]=&VLoopCursor; + +END_CURSOR_BLOCK + /********************** Put the cursors in the array ***********************/ } |