Blender  V2.59
Defines | Typedefs | Functions
Common.h File Reference

Go to the source code of this file.

Defines

#define min(a, b)   ((a) <= (b) ? (a) : (b))
#define max(a, b)   ((a) >= (b) ? (a) : (b))
#define clamp(x, a, b)   min(max((x), (a)), (b))

Typedefs

typedef unsigned char uint8
typedef unsigned short uint16
typedef unsigned int uint
typedef unsigned int uint32
typedef unsigned long long uint64

Functions

template<typename T >
void swap (T &a, T &b)
uint computePitch (uint w, uint bitsize, uint alignment)

Detailed Description

Definition in file blender/imbuf/intern/dds/Common.h.


Define Documentation

#define clamp (   x,
  a,
 
)    min(max((x), (a)), (b))

Definition at line 40 of file blender/imbuf/intern/dds/Common.h.

Referenced by buildNormal(), and ColorBlock::init().

#define max (   a,
 
)    ((a) >= (b) ? (a) : (b))

Definition at line 37 of file blender/imbuf/intern/dds/Common.h.

Referenced by actkeys_previewrange_exec(), btAxisSweep3Internal< BP_FP_INT_TYPE >::addHandle(), apply_heights_data(), area_poly_v3(), AUD_readSound(), bevelinside(), BL_ConvertActuators(), BME_assign_transdata(), BME_bevel_poly(), BME_bevel_set_max(), boundbox_displist(), boundbox_mesh(), boundbox_seq(), BPy_FloatProperty(), BPy_FloatVectorProperty(), BPy_IntProperty(), BPy_IntVectorProperty(), calc_action_range(), calc_fcurve_range(), calc_ocval_face(), calc_sequence(), calc_tw_center(), calculate_collision_balls(), calculateCenterBound(), KX_ConstraintActuator::Clamp(), clipUVTransform(), compress_deepsamples(), convertFlags2String(), createTransActionData(), cuboid_do(), curve_center_bounds(), btMatrix3x3::diagonalize(), distribute_grid(), DM_set_object_boundbox(), do_2d_mapping(), docenter_armature(), draw_histogram(), dupli_extrude_cursor(), ED_markers_get_minmax(), ED_view3d_boundbox_clip(), Eigenhqr2(), Eigentql2(), MEM_CacheLimiter< MEM_CacheLimiterHandleCClass >::enforce_limits(), fcm_envelope_evaluate(), finalize_render_object(), free_editMesh(), free_imbuf_seq(), gameobject_from_blenderobject(), SG_BBox::getaa(), LbmSolverInterface::getGeoMaxMovementVelocity(), SG_BBox::getmm(), BasicVector::Vector3Dim< Scalar >::getOrthogonalntlVector3Dim(), ntlVector3Dim< Scalar >::getOrthogonalntlVector3Dim(), graphkeys_previewrange_exec(), iTaSC::WSDLSSolver::init(), iTaSC::WDLSSolver::init(), init(), BSP_GhostTestApp3D::InitApp(), KX_BlenderMaterial::Initialize(), initlocalview(), initWarp(), integrate_overlap(), interval_test(), invert_m4_m4(), is_vd_res_ok(), locateGlyph(), main(), makeraytree(), markers_selectkeys_between(), mathutils_rna_vector_set(), MAX3(), MAX3V(), mesh_center_bounds(), mesh_octree_table(), DirectDrawSurface::mipmap(), MT_clamp(), my_boundbox_mesh(), my_tex_space_mesh(), node_composit_exec_normalize(), nodeMakeGroupFromSelected(), object_origin_set_exec(), occ_build_split(), particle_intersect_dm(), project_paint_delayed_face_init(), prop_subscript_ass_array_slice(), ray_shadow_qmc(), btAxisSweep3Internal< BP_FP_INT_TYPE >::removeHandle(), RNA_property_float_clamp(), RNA_property_int_clamp(), screen_find_active_scredge(), screen_test_scale(), set_cursor_to_pos(), smokeModifier_init(), snap_curs_to_sel(), tex_space_curve(), tex_space_mball(), text_draw_wrapped(), text_get_cursor_rel(), text_get_visible_lines(), ui_def_but(), ui_handle_list_event(), uiBlockPicker(), uiTemplateList(), unit_boundbox(), btAxisSweep3Internal< BP_FP_INT_TYPE >::updateHandle(), iTaSC::Armature::updateJoint(), uv_map_clip_correct(), uv_map_transform_center(), uvedit_center(), v3d_editvertex_buts(), view3d_all_exec(), view_selected_exec(), viewselected_exec(), weld_align_uv(), wm_ndof_sensitivity_exec(), wrap_move_bol(), wrap_move_eol(), wrap_offset(), wrap_offset_in_line(), and wrap_width().

