Blender V2.61 - r43446
|
blender format specific 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) ) |
blender format specific macros
Definition in file BKE_utildefines.h.
#define BCLR | ( | a, | |
b | |||
) | ( (a) & ~(1<<(b)) ) |
Definition at line 84 of file BKE_utildefines.h.
Referenced by ui_apply_but_TOG(), and ui_apply_but_TOG3().
#define BNTST | ( | a, | |
b | |||
) | ( ( (a) & 1<<(b) )==0 ) |
Definition at line 81 of file BKE_utildefines.h.
#define BROW | ( | min, | |
max | |||
) | (((max)>=31? 0xFFFFFFFF: (1<<(max+1))-1) - ((min)? ((1<<(min))-1):0) ) |
Definition at line 86 of file BKE_utildefines.h.
#define BSET | ( | a, | |
b | |||
) | ( (a) | 1<<(b) ) |
Definition at line 83 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 80 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 82 of file BKE_utildefines.h.
#define DATA MAKE_ID('D','A','T','A') |
Definition at line 69 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_movieclips(), write_movieReconstruction(), write_movieTracks(), write_nladata(), write_nlastrips(), write_node_socket(), 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 72 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 77 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 48 of file BKE_utildefines.h.
Referenced by add_plugin_seq(), add_text(), add_win32_extension(), autocomplete_directory(), autocomplete_file(), background_image_add_invoke(), BKE_add_image_extension(), BKE_add_image_file(), BKE_add_image_imbuf(), BKE_add_movieclip_file(), BKE_makepicstring(), BKE_rebase_path(), BKE_undo_save_quit(), BKE_write_undo(), blend_save_check(), blf_dir_search(), BLI_exists(), BLI_get_folder(), BLI_get_folder_version(), BLI_get_user_folder_notest(), BLI_init_temporary_dir(), BLI_make_existing_file(), BLI_parent_dir(), BLI_path_abs(), BLI_path_cwd(), BLI_path_frame(), BLI_path_frame_range(), BLI_path_rel(), BLI_system_temporary_dir(), bli_where_am_i(), blo_find_main(), BLO_write_file(), bookmark_add_exec(), bookmark_delete_exec(), bpath_relocate_visitor(), BPY_python_start(), checkPackedFile(), CustomData_external_read(), CustomData_external_write(), do_history(), do_versions(), do_write_image_or_movie(), draw_seq_text(), drop_named_image_invoke(), dynamicPaint_bakeImageSequence(), dynamicPaint_outputSurfaceImage(), 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_from_main(), filelist_read_dir(), filelist_read_library(), filelist_setdir(), findFileRecursive(), findMissingFiles_visit_cb(), font_open_exec(), fsmenu_read_system(), get_brush_icon(), get_filename(), get_path_local(), get_path_system(), get_path_user(), get_proxy_fname(), get_sequence_fname(), get_thumb_dir(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_open_exec(), image_replace_exec(), image_save_as_check(), image_save_sequence_exec(), IMB_anim_open_index(), IMB_anim_open_proxy(), IMB_thumb_create(), IMB_thumb_delete(), IMB_thumb_makedirs(), IMB_thumb_manage(), IMB_thumb_read(), index_rebuild_fallback(), init_iconfile_list(), init_internal_icons(), is_filtered_lib(), is_portable_install(), load_file(), main(), MESH_OT_drop_named_image(), movieclip_build_proxy_ibuf(), movieclip_load_movie_file(), movieclip_load_sequence_file(), multires_external_save_exec(), multires_external_save_invoke(), namebutton_cb(), new_folder_path(), newPackedFile(), node_add_file_exec(), open_exec(), ImagesExporter::operator()(), PAINT_OT_image_from_view(), path_drop_copy(), ptcache_file_open(), RE_BlenderAnim(), RE_BlenderFrame(), RE_is_rendering_allowed(), RE_WriteEnvmapResult(), read_libraries(), reload_sequence_new_file(), renamebutton_cb(), render_result_exr_file_begin(), render_result_exr_file_path(), render_result_exr_file_read(), reopen_text(), rewrite_path_alloc(), rewrite_path_fixed(), rewrite_path_fixed_dirfile(), RNA_api_environment_map(), RNA_api_scene(), RNA_api_scene_render(), rna_def_fluidsim_domain(), rna_def_fluidsim_particle(), RNA_def_main(), RNA_def_main_movieclips(), RNA_def_main_texts(), rna_def_render_result(), run_python(), save_image_options_init(), screen_opengl_render_anim_step(), screen_opengl_render_apply(), screenshot_exec(), screenshot_startjob(), seq_open_anim_file(), seq_remap_paths(), seq_render_strip(), sequence_guess_offset(), sequencer_add_effect_strip_exec(), sequencer_add_generic_strip_exec(), sequencer_change_path_exec(), sequencer_drop_copy(), setup_app_data(), sound_mixdown_exec(), sound_new_file(), space_image_file_exists_poll(), StartKetsjiShell(), test_env_path(), test_path(), text_file_modified(), text_ignore_modified(), text_open_exec(), text_save_as_exec(), texture_paint_image_from_view_exec(), thumbnails_start(), thumbpath_from_uri(), txt_write_file(), unpack_menu(), unpackImage(), unpackSound(), unpackVFont(), 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_link_append_exec(), wm_link_append_invoke(), wm_open_mainfile_exec(), WM_operator_properties_filesel(), WM_read_history(), WM_read_homefile(), 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(), WM_write_homefile(), write_crash_blend(), write_history(), DocumentImporter::writeImage(), and writePackedFile().
#define FILE_MAXDIR 160 |
Definition at line 46 of file BKE_utildefines.h.
Referenced by autotexname(), BLI_dir_free_space(), bpath_relocate_visitor(), do_versions(), folderlist_popdir(), folderlist_pushdir(), fsmenu_read_system(), get_index_dir(), get_proxy_filename(), get_tc_filename(), load_vfont(), python_script_exec(), select_single_seq(), sequencer_add_image_strip_exec(), sequencer_select_invoke(), StartKetsjiShell(), unpack_menu(), unpackImage(), and unpackSound().
#define FILE_MAXFILE 80 |
Definition at line 47 of file BKE_utildefines.h.
Referenced by autotexname(), BLI_make_existing_file(), BLI_splitdirstring(), bpath_relocate_visitor(), cleanup_path(), file_directory_new_exec(), file_draw_buttons(), file_draw_string(), file_rename_exec(), file_select_do(), get_index_dir(), get_proxy_filename(), get_tc_filename(), load_vfont(), new_folder_path(), render_result_exr_file_path(), StartKetsjiShell(), and unpackVFont().
#define GLOB MAKE_ID('G','L','O','B') |
Definition at line 70 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 67 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 64 of file BKE_utildefines.h.
#define O_BINARY 0 |
Definition at line 54 of file BKE_utildefines.h.
Referenced by BKE_add_image_file(), BKE_add_movieclip_file(), BKE_undo_save_quit(), BLI_file_gzip(), BLI_file_is_writable(), BLI_file_size(), 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 74 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 73 of file BKE_utildefines.h.
Referenced by blo_read_file_internal(), loadblend_thumb(), and write_thumb().
Definition at line 75 of file BKE_utildefines.h.