|
Blender
V2.59
|
blender format spesific macros More...
Go to the source code of this file.
Defines | |
| #define | FILE_MAXDIR 160 |
| #define | FILE_MAXFILE 80 |
| #define | FILE_MAX 240 |
| #define | O_BINARY 0 |
| #define | MAKE_ID(a, b, c, d) ( (int)(d)<<24 | (int)(c)<<16 | (b)<<8 | (a) ) |
| #define | ID_NEW(a) if( (a) && (a)->id.newid ) (a)= (void *)(a)->id.newid |
| #define | DATA MAKE_ID('D','A','T','A') |
| #define | GLOB MAKE_ID('G','L','O','B') |
| #define | DNA1 MAKE_ID('D','N','A','1') |
| #define | TEST MAKE_ID('T','E','S','T') |
| #define | REND MAKE_ID('R','E','N','D') |
| #define | USER MAKE_ID('U','S','E','R') |
| #define | ENDB MAKE_ID('E','N','D','B') |
| #define | BTST(a, b) ( ( (a) & 1<<(b) )!=0 ) |
| #define | BNTST(a, b) ( ( (a) & 1<<(b) )==0 ) |
| #define | BTST2(a, b, c) ( BTST( (a), (b) ) || BTST( (a), (c) ) ) |
| #define | BSET(a, b) ( (a) | 1<<(b) ) |
| #define | BCLR(a, b) ( (a) & ~(1<<(b)) ) |
| #define | BROW(min, max) (((max)>=31? 0xFFFFFFFF: (1<<(max+1))-1) - ((min)? ((1<<(min))-1):0) ) |
| #define | BMEMSET(mem, val, size) {unsigned int _i; char *_c = (char*) mem; for (_i=0; _i<size; _i++) *_c++ = val;} |
blender format spesific macros
Definition in file BKE_utildefines.h.
| #define BCLR | ( | a, | |
| b | |||
| ) | ( (a) & ~(1<<(b)) ) |
Definition at line 81 of file BKE_utildefines.h.
Referenced by ui_apply_but_TOG(), and ui_apply_but_TOG3().
| #define BMEMSET | ( | mem, | |
| val, | |||
| size | |||
| ) | {unsigned int _i; char *_c = (char*) mem; for (_i=0; _i<size; _i++) *_c++ = val;} |
Definition at line 85 of file BKE_utildefines.h.
| #define BNTST | ( | a, | |
| b | |||
| ) | ( ( (a) & 1<<(b) )==0 ) |
Definition at line 78 of file BKE_utildefines.h.
| #define BROW | ( | min, | |
| max | |||
| ) | (((max)>=31? 0xFFFFFFFF: (1<<(max+1))-1) - ((min)? ((1<<(min))-1):0) ) |
Definition at line 83 of file BKE_utildefines.h.
| #define BSET | ( | a, | |
| b | |||
| ) | ( (a) | 1<<(b) ) |
Definition at line 80 of file BKE_utildefines.h.
Referenced by direct_link_nodetree(), node_browse_text_cb(), node_dynamic_update_cb(), ntreeInitTypes(), ui_apply_but_TOG(), and ui_apply_but_TOG3().
| #define BTST | ( | a, | |
| b | |||
| ) | ( ( (a) & 1<<(b) )!=0 ) |
Definition at line 77 of file BKE_utildefines.h.
Referenced by node_dynamic_update_cb(), node_shader_buts_dynamic(), ui_apply_but_TOG(), ui_apply_but_TOG3(), ui_is_but_sel(), and widget_draw_text_icon().
| #define BTST2 | ( | a, | |
| b, | |||
| c | |||
| ) | ( BTST( (a), (b) ) || BTST( (a), (c) ) ) |
Definition at line 79 of file BKE_utildefines.h.
| #define DATA MAKE_ID('D','A','T','A') |
Definition at line 66 of file BKE_utildefines.h.
Referenced by BLO_blendhandle_get_previews(), blo_read_file_internal(), get_bhead(), IDP_WriteArray(), IDP_WriteIDPArray(), IDP_WriteProperty(), IDP_WriteString(), read_data_into_oldnewmap(), write_actions(), write_actuators(), write_animdata(), write_boid_state(), write_bone(), write_brushes(), write_constraints(), write_controllers(), write_curvemapping(), write_curves(), write_customdata(), write_defgroups(), write_dverts(), write_fcurves(), write_fmodifiers(), write_gpencils(), write_groups(), write_images(), write_keyingsets(), write_keymapitem(), write_keys(), write_lamps(), write_lattices(), write_materials(), write_mballs(), write_mdisps(), write_meshs(), write_modifiers(), write_motionpath(), write_nladata(), write_nlastrips(), write_nodetree(), write_objects(), write_particlesettings(), write_particlesystems(), write_pointcaches(), write_pose(), write_previews(), write_properties(), write_region(), write_scenes(), write_screens(), write_sensors(), write_sounds(), write_texts(), write_textures(), write_userdef(), write_vfonts(), write_windowmanagers(), and write_worlds().
| #define DNA1 MAKE_ID('D','N','A','1') |
Definition at line 69 of file BKE_utildefines.h.
Referenced by blo_read_file_internal(), read_file_dna(), and write_file_handle().
| #define ENDB MAKE_ID('E','N','D','B') |
Definition at line 74 of file BKE_utildefines.h.
Referenced by append_id_part(), append_named_part(), bh4_from_bh8(), bh8_from_bh4(), BLO_blendhandle_get_datablock_names(), BLO_blendhandle_get_linkable_groups(), BLO_blendhandle_get_previews(), BLO_blendhandle_print_sizes(), blo_read_file_internal(), get_bhead(), read_file_dna(), read_file_version(), switch_endian_bh4(), switch_endian_bh8(), and write_file_handle().
| #define FILE_MAX 240 |
Definition at line 45 of file BKE_utildefines.h.
Referenced by autocomplete_directory(), autocomplete_file(), background_image_add_invoke(), BKE_add_image_extension(), BKE_add_image_file(), BKE_add_image_imbuf(), BKE_add_image_size(), BKE_makepicstring(), BKE_rebase_path(), blend_save_check(), BLI_get_folder(), BLI_get_folder_version(), BLI_get_user_folder_notest(), BLI_join_dirfile(), BLI_path_abs(), BLI_path_frame(), BLI_path_frame_range(), BLI_path_rel(), BLI_where_am_i(), bookmark_add_exec(), bookmark_delete_exec(), CustomData_external_read(), CustomData_external_write(), do_versions(), do_write_image_or_movie(), drop_named_image_invoke(), ED_file_init(), ED_fileselect_set_params(), envmap_save_exec(), file_browse_exec(), file_delete_exec(), file_delete_poll(), file_directory_new_exec(), file_draw_buttons(), file_draw_check_cb(), file_draw_check_exists(), file_exec(), file_operator_to_sfile(), FILE_OT_directory_new(), file_panel_category(), file_refresh(), file_rename_poll(), file_select_do(), file_sfile_to_operator(), file_shorten_string(), filelist_from_library(), filelist_read_dir(), filelist_setdir(), fluidsim_init(), get_path_local(), get_path_system(), get_path_user(), get_thumb_dir(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), IMB_thumb_create(), IMB_thumb_delete(), IMB_thumb_makedirs(), IMB_thumb_manage(), IMB_thumb_read(), init_iconfile_list(), is_filtered_lib(), is_portable_install(), main(), MESH_OT_drop_named_image(), multires_external_save_exec(), multires_external_save_invoke(), new_folder_path(), node_add_file_exec(), open_exec(), ImagesExporter::operator()(), PAINT_OT_image_from_view(), RE_BlenderAnim(), RE_BlenderFrame(), RE_is_rendering_allowed(), read_render_result(), renamebutton_cb(), replace_exec(), RNA_api_scene(), RNA_api_scene_render(), rna_def_render_result(), save_as_check(), save_as_exec(), save_as_invoke(), save_exec(), save_sequence_exec(), scene_unique_exr_name(), screen_opengl_render_apply(), screenshot_exec(), seq_proxy_get_fname(), seq_remap_paths(), sequencer_add_effect_strip_exec(), sequencer_add_generic_strip_exec(), sequencer_drop_copy(), setup_app_data(), sound_new_file(), space_image_file_exists_poll(), test_env_path(), test_path(), texture_paint_image_from_view_exec(), threaded_tile_processor(), thumbnails_start(), thumbpath_from_uri(), unpack_menu(), unpackImage(), unpackSound(), untitled(), uri_from_filename(), VIEW3D_OT_background_image_add(), wm_autosave_delete(), wm_autosave_read(), wm_autosave_timer(), wm_drop_operator_options(), WM_event_start_drag(), WM_init(), wm_init_userdef(), wm_link_append_exec(), wm_open_mainfile_exec(), WM_operator_properties_filesel(), WM_read_history(), wm_recover_auto_save_exec(), wm_recover_auto_save_invoke(), wm_recover_last_session_exec(), wm_save_as_mainfile_exec(), wm_save_as_mainfile_invoke(), wm_save_mainfile_invoke(), WM_write_file(), write_crash_blend(), and DocumentImporter::writeImage().
| #define FILE_MAXDIR 160 |
Definition at line 43 of file BKE_utildefines.h.
Referenced by add_plugin_seq(), add_text(), add_win32_extension(), autotexname(), BKE_undo_save_quit(), BKE_write_undo(), blf_dir_search(), BLI_diskfree(), BLI_exist(), BLI_make_existing_file(), BLI_parent_dir(), BLI_path_cwd(), BLI_path_rel(), BLI_where_am_i(), blo_find_main(), BLO_write_file(), bpath_as_report(), BPY_python_start(), checkMissingFiles(), checkPackedFile(), do_history(), do_versions(), draw_seq_text(), filelist_from_library(), filelist_from_main(), filelist_read_library(), findMissingFiles(), fluid_init_filepaths(), fluidsim_delete_until_lastframe(), fluidsim_read_cache(), fluidsimBake(), folderlist_popdir(), folderlist_pushdir(), fsmenu_read_system(), get_filename(), init_internal_icons(), load_file(), load_vfont(), main(), makeFilesAbsolute(), makeFilesRelative(), namebutton_cb(), newPackedFile(), path_drop_copy(), ptcache_file_open(), python_script_exec(), reload_sequence_new_file(), reopen_text(), RNA_def_main_texts(), run_python(), screen_opengl_render_anim_step(), screenshot_exec(), screenshot_startjob(), select_single_seq(), seq_proxy_get_fname(), seq_render_strip(), sequencer_add_image_strip_exec(), sequencer_select_invoke(), StartKetsjiShell(), text_file_modified(), text_ignore_modified(), txt_write_file(), unpack_menu(), unpackImage(), unpackSound(), unpackVFont(), wm_autosave_delete(), WM_read_homefile(), WM_write_homefile(), write_history(), and writePackedFile().
| #define FILE_MAXFILE 80 |
Definition at line 44 of file BKE_utildefines.h.
Referenced by add_plugin_seq(), add_text(), add_win32_extension(), autotexname(), BKE_undo_save_quit(), BKE_write_undo(), blf_dir_search(), BLI_exist(), BLI_make_existing_file(), BLI_parent_dir(), BLI_path_cwd(), BLI_path_rel(), BLI_splitdirstring(), BLI_where_am_i(), blo_find_main(), BLO_write_file(), BPY_python_start(), checkPackedFile(), cleanup_path(), do_history(), draw_seq_text(), file_directory_new_exec(), file_draw_buttons(), file_draw_string(), file_rename_exec(), file_select_do(), filelist_from_library(), filelist_from_main(), filelist_read_library(), fluid_init_filepaths(), fluidsim_delete_until_lastframe(), fluidsim_read_cache(), fluidsimBake(), fsmenu_read_system(), get_filename(), init_internal_icons(), load_file(), load_vfont(), main(), makeFilesAbsolute(), makeFilesRelative(), namebutton_cb(), new_folder_path(), newPackedFile(), path_drop_copy(), ptcache_file_open(), reload_sequence_new_file(), reopen_text(), RNA_def_main_texts(), run_python(), scene_unique_exr_name(), screen_opengl_render_anim_step(), screenshot_exec(), screenshot_startjob(), seq_render_strip(), StartKetsjiShell(), text_file_modified(), text_ignore_modified(), txt_write_file(), unpack_menu(), unpackVFont(), wm_autosave_delete(), WM_read_homefile(), WM_write_homefile(), write_history(), and writePackedFile().
| #define GLOB MAKE_ID('G','L','O','B') |
Definition at line 67 of file BKE_utildefines.h.
Referenced by blo_read_file_internal(), read_file_version(), and write_global().
| #define ID_NEW | ( | a | ) | if( (a) && (a)->id.newid ) (a)= (void *)(a)->id.newid |
Definition at line 64 of file BKE_utildefines.h.
Referenced by actcon_relink(), copy_object_set_idnew(), copy_scene(), make_local_exec(), object_relink(), pycon_relink(), relink_constraints(), set_sca_new_poins_ob(), single_mat_users_expand(), single_obdata_users(), and single_object_users().
| #define MAKE_ID | ( | a, | |
| b, | |||
| c, | |||
| d | |||
| ) | ( (int)(d)<<24 | (int)(c)<<16 | (b)<<8 | (a) ) |
Definition at line 61 of file BKE_utildefines.h.
| #define O_BINARY 0 |
Definition at line 51 of file BKE_utildefines.h.
Referenced by BKE_add_image_file(), BKE_undo_save_quit(), BLI_filepathsize(), BLI_gzip(), BLI_is_writable(), BLO_is_a_runtime(), BLO_read_runtime(), BLO_write_file(), checkPackedFile(), IMB_ispic_name(), IMB_loadiffname(), imb_loadtile(), IMB_testiffname(), newPackedFile(), and writePackedFile().
| #define REND MAKE_ID('R','E','N','D') |
Definition at line 71 of file BKE_utildefines.h.
Referenced by blo_read_file_internal(), loadblend_thumb(), and write_renderinfo().
| #define TEST MAKE_ID('T','E','S','T') |
Definition at line 70 of file BKE_utildefines.h.
Referenced by blo_read_file_internal(), loadblend_thumb(), and write_thumb().
Definition at line 72 of file BKE_utildefines.h.