2 Star 1 Fork 0

精易科技/opengl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
opengl_const.cpp 13.58 KB
一键复制 编辑 原始数据 按行查看 历史
精易科技 提交于 2022-12-19 16:56 . 初始化仓库
#include "include_opengl_header.h"
#ifndef __E_STATIC_LIB
LIB_CONST_INFO g_ConstInfo_opengl_global_var[] =
{
//#define CT_NULL 0
//#define CT_NUM 1 // value sample: 3.1415926
//#define CT_BOOL 2 // value sample: 1
//#define CT_TEXT 3 // value sample: "abc"
//LPCSTR m_szName; // 常量名
//LPCSTR m_szEgName; // 英文名
//LPCSTR m_szExplain; // 说明
//SHORT m_shtLayout; // 必须为 1
//SHORT m_shtType; // 常量类型, CT_NULL=空常量, CT_NUM=数值型,double保存值, CT_BOOL=逻辑型, CT_TEXT=文本型
//LPCSTR m_szText; // CT_TEXT
//DOUBLE m_dbValue; // CT_NUM、CT_BOOL
/*000*/ { "GL_画入窗口的像素格式", "PFD_DRAW_TO_WINDOW", NULL, 1, CT_NUM, NULL, 4 },
/*001*/ { "GL_支持GDI像素格式", "PFD_SUPPORT_GDI", "与#双缓存像素格式互斥", 1, CT_NUM, NULL, 16 },
/*002*/ { "GL_支持OPENGL像素格式", "PFD_SUPPORT_OPENGL", NULL, 1, CT_NUM, NULL, 32 },
/*003*/ { "GL_双缓存像素格式", "PFD_DOUBLEBUFFER", "与#支持GDI像素格式互斥", 1, CT_NUM, NULL, 1 },
/*004*/ { "GL_观察矩阵", "GL_MODELVIEW", NULL, 1, CT_NUM, NULL, 5888 },
/*005*/ { "GL_投影矩阵", "GL_PROJECTION", NULL, 1, CT_NUM, NULL, 5889 },
/*006*/ { "GL_纹理矩阵", "GL_TEXTURE", NULL, 1, CT_NUM, NULL, 5890 },
/*007*/ { "GL_点集", "GL_POINTS", NULL, 1, CT_NUM, NULL, 0 },
/*008*/ { "GL_线段", "GL_LINES", NULL, 1, CT_NUM, NULL, 1 },
/*009*/ { "GL_闭合线段", "GL_LINE_LOOP", NULL, 1, CT_NUM, NULL, 2 },
/*010*/ { "GL_连续线段", "GL_LINE_STRIP", NULL, 1, CT_NUM, NULL, 3 },
/*011*/ { "GL_三角形", "GL_TRIANGLES", NULL, 1, CT_NUM, NULL, 4 },
/*012*/ { "GL_连续三角形", "GL_TRIANGLE_STRIP", NULL, 1, CT_NUM, NULL, 5 },
/*013*/ { "GL_扇形三角形", "GL_TRIANGLE_FAN", NULL, 1, CT_NUM, NULL, 6 },
/*014*/ { "GL_四边形", "GL_QUADS", NULL, 1, CT_NUM, NULL, 7 },
/*015*/ { "GL_连续四边形", "GL_QUAD_STRIP", NULL, 1, CT_NUM, NULL, 8 },
/*016*/ { "GL_凸多边形", "GL_POLYGON", NULL, 1, CT_NUM, NULL, 9 },
/*017*/ { "GL_顺时针", "GL_CW", NULL, 1, CT_NUM, NULL, 2304 },
/*018*/ { "GL_逆时针", "GL_CCW", NULL, 1, CT_NUM, NULL, 2305 },
/*019*/ { "GL_零号裁剪面", "GL_CLIP_PLANE0", NULL, 1, CT_NUM, NULL, 12288 },
/*020*/ { "GL_一号裁剪面", "GL_CLIP_PLANE1", NULL, 1, CT_NUM, NULL, 12289 },
/*021*/ { "GL_二号裁剪面", "GL_CLIP_PLANE2", NULL, 1, CT_NUM, NULL, 12290 },
/*022*/ { "GL_三号裁剪面", "GL_CLIP_PLANE3", NULL, 1, CT_NUM, NULL, 12291 },
/*023*/ { "GL_四号裁剪面", "GL_CLIP_PLANE4", NULL, 1, CT_NUM, NULL, 12292 },
/*024*/ { "GL_五号裁剪面", "GL_CLIP_PLANE5", NULL, 1, CT_NUM, NULL, 12293 },
/*025*/ { "GL_正面", "GL_FRONT", NULL, 1, CT_NUM, NULL, 1028 },
/*026*/ { "GL_背面", "GL_BACK", NULL, 1, CT_NUM, NULL, 1029 },
/*027*/ { "GL_正面和背面", "GL_FRONT_AND_BACK", NULL, 1, CT_NUM, NULL, 1032 },
/*028*/ { "GL_点", "GL_POINT", NULL, 1, CT_NUM, NULL, 6912 },
/*029*/ { "GL_线", "GL_LINE", NULL, 1, CT_NUM, NULL, 6913 },
/*030*/ { "GL_面", "GL_FILL", NULL, 1, CT_NUM, NULL, 6914 },
/*031*/ { "GL_透视修正质量", "GL_PERSPECTIVE_CORRECTION_HINT", NULL, 1, CT_NUM, NULL, 3152 },
/*032*/ { "GL_点质量", "GL_POINT_SMOOTH_HINT", NULL, 1, CT_NUM, NULL, 3153 },
/*033*/ { "GL_线质量", "GL_LINE_SMOOTH_HINT", NULL, 1, CT_NUM, NULL, 3154 },
/*034*/ { "GL_多边形质量", "GL_POLYGON_SMOOTH_HINT", NULL, 1, CT_NUM, NULL, 3155 },
/*035*/ { "GL_雾质量", "GL_FOG_HINT", NULL, 1, CT_NUM, NULL, 3156 },
/*036*/ { "GL_不考虑", "GL_DONT_CARE", NULL, 1, CT_NUM, NULL, 4352 },
/*037*/ { "GL_快速", "GL_FASTEST", NULL, 1, CT_NUM, NULL, 4353 },
/*038*/ { "GL_最佳", "GL_NICEST", NULL, 1, CT_NUM, NULL, 4354 },
/*039*/ { "GL_失效", "GL_NEVER", NULL, 1, CT_NUM, NULL, 512 },
/*040*/ { "GL_小于", "GL_LESS", NULL, 1, CT_NUM, NULL, 513 },
/*041*/ { "GL_等于", "GL_EQUAL", NULL, 1, CT_NUM, NULL, 514 },
/*042*/ { "GL_小于等于", "GL_LEQUAL", NULL, 1, CT_NUM, NULL, 515 },
/*043*/ { "GL_大于", "GL_GREATER", NULL, 1, CT_NUM, NULL, 516 },
/*044*/ { "GL_不等于", "GL_NOTEQUAL", NULL, 1, CT_NUM, NULL, 517 },
/*045*/ { "GL_大于等于", "GL_GEQUAL", NULL, 1, CT_NUM, NULL, 518 },
/*046*/ { "GL_有效", "GL_ALWAYS", NULL, 1, CT_NUM, NULL, 519 },
/*047*/ { "GL_保持当前值", "GL_KEEP", NULL, 1, CT_NUM, NULL, 7680 },
/*048*/ { "GL_替换当前值", "GL_REPLACE", NULL, 1, CT_NUM, NULL, 7681 },
/*049*/ { "GL_增加当前值", "GL_INCR", NULL, 1, CT_NUM, NULL, 7682 },
/*050*/ { "GL_减去当前值", "GL_DECR", NULL, 1, CT_NUM, NULL, 7683 },
/*051*/ { "GL_倒置当前值", "GL_INVERT", NULL, 1, CT_NUM, NULL, 5386 },
/*052*/ { "GL_源值颜色比例", "GL_SRC_COLOR", NULL, 1, CT_NUM, NULL, 768 },
/*053*/ { "GL_源值颜色比例反", "GL_ONE_MINUS_SRC_COLOR", NULL, 1, CT_NUM, NULL, 769 },
/*054*/ { "GL_源值通道比例", "GL_SRC_ALPHA", NULL, 1, CT_NUM, NULL, 770 },
/*055*/ { "GL_源值通道比例反", "GL_ONE_MINUS_SRC_ALPHA", NULL, 1, CT_NUM, NULL, 771 },
/*056*/ { "GL_目标值通道比例", "GL_DST_ALPHA", NULL, 1, CT_NUM, NULL, 772 },
/*057*/ { "GL_目标值通道比例反", "GL_ONE_MINUS_DST_ALPHA", NULL, 1, CT_NUM, NULL, 773 },
/*058*/ { "GL_目标值颜色比例", "GL_DST_COLOR", NULL, 1, CT_NUM, NULL, 774 },
/*059*/ { "GL_目标值颜色比例反", "GL_ONE_MINUS_DST_COLOR", NULL, 1, CT_NUM, NULL, 775 },
/*060*/ { "GL_源值饱和通道", "GL_SRC_ALPHA_SATURATE", NULL, 1, CT_NUM, NULL, 776 },
/*061*/ { "GL_获取缓存", "GL_ACCUM", NULL, 1, CT_NUM, NULL, 256 },
/*062*/ { "GL_载入缓存", "GL_LOAD", NULL, 1, CT_NUM, NULL, 257 },
/*063*/ { "GL_返回缓存", "GL_RETURN", NULL, 1, CT_NUM, NULL, 258 },
/*064*/ { "GL_缩放缓存", "GL_MULT", NULL, 1, CT_NUM, NULL, 259 },
/*065*/ { "GL_加入缓存", "GL_ADD", NULL, 1, CT_NUM, NULL, 260 },
/*066*/ { "GL_深度缓存位", "GL_DEPTH_BUFFER_BIT", NULL, 1, CT_NUM, NULL, 256 },
/*067*/ { "GL_累积缓存位", "GL_ACCUM_BUFFER_BIT", NULL, 1, CT_NUM, NULL, 512 },
/*068*/ { "GL_模板缓存位", "GL_STENCIL_BUFFER_BIT", NULL, 1, CT_NUM, NULL, 1024 },
/*069*/ { "GL_颜色缓存位", "GL_COLOR_BUFFER_BIT", NULL, 1, CT_NUM, NULL, 16384 },
/*070*/ { "GL_通道测试", "GL_ALPHA_TEST", NULL, 1, CT_NUM, NULL, 3008 },
/*071*/ { "GL_混合测试", "GL_BLEND", NULL, 1, CT_NUM, NULL, 3042 },
/*072*/ { "GL_材质颜色", "GL_COLOR_MATERIAL", NULL, 1, CT_NUM, NULL, 2903 },
/*073*/ { "GL_深度测试", "GL_DEPTH_TEST", NULL, 1, CT_NUM, NULL, 2929 },
/*074*/ { "GL_雾", "GL_FOG", NULL, 1, CT_NUM, NULL, 2912 },
/*075*/ { "GL_光照", "GL_LIGHTING", NULL, 1, CT_NUM, NULL, 2896 },
/*076*/ { "GL_线型", "GL_LINE_STIPPLE", NULL, 1, CT_NUM, NULL, 2852 },
/*077*/ { "GL_单位法向量", "GL_NORMALIZE", NULL, 1, CT_NUM, NULL, 2977 },
/*078*/ { "GL_精选面", "GL_CULL_FACE", NULL, 1, CT_NUM, NULL, 2884 },
/*079*/ { "GL_图案填充", "GL_POLYGON_STIPPLE", NULL, 1, CT_NUM, NULL, 2882 },
/*080*/ { "GL_裁剪测试", "GL_SCISSOR_TEST", NULL, 1, CT_NUM, NULL, 3089 },
/*081*/ { "GL_模板测试", "GL_STENCIL_TEST", NULL, 1, CT_NUM, NULL, 2960 },
/*082*/ { "GL_一维纹理", "GL_TEXTURE_1D", NULL, 1, CT_NUM, NULL, 3552 },
/*083*/ { "GL_二维纹理", "GL_TEXTURE_2D", NULL, 1, CT_NUM, NULL, 3553 },
/*084*/ { "GL_生成S向纹理", "GL_TEXTURE_GEN_S", NULL, 1, CT_NUM, NULL, 3168 },
/*085*/ { "GL_生成T向纹理", "GL_TEXTURE_GEN_T", NULL, 1, CT_NUM, NULL, 3169 },
/*086*/ { "GL_零号光源", "GL_LIGHT0", NULL, 1, CT_NUM, NULL, 16384 },
/*087*/ { "GL_一号光源", "GL_LIGHT1", NULL, 1, CT_NUM, NULL, 16385 },
/*088*/ { "GL_二号光源", "GL_LIGHT2", NULL, 1, CT_NUM, NULL, 16386 },
/*089*/ { "GL_三号光源", "GL_LIGHT3", NULL, 1, CT_NUM, NULL, 16387 },
/*090*/ { "GL_四号光源", "GL_LIGHT4", NULL, 1, CT_NUM, NULL, 16388 },
/*091*/ { "GL_五号光源", "GL_LIGHT5", NULL, 1, CT_NUM, NULL, 16389 },
/*092*/ { "GL_六号光源", "GL_LIGHT6", NULL, 1, CT_NUM, NULL, 16390 },
/*093*/ { "GL_七号光源", "GL_LIGHT7", NULL, 1, CT_NUM, NULL, 16391 },
/*094*/ { "GL_环境光", "GL_AMBIENT", NULL, 1, CT_NUM, NULL, 4608 },
/*095*/ { "GL_漫反射光", "GL_DIFFUSE", NULL, 1, CT_NUM, NULL, 4609 },
/*096*/ { "GL_镜面光", "GL_SPECULAR", NULL, 1, CT_NUM, NULL, 4610 },
/*097*/ { "GL_光源位置", "GL_POSITION", NULL, 1, CT_NUM, NULL, 4611 },
/*098*/ { "GL_光源聚光方向", "GL_SPOT_DIRECTION", NULL, 1, CT_NUM, NULL, 4612 },
/*099*/ { "GL_光源聚光指数", "GL_SPOT_EXPONENT", NULL, 1, CT_NUM, NULL, 4613 },
/*100*/ { "GL_点光源聚光截止角", "GL_SPOT_CUTOFF", NULL, 1, CT_NUM, NULL, 4614 },
/*101*/ { "GL_常量衰减", "GL_CONSTANT_ATTENUATION", NULL, 1, CT_NUM, NULL, 4615 },
/*102*/ { "GL_线形衰减", "GL_LINEAR_ATTENUATION", NULL, 1, CT_NUM, NULL, 4616 },
/*103*/ { "GL_二次方衰减", "GL_QUADRATIC_ATTENUATION", NULL, 1, CT_NUM, NULL, 4617 },
/*104*/ { "GL_光源观察点模式", "GL_LIGHT_MODEL_LOCAL_VIEWER", NULL, 1, CT_NUM, NULL, 2897 },
/*105*/ { "GL_双面光模式", "GL_LIGHT_MODEL_TWO_SIDE", NULL, 1, CT_NUM, NULL, 2898 },
/*106*/ { "GL_全局光模式", "GL_LIGHT_MODEL_AMBIENT", NULL, 1, CT_NUM, NULL, 2899 },
/*107*/ { "GL_散射光", "GL_EMISSION", NULL, 1, CT_NUM, NULL, 5632 },
/*108*/ { "GL_亮光", "GL_SHININESS", NULL, 1, CT_NUM, NULL, 5633 },
/*109*/ { "GL_环境光和漫反射光", "GL_AMBIENT_AND_DIFFUSE", NULL, 1, CT_NUM, NULL, 5634 },
/*110*/ { "GL_颜色索引", "GL_COLOR_INDEXES", NULL, 1, CT_NUM, NULL, 5635 },
/*111*/ { "GL_雾索引", "GL_FOG_INDEX", NULL, 1, CT_NUM, NULL, 2913 },
/*112*/ { "GL_雾密度", "GL_FOG_DENSITY", NULL, 1, CT_NUM, NULL, 2914 },
/*113*/ { "GL_雾起点", "GL_FOG_START", NULL, 1, CT_NUM, NULL, 2915 },
/*114*/ { "GL_雾终点", "GL_FOG_END", NULL, 1, CT_NUM, NULL, 2916 },
/*115*/ { "GL_雾模式", "GL_FOG_MODE", NULL, 1, CT_NUM, NULL, 2917 },
/*116*/ { "GL_线性", "GL_LINEAR", NULL, 1, CT_NUM, NULL, 9729 },
/*117*/ { "GL_雾颜色", "GL_FOG_COLOR", NULL, 1, CT_NUM, NULL, 2918 },
/*118*/ { "GL_雾模式1", "GL_EXP", NULL, 1, CT_NUM, NULL, 2048 },
/*119*/ { "GL_雾模式2", "GL_EXP2", NULL, 1, CT_NUM, NULL, 2049 },
/*120*/ { "GL_平坦", "GL_FLAT", NULL, 1, CT_NUM, NULL, 7424 },
/*121*/ { "GL_光滑", "GL_SMOOTH", NULL, 1, CT_NUM, NULL, 7425 },
/*122*/ { "GL_纹理插值约束", "GL_CLAMP", NULL, 1, CT_NUM, NULL, 10496 },
/*123*/ { "GL_纹理重复约束", "GL_REPEAT", NULL, 1, CT_NUM, NULL, 10497 },
/*124*/ { "GL_放大纹理滤波", "GL_TEXTURE_MAG_FILTER", NULL, 1, CT_NUM, NULL, 10240 },
/*125*/ { "GL_缩小纹理滤波", "GL_TEXTURE_MIN_FILTER", NULL, 1, CT_NUM, NULL, 10241 },
/*126*/ { "GL_S向纹理约束", "GL_TEXTURE_WRAP_S", NULL, 1, CT_NUM, NULL, 10242 },
/*127*/ { "GL_T向纹理约束", "GL_TEXTURE_WRAP_T", NULL, 1, CT_NUM, NULL, 10243 },
/*128*/ { "GL_最近滤镜", "GL_NEAREST", NULL, 1, CT_NUM, NULL, 9728 },
/*129*/ { "GL_线性滤镜", "GL_LINEAR", NULL, 1, CT_NUM, NULL, 9729 },
/*130*/ { "GL_最近多贴图滤镜", "GL_NEAREST_MIPMAP_NEAREST", NULL, 1, CT_NUM, NULL, 9984 },
/*131*/ { "GL_多贴图线性内插滤镜", "GL_LINEAR_MIPMAP_NEAREST", NULL, 1, CT_NUM, NULL, 9985 },
/*132*/ { "GL_线性内插多贴图滤镜", "GL_NEAREST_MIPMAP_LINEAR", NULL, 1, CT_NUM, NULL, 9986 },
/*133*/ { "GL_内插多贴图的线性内插滤镜", "GL_LINEAR_MIPMAP_LINEAR", NULL, 1, CT_NUM, NULL, 9987 },
/*134*/ { "GL_单个颜色索引", "GL_COLOR_INDEX", NULL, 1, CT_NUM, NULL, 6400 },
/*135*/ { "GL_模板索引", "GL_STENCIL_INDEX", NULL, 1, CT_NUM, NULL, 6401 },
/*136*/ { "GL_红色分量", "GL_RED", NULL, 1, CT_NUM, NULL, 6403 },
/*137*/ { "GL_绿色分量", "GL_GREEN ", NULL, 1, CT_NUM, NULL, 6404 },
/*138*/ { "GL_蓝色分量", "GL_BLUE", NULL, 1, CT_NUM, NULL, 6405 },
/*139*/ { "GL_混合通道分量", "GL_ALPHA", NULL, 1, CT_NUM, NULL, 6406 },
/*140*/ { "GL_红绿蓝分量", "GL_RGB", NULL, 1, CT_NUM, NULL, 6407 },
/*141*/ { "GL_红绿蓝混合通道分量", "GL_RGBA", NULL, 1, CT_NUM, NULL, 6408 },
/*142*/ { "GL_亮度", "GL_LUMINANCE", NULL, 1, CT_NUM, NULL, 6409 },
/*143*/ { "GL_亮度和混合通道分量", "GL_LUMINANCE_ALPHA", NULL, 1, CT_NUM, NULL, 6410 },
/*144*/ { "GL_纹理映射模式", "GL_TEXTURE_ENV_MODE", NULL, 1, CT_NUM, NULL, 8704 },
/*145*/ { "GL_纹理映射颜色", "GL_TEXTURE_ENV_COLOR", NULL, 1, CT_NUM, NULL, 8705 },
/*146*/ { "GL_调节处理", "GL_MODULATE", NULL, 1, CT_NUM, NULL, 8448 },
/*147*/ { "GL_粘贴处理", "GL_DECAL", NULL, 1, CT_NUM, NULL, 8449 },
/*148*/ { "GL_S分量", "GL_S", NULL, 1, CT_NUM, NULL, 8192 },
/*149*/ { "GL_T分量", "GL_T", NULL, 1, CT_NUM, NULL, 8193 },
/*150*/ { "GL_纹理生成模式", "GL_TEXTURE_GEN_MODE", NULL, 1, CT_NUM, NULL, 9472 },
/*151*/ { "GL_模型平面", "GL_OBJECT_PLANE", NULL, 1, CT_NUM, NULL, 9473 },
/*152*/ { "GL_观测平面", "GL_EYE_PLANE", NULL, 1, CT_NUM, NULL, 9474 },
/*153*/ { "GL_观测线性插值", "GL_EYE_LINEAR", NULL, 1, CT_NUM, NULL, 9216 },
/*154*/ { "GL_模型线性插值", "GL_OBJECT_LINEAR", NULL, 1, CT_NUM, NULL, 9217 },
/*155*/ { "GL_纹理贴图形状", "GL_SPHERE_MAP", NULL, 1, CT_NUM, NULL, 9218 },
/*156*/ { "GL_编译列表", "GL_COMPILE", NULL, 1, CT_NUM, NULL, 4864 },
/*157*/ { "GL_编译并且执行列表", "GL_COMPILE_AND_EXECUTE", NULL, 1, CT_NUM, NULL, 4865 },
/*158*/ { "GL_颜色类型", "GL_COLOR", NULL, 1, CT_NUM, NULL, 6144 },
/*159*/ { "GL_深度类型", "GL_DEPTH", NULL, 1, CT_NUM, NULL, 6145 },
/*160*/ { "GL_模板类型", "GL_STENCIL", NULL, 1, CT_NUM, NULL, 6146 },
/*161*/ { "GL_光滑线", "GL_LINE_SMOOTH", NULL, 1, CT_NUM, NULL, 2848 },
/*162*/ { "GL_光滑点", "GL_POINT_SMOOTH", NULL, 1, CT_NUM, NULL, 2832 },
/*163*/ { "GL_曲线坐标", "GL_MAP1_VERTEX_3", NULL, 1, CT_NUM, NULL, 3479 },
/*164*/ { "GL_曲面坐标", "GL_MAP2_VERTEX_3", NULL, 1, CT_NUM, NULL, 3511 },
/*165*/ { "GL_自动法向量", "GL_AUTO_NORMAL", NULL, 1, CT_NUM, NULL, 3456 },
};
int g_ConstInfo_opengl_global_var_count = sizeof(g_ConstInfo_opengl_global_var) / sizeof(g_ConstInfo_opengl_global_var[0]);
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/JYtechnology/opengl.git
git@gitee.com:JYtechnology/opengl.git
JYtechnology
opengl
opengl
master

搜索帮助