axmol/cocos/base/ccConstants.h

66 lines
3.2 KiB
C
Raw Normal View History

2019-11-23 20:27:39 +08:00
/****************************************************************************
Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#pragma once
#include "base/ccMacros.h"
NS_CC_BEGIN
2021-12-25 10:04:45 +08:00
namespace GLBlendConst
{
const int ZERO = 0x0000; // GL_ZERO;
const int ONE = 0x0001; // GL_ONE;
const int SRC_COLOR = 0x0300; // GL_SRC_COLOR;
const int ONE_MINUS_SRC_COLOR = 0x0301; // GL_ONE_MINUS_SRC_COLOR;
const int DST_COLOR = 0x0306; // GL_DST_COLOR;
const int ONE_MINUS_DST_COLOR = 0x0307; // GL_ONE_MINUS_DST_COLOR;
const int SRC_ALPHA = 0x0302; // GL_SRC_ALPHA;
const int ONE_MINUS_SRC_ALPHA = 0x0303; // GL_ONE_MINUS_SRC_ALPHA;
const int DST_ALPHA = 0x0304; // GL_DST_ALPHA;
const int ONE_MINUS_DST_ALPHA = 0x0305; // GL_ONE_MINUS_DST_ALPHA;
const int CONSTANT_ALPHA = 0x8003; // GL_CONSTANT_ALPHA;
const int ONE_MINUS_CONSTANT_ALPHA = 0x8004; // GL_ONE_MINUS_CONSTANT_ALPHA;
const int SRC_ALPHA_SATURATE = 0x0308; // GL_SRC_ALPHA_SATURATE;
const int BLEND_COLOR = 0x8005; // GL_BLEND_COLOR
} // namespace GLBlendConst
2019-11-23 20:27:39 +08:00
namespace GLTexParamConst
{
2021-12-25 10:04:45 +08:00
const int NEAREST = 0x2600; // GL_NEAREST;
const int LINEAR = 0x2601; // GL_LINEAR;
const int NEAREST_MIPMAP_NEAREST = 0x2700; // GL_NEAREST_MIPMAP_NEAREST;
const int LINEAR_MIPMAP_NEAREST = 0x2701; // GL_LINEAR_MIPMAP_NEAREST;
const int NEAREST_MIPMAP_LINEAR = 0x2702; // GL_NEAREST_MIPMAP_LINEAR;
const int LINEAR_MIPMAP_LINEAR = 0x2703; // GL_LINEAR_MIPMAP_LINEAR;
const int TEXTURE_MAG_FILTER = 0x2800; // GL_TEXTURE_MAG_FILTER;
const int TEXTURE_MIN_FILTER = 0x2801; // GL_TEXTURE_MIN_FILTER;
const int TEXTURE_WRAP_S = 0x2802; // GL_TEXTURE_WRAP_S;
const int TEXTURE_WRAP_T = 0x2803; // GL_TEXTURE_WRAP_T;
const int CLAMP = 0x2900; // GL_CLAMP;
const int REPEAT = 0x2901; // GL_REPEAT;
const int CLAMP_TO_EDGE = 0x812F; // GL_CLAMP_TO_EDGE
const int MIRROR_REPEAT = 0x8370; // GL_MIRRORED_REPEAT
} // namespace GLTexParamConst
2019-11-23 20:27:39 +08:00
NS_CC_END