local CCConstants = {}

CCConstants.SPRITE_INDEX_NOT_INITIALIZED = 0xffffffff
CCConstants.TMX_ORIENTATION_HEX  = 0x1
CCConstants.TMX_ORIENTATION_ISO  = 0x2
CCConstants.TMX_ORIENTATION_ORTHO    = 0x0
CCConstants.Z_COMPRESSION_BZIP2  = 0x1
CCConstants.Z_COMPRESSION_GZIP   = 0x2
CCConstants.Z_COMPRESSION_NONE   = 0x3
CCConstants.Z_COMPRESSION_ZLIB   = 0x0
CCConstants.BLEND_DST    = 0x303
CCConstants.BLEND_SRC    = 0x1
CCConstants.DIRECTOR_IOS_USE_BACKGROUND_THREAD   = 0x0
CCConstants.DIRECTOR_MAC_THREAD  = 0x0
CCConstants.DIRECTOR_STATS_INTERVAL  = 0.1
CCConstants.ENABLE_BOX2_D_INTEGRATION    = 0x0
CCConstants.ENABLE_DEPRECATED    = 0x1
CCConstants.ENABLE_GL_STATE_CACHE    = 0x1
CCConstants.ENABLE_PROFILERS = 0x0
CCConstants.ENABLE_STACKABLE_ACTIONS = 0x1
CCConstants.FIX_ARTIFACTS_BY_STRECHING_TEXEL = 0x0
CCConstants.GL_ALL   = 0x0
CCConstants.LABELATLAS_DEBUG_DRAW    = 0x0
CCConstants.LABELBMFONT_DEBUG_DRAW   = 0x0
CCConstants.MAC_USE_DISPLAY_LINK_THREAD  = 0x0
CCConstants.MAC_USE_MAIN_THREAD  = 0x2
CCConstants.MAC_USE_OWN_THREAD   = 0x1
CCConstants.NODE_RENDER_SUBPIXEL = 0x1
CCConstants.PVRMIPMAP_MAX    = 0x10
CCConstants.SPRITEBATCHNODE_RENDER_SUBPIXEL  = 0x1
CCConstants.SPRITE_DEBUG_DRAW    = 0x0
CCConstants.TEXTURE_ATLAS_USE_TRIANGLE_STRIP = 0x0
CCConstants.TEXTURE_ATLAS_USE_VAO    = 0x1
CCConstants.USE_L_A88_LABELS = 0x1
CCConstants.ACTION_TAG_INVALID   = -1
CCConstants.DEVICE_MAC   = 0x6
CCConstants.DEVICE_MAC_RETINA_DISPLAY    = 0x7
CCConstants.DEVICEI_PAD  = 0x4
CCConstants.DEVICEI_PAD_RETINA_DISPLAY   = 0x5
CCConstants.DEVICEI_PHONE    = 0x0
CCConstants.DEVICEI_PHONE5   = 0x2
CCConstants.DEVICEI_PHONE5_RETINA_DISPLAY    = 0x3
CCConstants.DEVICEI_PHONE_RETINA_DISPLAY = 0x1
CCConstants.DIRECTOR_PROJECTION2_D   = 0x0
CCConstants.DIRECTOR_PROJECTION3_D   = 0x1
CCConstants.DIRECTOR_PROJECTION_CUSTOM   = 0x2
CCConstants.DIRECTOR_PROJECTION_DEFAULT  = 0x1
CCConstants.FILE_UTILS_SEARCH_DIRECTORY_MODE = 0x1
CCConstants.FILE_UTILS_SEARCH_SUFFIX_MODE    = 0x0
CCConstants.FLIPED_ALL   = 0xe0000000
CCConstants.FLIPPED_MASK = 0x1fffffff
CCConstants.IMAGE_FORMAT_JPEG    = 0x0
CCConstants.IMAGE_FORMAT_PNG = 0x1
CCConstants.ITEM_SIZE    = 0x20
CCConstants.LABEL_AUTOMATIC_WIDTH    = -1
CCConstants.LINE_BREAK_MODE_CHARACTER_WRAP   = 0x1
CCConstants.LINE_BREAK_MODE_CLIP = 0x2
CCConstants.LINE_BREAK_MODE_HEAD_TRUNCATION  = 0x3
CCConstants.LINE_BREAK_MODE_MIDDLE_TRUNCATION    = 0x5
CCConstants.LINE_BREAK_MODE_TAIL_TRUNCATION  = 0x4
CCConstants.LINE_BREAK_MODE_WORD_WRAP    = 0x0
CCConstants.MAC_VERSION_10_6 = 0xa060000
CCConstants.MAC_VERSION_10_7 = 0xa070000
CCConstants.MAC_VERSION_10_8 = 0xa080000
CCConstants.MENU_HANDLER_PRIORITY    = -128
CCConstants.MENU_STATE_TRACKING_TOUCH    = 0x1
CCConstants.MENU_STATE_WAITING   = 0x0
CCConstants.NODE_TAG_INVALID = -1
CCConstants.PARTICLE_DURATION_INFINITY   = -1
CCConstants.PARTICLE_MODE_GRAVITY    = 0x0
CCConstants.PARTICLE_MODE_RADIUS = 0x1
CCConstants.PARTICLE_START_RADIUS_EQUAL_TO_END_RADIUS    = -1
CCConstants.PARTICLE_START_SIZE_EQUAL_TO_END_SIZE    = -1
CCConstants.POSITION_TYPE_FREE   = 0x0
CCConstants.POSITION_TYPE_GROUPED    = 0x2
CCConstants.POSITION_TYPE_RELATIVE   = 0x1
CCConstants.PRIORITY_NON_SYSTEM_MIN  = -2147483647
CCConstants.PRIORITY_SYSTEM  = -2147483648
CCConstants.PROGRESS_TIMER_TYPE_BAR  = 0x1
CCConstants.PROGRESS_TIMER_TYPE_RADIAL   = 0x0
CCConstants.REPEAT_FOREVER   = 0xfffffffe
CCConstants.RESOLUTION_MAC   = 0x1
CCConstants.RESOLUTION_MAC_RETINA_DISPLAY    = 0x2
CCConstants.RESOLUTION_UNKNOWN   = 0x0
CCConstants.TMX_TILE_DIAGONAL_FLAG   = 0x20000000
CCConstants.TMX_TILE_HORIZONTAL_FLAG = 0x80000000
CCConstants.TMX_TILE_VERTICAL_FLAG   = 0x40000000
CCConstants.TEXT_ALIGNMENT_CENTER    = 0x1
CCConstants.TEXT_ALIGNMENT_LEFT  = 0x0
CCConstants.TEXT_ALIGNMENT_RIGHT = 0x2
CCConstants.TEXTURE2_D_PIXEL_FORMAT_A8   = 0x3
CCConstants.TEXTURE2_D_PIXEL_FORMAT_A_I88    = 0x5
CCConstants.TEXTURE2_D_PIXEL_FORMAT_DEFAULT  = 0x0
CCConstants.TEXTURE2_D_PIXEL_FORMAT_I8   = 0x4
CCConstants.TEXTURE2_D_PIXEL_FORMAT_PVRTC2   = 0x9
CCConstants.TEXTURE2_D_PIXEL_FORMAT_PVRTC4   = 0x8
CCConstants.TEXTURE2_D_PIXEL_FORMAT_RG_B565  = 0x2
CCConstants.TEXTURE2_D_PIXEL_FORMAT_RGB5_A1  = 0x7
CCConstants.TEXTURE2_D_PIXEL_FORMAT_RG_B888  = 0x1
CCConstants.TEXTURE2_D_PIXEL_FORMAT_RGB_A4444    = 0x6
CCConstants.TEXTURE2_D_PIXEL_FORMAT_RGB_A8888    = 0x0
CCConstants.TOUCHES_ALL_AT_ONCE  = 0x0
CCConstants.TOUCHES_ONE_BY_ONE   = 0x1
CCConstants.TRANSITION_ORIENTATION_DOWN_OVER = 0x1
CCConstants.TRANSITION_ORIENTATION_LEFT_OVER = 0x0
CCConstants.TRANSITION_ORIENTATION_RIGHT_OVER    = 0x1
CCConstants.TRANSITION_ORIENTATION_UP_OVER   = 0x0
CCConstants.UNIFORM_COS_TIME = 0x5
CCConstants.UNIFORM_MV_MATRIX    = 0x1
CCConstants.UNIFORM_MVP_MATRIX   = 0x2
CCConstants.UNIFORM_P_MATRIX = 0x0
CCConstants.UNIFORM_RANDOM01 = 0x6
CCConstants.UNIFORM_SAMPLER  = 0x7
CCConstants.UNIFORM_SIN_TIME = 0x4
CCConstants.UNIFORM_TIME = 0x3
CCConstants.UNIFORM_MAX  = 0x8
CCConstants.VERTEX_ATTRIB_FLAG_COLOR = 0x2
CCConstants.VERTEX_ATTRIB_FLAG_NONE  = 0x0
CCConstants.VERTEX_ATTRIB_FLAG_POS_COLOR_TEX = 0x7
CCConstants.VERTEX_ATTRIB_FLAG_POSITION  = 0x1
CCConstants.VERTEX_ATTRIB_FLAG_TEX_COORDS    = 0x4
CCConstants.VERTEX_ATTRIB_COLOR  = 0x1
CCConstants.VERTEX_ATTRIB_MAX    = 0x3
CCConstants.VERTEX_ATTRIB_POSITION   = 0x0
CCConstants.VERTEX_ATTRIB_TEX_COORDS = 0x2
CCConstants.VERTICAL_TEXT_ALIGNMENT_BOTTOM   = 0x2
CCConstants.VERTICAL_TEXT_ALIGNMENT_CENTER   = 0x1
CCConstants.VERTICAL_TEXT_ALIGNMENT_TOP  = 0x0
CCConstants.OS_VERSION_4_0   = 0x4000000
CCConstants.OS_VERSION_4_0_1 = 0x4000100
CCConstants.OS_VERSION_4_1   = 0x4010000
CCConstants.OS_VERSION_4_2   = 0x4020000
CCConstants.OS_VERSION_4_2_1 = 0x4020100
CCConstants.OS_VERSION_4_3   = 0x4030000
CCConstants.OS_VERSION_4_3_1 = 0x4030100
CCConstants.OS_VERSION_4_3_2 = 0x4030200
CCConstants.OS_VERSION_4_3_3 = 0x4030300
CCConstants.OS_VERSION_4_3_4 = 0x4030400
CCConstants.OS_VERSION_4_3_5 = 0x4030500
CCConstants.OS_VERSION_5_0   = 0x5000000
CCConstants.OS_VERSION_5_0_1 = 0x5000100
CCConstants.OS_VERSION_5_1_0 = 0x5010000
CCConstants.OS_VERSION_6_0_0 = 0x6000000
CCConstants.ANIMATION_FRAME_DISPLAYED_NOTIFICATION   = 'CCAnimationFrameDisplayedNotification'
CCConstants.CHIPMUNK_IMPORT  = 'chipmunk.h'
CCConstants.ATTRIBUTE_NAME_COLOR = 'a_color'
CCConstants.ATTRIBUTE_NAME_POSITION  = 'a_position'
CCConstants.ATTRIBUTE_NAME_TEX_COORD = 'a_texCoord'
CCConstants.SHADER_POSITION_COLOR    = 'ShaderPositionColor'
CCConstants.SHADER_POSITION_LENGTH_TEXURE_COLOR  = 'ShaderPositionLengthTextureColor'
CCConstants.SHADER_POSITION_TEXTURE  = 'ShaderPositionTexture'
CCConstants.SHADER_POSITION_TEXTURE_A8_COLOR = 'ShaderPositionTextureA8Color'
CCConstants.SHADER_POSITION_TEXTURE_COLOR    = 'ShaderPositionTextureColor'
CCConstants.SHADER_POSITION_TEXTURE_COLOR_ALPHA_TEST = 'ShaderPositionTextureColorAlphaTest'
CCConstants.SHADER_POSITION_TEXTURE_U_COLOR  = 'ShaderPositionTexture_uColor'
CCConstants.SHADER_POSITION_U_COLOR  = 'ShaderPosition_uColor'
CCConstants.UNIFORM_ALPHA_TEST_VALUE_S   = 'CC_AlphaValue'
CCConstants.UNIFORM_COS_TIME_S   = 'CC_CosTime'
CCConstants.UNIFORM_MV_MATRIX_S  = 'CC_MVMatrix'
CCConstants.UNIFORM_MVP_MATRIX_S = 'CC_MVPMatrix'
CCConstants.UNIFORM_P_MATRIX_S   = 'CC_PMatrix'
CCConstants.UNIFORM_RANDOM01_S   = 'CC_Random01'
CCConstants.UNIFORM_SAMPLER_S    = 'CC_Texture0'
CCConstants.UNIFORM_SIN_TIME_S   = 'CC_SinTime'
CCConstants.UNIFORM_TIME_S   = 'CC_Time'


local modename = "CCConstants"
local CCConstantsproxy = {}
local CCConstantsMt    = {
    __index = CCConstants,
    __newindex =  function (t ,k ,v)
        print("attemp to update a read-only table")
    end
} 
setmetatable(CCConstantsproxy,CCConstantsMt)
_G[modename] = CCConstantsproxy
package.loaded[modename] = CCConstantsproxy
