diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-08-26 16:01:15 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-08-26 16:01:15 +0400 |
commit | 043ad7bc8e8e32161563798268727c1f42c9b3d6 (patch) | |
tree | 654a3620f6ed9004f52d874cb9db223255925490 /source/blender/editors/include/ED_gpencil.h | |
parent | adcb21b1f4b079f892e259446bab32c1bc74304f (diff) |
2.5 - Grease Pencil Version 2 (Crude rebirth)
This commit is the start of the new Grease Pencil implementation. I've just ported the old code to make it work with operators, and to store its data in Grease-Pencil datablocks.
However, this is currently still really buggy, with only the barebones of the drawing/creation tools restored (no UI panels, no options). To use (not recommended), use D+S+move_mouse (and click when finished) for now. There are some rather serious event handling errors going on here...
Diffstat (limited to 'source/blender/editors/include/ED_gpencil.h')
-rw-r--r-- | source/blender/editors/include/ED_gpencil.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h index ad8124c89d7..c1e37ce2e81 100644 --- a/source/blender/editors/include/ED_gpencil.h +++ b/source/blender/editors/include/ED_gpencil.h @@ -41,7 +41,7 @@ struct bGPDframe; struct bGPdata; struct uiBlock; struct ImBuf; - +struct wmWindowManager; /* ------------- Grease-Pencil Helpers -------------- */ @@ -52,9 +52,19 @@ typedef struct tGPspoint { float pressure; /* pressure of tablet at this point */ } tGPspoint; +/* ----------- Grease Pencil New Tools ------------- */ + +struct bGPdata *gpencil_data_getactive(struct bContext *C); + +/* ----------- Grease Pencil Operators ------------- */ + +void gpencil_common_keymap(struct wmWindowManager *wm, ListBase *keymap); + +void ED_operatortypes_gpencil(void); + /* ------------ Grease-Pencil Depreceated Stuff ------------------ */ -struct bGPdata *gpencil_data_getactive(struct ScrArea *sa); +//struct bGPdata *gpencil_data_getactive(struct ScrArea *sa); short gpencil_data_setactive(struct ScrArea *sa, struct bGPdata *gpd); struct ScrArea *gpencil_data_findowner(struct bGPdata *gpd); |