2011-02-18 13:05:18 +00:00
|
|
|
/*
|
2002-10-12 11:37:38 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2008-01-07 19:13:47 +00:00
|
|
|
* of the License, or (at your option) any later version.
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
2012-02-17 18:59:41 +00:00
|
|
|
#ifndef __BKE_BLENDER_H__
|
|
|
|
#define __BKE_BLENDER_H__
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
* \ingroup bke
|
|
|
|
* \brief Blender util stuff
|
2011-02-18 13:05:18 +00:00
|
|
|
*/
|
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-03-17 00:18:20 +11:00
|
|
|
struct UserDef;
|
|
|
|
|
2016-04-24 22:42:41 +10:00
|
|
|
void BKE_blender_free(void);
|
2011-02-21 04:45:47 +00:00
|
|
|
|
2016-04-24 22:42:41 +10:00
|
|
|
void BKE_blender_globals_init(void);
|
|
|
|
void BKE_blender_globals_clear(void);
|
2017-03-17 00:18:20 +11:00
|
|
|
void BKE_blender_version_string(
|
|
|
|
char *version_str, size_t maxncpy,
|
|
|
|
short version, short subversion, bool v_prefix, bool include_subversion);
|
2011-02-21 04:45:47 +00:00
|
|
|
|
2017-11-23 03:10:58 +11:00
|
|
|
void BKE_blender_userdef_data_swap(struct UserDef *userdef_dst, struct UserDef *userdef_src);
|
|
|
|
void BKE_blender_userdef_data_set(struct UserDef *userdef);
|
|
|
|
void BKE_blender_userdef_data_set_and_free(struct UserDef *userdef);
|
2017-03-17 05:10:36 +11:00
|
|
|
|
2017-11-23 03:10:58 +11:00
|
|
|
void BKE_blender_userdef_app_template_data_swap(struct UserDef *userdef_dst, struct UserDef *userdef_src);
|
|
|
|
void BKE_blender_userdef_app_template_data_set(struct UserDef *userdef);
|
|
|
|
void BKE_blender_userdef_app_template_data_set_and_free(struct UserDef *userdef);
|
|
|
|
|
|
|
|
void BKE_blender_userdef_data_free(struct UserDef *userdef, bool clear_fonts);
|
2017-03-25 09:29:51 +11:00
|
|
|
|
2008-12-30 13:16:14 +00:00
|
|
|
/* set this callback when a UI is running */
|
2015-05-04 12:29:38 +10:00
|
|
|
void BKE_blender_callback_test_break_set(void (*func)(void));
|
2016-04-24 22:42:41 +10:00
|
|
|
int BKE_blender_test_break(void);
|
Holiday coding log :)
Nice formatted version (pictures soon):
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability
Short list of main changes:
- Transparent region option (over main region), added code to blend in/out such panels.
- Min size window now 640 x 480
- Fixed DPI for ui - lots of cleanup and changes everywhere. Icon image need correct size still, layer-in-use icon needs remake.
- Macbook retina support, use command line --no-native-pixels to disable it
- Timeline Marker label was drawing wrong
- Trackpad and magic mouse: supports zoom (hold ctrl)
- Fix for splash position: removed ghost function and made window size update after creation immediate
- Fast undo buffer save now adds UI as well. Could be checked for regular file save even...
Quit.blend and temp file saving use this now.
- Dixed filename in window on reading quit.blend or temp saves, and they now add a warning in window title: "(Recovered)"
- New Userpref option "Keep Session" - this always saves quit.blend, and loads on start.
This allows keeping UI and data without actual saves, until you actually save.
When you load startup.blend and quit, it recognises the quit.blend as a startup (no file name in header)
- Added 3D view copy/paste buffers (selected objects). Shortcuts ctrl-c, ctrl-v (OSX, cmd-c, cmd-v).
Coded partial file saving for it. Could be used for other purposes. Todo: use OS clipboards.
- User preferences (themes, keymaps, user settings) now can be saved as a separate file.
Old option is called "Save Startup File" the new one "Save User Settings".
To visualise this difference, the 'save startup file' button has been removed from user preferences window. That option is available as CTRL+U and in File menu still.
- OSX: fixed bug that stopped giving mouse events outside window.
This also fixes "Continuous Grab" for OSX. (error since 2009)
2012-12-12 18:58:11 +00:00
|
|
|
|
2016-06-24 10:05:18 +10:00
|
|
|
/* Blenders' own atexit (avoids leaking) */
|
|
|
|
void BKE_blender_atexit_register(void (*func)(void *user_data), void *user_data);
|
|
|
|
void BKE_blender_atexit_unregister(void (*func)(void *user_data), const void *user_data);
|
|
|
|
void BKE_blender_atexit(void);
|
|
|
|
|
2002-10-12 11:37:38 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2016-04-24 22:42:41 +10:00
|
|
|
#endif /* __BKE_BLENDER_H__ */
|