mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
6a22202ce5
- 删除旧版iup-3.31_Win64_dllw6_lib目录及其所有二进制文件 - 将IUP和CD库重新组织为独立目录结构,包含头文件和静态库 - 更新CMakeLists.txt以链接新的静态库(iupcontrols、iupimglib、cd等) - 修改main.c以显式初始化IupControls和IupImageLib扩展库 - 更新回调函数签名以匹配IUP Matrix控件的实际参数 - 调整UI工具函数以使用Matrix控件的属性(MARKED、NUMLIN等) - 更新安装脚本仅复制实际依赖的DLL文件 - 添加所有缺失的IUP和CD头文件以支持完整功能
98 lines
2.5 KiB
C
98 lines
2.5 KiB
C
/** \file
|
|
* \brief OpenGL canvas for Iup.
|
|
*
|
|
* See Copyright Notice in "iup.h"
|
|
*/
|
|
|
|
#ifndef __IUPGL_H
|
|
#define __IUPGL_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Attributes
|
|
** To set the appropriate visual (pixel format) the following
|
|
** attributes may be specified. Their values should be set
|
|
** before the canvas is mapped to the scrren.
|
|
** After mapping, changing their values has no effect.
|
|
*/
|
|
#ifndef IUP_BUFFER /* IUP_SINGLE (defaut) or IUP_DOUBLE */
|
|
#define IUP_BUFFER "BUFFER"
|
|
#endif
|
|
#ifndef IUP_STEREO /* IUP_NO (defaut) or IUP_YES */
|
|
#define IUP_STEREO "STEREO"
|
|
#endif
|
|
#ifndef IUP_BUFFER_SIZE /* Number of bits if index mode */
|
|
#define IUP_BUFFER_SIZE "BUFFER_SIZE"
|
|
#endif
|
|
#ifndef IUP_RED_SIZE /* Number of red bits */
|
|
#define IUP_RED_SIZE "RED_SIZE"
|
|
#endif
|
|
#ifndef IUP_GREEN_SIZE /* Number of green bits */
|
|
#define IUP_GREEN_SIZE "GREEN_SIZE"
|
|
#endif
|
|
#ifndef IUP_BLUE_SIZE /* Number of blue bits */
|
|
#define IUP_BLUE_SIZE "BLUE_SIZE"
|
|
#endif
|
|
#ifndef IUP_ALPHA_SIZE /* Number of alpha bits */
|
|
#define IUP_ALPHA_SIZE "ALPHA_SIZE"
|
|
#endif
|
|
#ifndef IUP_DEPTH_SIZE /* Number of bits in depth buffer */
|
|
#define IUP_DEPTH_SIZE "DEPTH_SIZE"
|
|
#endif
|
|
#ifndef IUP_STENCIL_SIZE /* Number of bits in stencil buffer */
|
|
#define IUP_STENCIL_SIZE "STENCIL_SIZE"
|
|
#endif
|
|
#ifndef IUP_ACCUM_RED_SIZE /* Number of red bits in accum. buffer */
|
|
#define IUP_ACCUM_RED_SIZE "ACCUM_RED_SIZE"
|
|
#endif
|
|
#ifndef IUP_ACCUM_GREEN_SIZE /* Number of green bits in accum. buffer */
|
|
#define IUP_ACCUM_GREEN_SIZE "ACCUM_GREEN_SIZE"
|
|
#endif
|
|
#ifndef IUP_ACCUM_BLUE_SIZE /* Number of blue bits in accum. buffer */
|
|
#define IUP_ACCUM_BLUE_SIZE "ACCUM_BLUE_SIZE"
|
|
#endif
|
|
#ifndef IUP_ACCUM_ALPHA_SIZE /* Number of alpha bits in accum. buffer */
|
|
#define IUP_ACCUM_ALPHA_SIZE "ACCUM_ALPHA_SIZE"
|
|
#endif
|
|
|
|
|
|
/* Attribute values */
|
|
#ifndef IUP_DOUBLE
|
|
#define IUP_DOUBLE "DOUBLE"
|
|
#endif
|
|
#ifndef IUP_SINGLE
|
|
#define IUP_SINGLE "SINGLE"
|
|
#endif
|
|
#ifndef IUP_INDEX
|
|
#define IUP_INDEX "INDEX"
|
|
#endif
|
|
#ifndef IUP_RGBA
|
|
#define IUP_RGBA "RGBA"
|
|
#endif
|
|
#ifndef IUP_YES
|
|
#define IUP_YES "YES"
|
|
#endif
|
|
#ifndef IUP_NO
|
|
#define IUP_NO "NO"
|
|
#endif
|
|
|
|
void IupGLCanvasOpen(void);
|
|
|
|
Ihandle *IupGLCanvas(const char *action);
|
|
Ihandle* IupGLBackgroundBox(Ihandle* child);
|
|
|
|
void IupGLMakeCurrent(Ihandle* ih);
|
|
int IupGLIsCurrent(Ihandle* ih);
|
|
void IupGLSwapBuffers(Ihandle* ih);
|
|
void IupGLPalette(Ihandle* ih, int index, float r, float g, float b);
|
|
void IupGLUseFont(Ihandle* ih, int first, int count, int list_base);
|
|
void IupGLWait(int gl);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|