#define min (   a,
 
)    ((a) <= (b) ? (a) : (b))

Definition at line 34 of file blender/imbuf/intern/dds/Common.h.

Referenced by actkeys_previewrange_exec(), btAxisSweep3Internal< BP_FP_INT_TYPE >::addHandle(), apply_heights_data(), AUD_readSound(), batch_import::batch_import(), bevelinside(), BL_ConvertActuators(), BLI_timestr(), boundbox_displist(), boundbox_mesh(), boundbox_seq(), BPy_FloatProperty(), BPy_FloatVectorProperty(), BPy_IntProperty(), BPy_IntVectorProperty(), calc_action_range(), calc_fcurve_range(), calc_ocval_face(), calc_sequence(), calc_tw_center(), calculate_collision_balls(), calculateCenterBound(), KX_ConstraintActuator::Clamp(), clipUVTransform(), compress_deepsamples(), computeLU(), createTransActionData(), cuboid_do(), curve_center_bounds(), distribute_grid(), distribute_threads_init_data(), DM_set_object_boundbox(), docenter_armature(), DP_energy(), dupli_extrude_cursor(), ED_markers_get_minmax(), ED_view3d_boundbox_clip(), Eigenhqr2(), fcm_envelope_evaluate(), finalize_render_object(), gameobject_from_blenderobject(), SG_BBox::getaa(), SG_BBox::getmm(), graphkeys_previewrange_exec(), iTaSC::WSDLSSolver::init(), iTaSC::WDLSSolver::init(), ColorBlock::init(), init(), BSP_GhostTestApp3D::InitApp(), initlocalview(), initWarp(), interval_test(), is_vd_res_ok(), locateGlyph(), main(), makeBevelList(), makeraytree(), SG_TreeFactory::MakeTreeUp(), markers_selectkeys_between(), mathutils_rna_vector_set(), mesh_center_bounds(), mesh_octree_table(), MIN3V(), mouse_select_eval_buffer(), MT_clamp(), my_boundbox_mesh(), my_tex_space_mesh(), node_composit_exec_normalize(), nodeMakeGroupFromSelected(), object_origin_set_exec(), occ_build_split(), particle_intersect_dm(), project_paint_delayed_face_init(), prop_subscript_ass_array_slice(), ray_shadow_qmc(), reorganize_find_fittest_parent(), RNA_property_float_clamp(), RNA_property_int_clamp(), screen_find_active_scredge(), screen_test_scale(), smokeModifier_init(), snap_curs_to_sel(), tex_space_curve(), tex_space_mball(), time_top_left_3dwindow(), ui_def_but(), ui_handle_list_event(), uiBlockPicker(), uiBlocksGetYMin(), uiTemplateList(), unit_boundbox(), btAxisSweep3Internal< BP_FP_INT_TYPE >::updateHandle(), iTaSC::Armature::updateJoint(), uv_map_clip_correct(), uv_map_transform_center(), uvedit_center(), view3d_all_exec(), view_selected_exec(), viewselected_exec(), weld_align_uv(), widget_progressbar(), widget_scroll(), and wm_ndof_sensitivity_exec().


Typedef Documentation

typedef unsigned int uint

Definition at line 54 of file blender/imbuf/intern/dds/Common.h.

typedef unsigned short uint16

Definition at line 53 of file blender/imbuf/intern/dds/Common.h.

typedef unsigned int uint32

Definition at line 55 of file blender/imbuf/intern/dds/Common.h.

typedef unsigned long long uint64

Definition at line 56 of file blender/imbuf/intern/dds/Common.h.

typedef unsigned char uint8

Definition at line 52 of file blender/imbuf/intern/dds/Common.h.


Function Documentation

uint computePitch ( uint  w,
uint  bitsize,
uint  alignment 
) [inline]

Definition at line 59 of file blender/imbuf/intern/dds/Common.h.

template<typename T >
void swap ( T &  a,
T &  b 
) [inline]