Blender V2.61 - r43446
Defines

BKE_utildefines.h File Reference

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) )

Detailed Description

blender format specific macros

Note:
generic defines should go in BLI_utildefines.h

Definition in file BKE_utildefines.h.


Define Documentation

#define BCLR (   a,
 
)    ( (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,
 
)    ( ( (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,
 
)    ( (a) | 1<<(b) )
#define BTST (   a,
 
)    ( ( (a) & 1<<(b) )!=0 )
#define BTST2 (   a,
  b,
 
)    ( BTST( (a), (b) ) || BTST( (a), (c) ) )

Definition at line 82 of file BKE_utildefines.h.

#define DATA   MAKE_ID('D','A','T','A')
#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')
#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
#define FILE_MAXFILE   80
#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
#define MAKE_ID (   a,
  b,
  c,
 
)    ( (int)(d)<<24 | (int)(c)<<16 | (b)<<8 | (a) )

Definition at line 64 of file BKE_utildefines.h.

#define O_BINARY   0
#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().

#define USER   MAKE_ID('U','S','E','R')

Definition at line 75 of file BKE_utildefines.h.