Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIAnimationResource.h File Reference

Helper Macros in Guiliani More...

#include "eC_Types.h"
#include <limits.h>

Go to the source code of this file.

Macros

#define ANIMATION_TABLE    ENTRY(DUMMY_ANIMATION)
 AnimationIDs.
 
#define ENTRY(anim_id)   -1
 Helper Macros in Guiliani
 
#define ENTRY(anim_id)   anim_id,
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   -1
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   a,
 Helper Macros in Guiliani
 
#define MAP_ANIMID_TO_ARRAY(ANIM_ID)   static_cast<eC_UInt>(ANIM_ID-ANIMATION_START_TAG-1)
 Map Animation Handles to interval 0 to NOF_ANIMATIONS.
 
#define UNMAP_ANIM_ENTRY_TO_ARRAY(ANIM_ENTRY)   static_cast<AnimationHandle_t>(ANIM_ENTRY+ANIMATION_START_TAG+1)
 Unmap Animation Handles from interval 0 to NOF_ANIMATIONS.
 

Typedefs

typedef int static_assert_something[(DUMMY_ANIMATION==0) ? 1 :-1]
 Will throw compile error negative subscript if NO_HANDLE is NOT 0!
 

Enumerations

enum  AnimationHandle_t { ANIMATION_START_TAG = ciCalculatedAnimStartTag , DUMMY_ANIMATION , NOF_ANIMATIONIDS , GUILIANI_INTERNAL_ANIMID = INT_MAX }
 List of animation resource ids.
 

Variables

const int ciCalculatedAnimStartTag = -1
 preprocessor generates for all entries of ANIMATION_TABLE: -1 -1 -1..., resulting in a mathematical expression, that will be evaluated to -1*(Number of entries of IMAGE_TABLE
 
const eC_UInt cuiNOFAnimationHandles
 Used to contain the highest index cuiNOFXXXClasses = MAP_PROPID_TO_ARRAY(NOF_XXXCLASSES);.
 

Detailed Description