cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCImage.h File Reference
#include "base/CCRef.h"
#include "renderer/CCTexture2D.h"

Classes

struct  MipmapInfo
 Structure which can tell where mipmap begins and how long is it. More...
 
class  Image
 

Namespaces

 cocos2d
 Add deprecated global functions and variables here.
 

Macros

#define CC_RGB_PREMULTIPLY_ALPHA(vr, vg, vb, va)

Macro Definition Documentation

#define CC_RGB_PREMULTIPLY_ALPHA (   vr,
  vg,
  vb,
  va 
)
Value:
(unsigned)(((unsigned)((unsigned char)(vr) * ((unsigned char)(va) + 1)) >> 8) | \
((unsigned)((unsigned char)(vg) * ((unsigned char)(va) + 1) >> 8) << 8) | \
((unsigned)((unsigned char)(vb) * ((unsigned char)(va) + 1) >> 8) << 16) | \
((unsigned)(unsigned char)(va) << 24))
var CC_RGB_PREMULTIPLY_ALPHA (   var,
  var,
  var,
  var 
)
Value:
(unsigned)(((unsigned)((unsigned char)(vr) * ((unsigned char)(va) + 1)) >> 8) | \
((unsigned)((unsigned char)(vg) * ((unsigned char)(va) + 1) >> 8) << 8) | \
((unsigned)((unsigned char)(vb) * ((unsigned char)(va) + 1) >> 8) << 16) | \
((unsigned)(unsigned char)(va) << 24))
local CC_RGB_PREMULTIPLY_ALPHA (   local,
  local,
  local,
  local 
)
Value:
(unsigned)(((unsigned)((unsigned char)(vr) * ((unsigned char)(va) + 1)) >> 8) | \
((unsigned)((unsigned char)(vg) * ((unsigned char)(va) + 1) >> 8) << 8) | \
((unsigned)((unsigned char)(vb) * ((unsigned char)(va) + 1) >> 8) << 16) | \
((unsigned)(unsigned char)(va) << 24))