CMGDK r49-rc2
|
__MAKE_HGL__&&!__MAKE_PLUGIN__ 更多...
名字空间 | |
namespace | affect |
namespace | apr |
namespace | cdb |
Chinese DataBase用名字空间 | |
namespace | ctrl |
namespace | endian |
namespace | findpath |
namespace | GraphicsEffect |
namespace | gui |
namespace | info |
namespace | io |
namespace | loginfo |
namespace | loginfo_plugins |
namespace | network |
网络相关处理模块名字空间 | |
namespace | os |
操作系统相关功能名字空间 | |
namespace | platform |
namespace | sql |
namespace | texture_filter_def |
namespace | texture_type_def |
namespace | texture_wrap_def |
namespace | util |
namespace | wide |
宽字符串相关处理函数所占名字空间 | |
组合类型 | |
class | Font |
字体数据结构 更多... | |
class | HGP |
HGP图片管理类 更多... | |
class | HGPLayer |
HGP图层类 更多... | |
class | HGPSame |
class | HTP |
class | HTPBase |
class | HTPBaseLayer |
class | HTPBuffer |
class | HTPResManage |
class | HTPLayer |
class | HTPMerge |
class | HTPPart |
class | HTPPartLayer |
class | HTPTile |
class | TexFont |
class | TileAnime |
Tile动画控制 更多... | |
struct | TileObject |
Tile对象 更多... | |
class | TileData |
Tile数据管理 更多... | |
struct | Makeup |
class | TileFont |
Tile字体 更多... | |
class | TileGroup |
class | TileLibrary |
class | TilePicture |
Tile图片 更多... | |
class | VS16Bitmap |
class | VSLumAlpha |
class | VS24Bitmap |
class | VSRGB |
class | VSBGR |
class | VS32Bitmap |
class | VSRGBA |
class | VSBGRA |
class | VS8Bitmap |
class | VSLum |
class | VSAlpha |
class | VSBase |
虚拟屏幕基类 更多... | |
class | AffectorControl |
class | AffectorObject |
class | AudioBuffer |
音频数据缓冲区类 更多... | |
class | AudioManage |
class | AudioPlayer |
音频播放器基类 更多... | |
class | AudioSource |
音频源类 更多... | |
class | ConeAngle |
锥形角度数据类 更多... | |
class | AudioListener |
收听者管理类 更多... | |
struct | ReferenceValue |
参考量 更多... | |
class | CompressStream |
class | DecompressStream |
class | ExternalModule |
外部模块调用类 更多... | |
struct | FileInfo |
文件信息 更多... | |
struct | VolumeInfo |
class | AnimeTexture |
class | BlendMode |
混合模式类 更多... | |
class | CubeMap |
class | DisplayList |
显示列表类 更多... | |
class | DrawArray |
批量绘制处理类 更多... | |
class | DrawArrayBufferInterface |
class | EnvMap |
环境映射 更多... | |
class | FBO |
帧缓冲对象 更多... | |
class | MultiTexture |
多重贴图 更多... | |
struct | OpenGLHardwareSupport |
class | PBO |
Pixel Buffer Object. 更多... | |
class | PointSprite |
点精灵类 更多... | |
class | GLSL |
GLSL实现类 更多... | |
class | Shader |
class | Texture |
贴图基类 更多... | |
class | Texture1D |
一维贴图 更多... | |
class | Texture2D |
2D贴图处理类 更多... | |
class | TextureAnime |
class | HAC |
HAC-3包裹文件支持类 更多... | |
struct | HacResIndex |
class | MemManage |
内存管理 更多... | |
class | MemoryPool |
class | TheoraMovie |
class | HTTPDownload |
class | _Object |
最终基类 更多... | |
struct | MethodPtr |
class | ConsoleFlowControl |
流程对象控制类 更多... | |
class | IAOFlowControl |
class | ConsoleFlowObject |
流程对象基类 更多... | |
class | ConsoleObjectControl |
对象控制器 更多... | |
class | DataObject |
class | EnumObject |
class | EventObject |
事件对象 更多... | |
class | FlowControl |
流程对象控制类 更多... | |
class | FlowObject |
流程对象基类 更多... | |
class | GUIObject |
GUI对象 更多... | |
class | MultiFlowControl |
多页控制控件 更多... | |
class | Object |
对象基类 更多... | |
class | ObjectControl |
对象控制器 更多... | |
class | VisualObject |
可视对象基类 更多... | |
class | BaseApplication |
struct | EventFunc |
class | Property |
class | PropertyObject |
class | ConsoleApplication |
class | GraphicsApplication |
图形应用序基类 更多... | |
class | OpenGLApplication |
struct | CpuInfo |
struct | MemInfo |
struct | CMGDKPATH |
struct | SystemInfo |
系统信息结构 更多... | |
class | SystemInitInfo |
系统初始化信息类 更多... | |
class | Window |
class | WinGLWindow |
class | WinOpenGLApplication |
class | WinWindow |
class | PlugIn |
插件 更多... | |
class | ExternalPlugIn |
struct | PlugInFlagData |
class | Process |
class | ProcMutex |
class | SharedMemory |
class | PseudoRandom |
假随机数 更多... | |
class | DevilVM |
《魔鬼》虚拟机类 更多... | |
struct | vm_method_ptr |
class | FileStream |
文件流操作类 更多... | |
class | MemStream |
内存流操作类 更多... | |
class | PartStream |
小块流 更多... | |
class | Stream |
流式数据访问基类 更多... | |
class | atom_uint |
原子uint32数据 更多... | |
class | CondVar |
class | Loader |
加载器 更多... | |
class | RWLock |
class | Semaphore |
信号 更多... | |
class | Thread |
线程类 更多... | |
class | ThreadMutex |
排斥访问类(仅当前进程) 更多... | |
class | BitArray |
位队列 更多... | |
class | CircleList |
环形链表类 更多... | |
class | ClasList |
分类对象模板 更多... | |
struct | COLOR_DEF |
class | Color3f |
RGB三原色类 更多... | |
class | Color4f |
RGBA四原色类 更多... | |
class | CryptInt |
加密型int变量类 更多... | |
class | Time |
时间类 更多... | |
class | Date |
日期类 更多... | |
struct | FudItem |
class | FinUseData |
缓冲区管理模板(以最终使用时间为基准) 更多... | |
class | FixedList |
定长列表 更多... | |
class | FixedObjectList |
定长对象列表 更多... | |
class | MTFixedList |
<多线程定长数据列表 更多... | |
class | MTFixedObjectList |
<多线程定长对象列表 更多... | |
struct | IndexFlagData |
class | _IndexData |
class | IndexData |
class | _IndexObject |
class | CusIndexObject |
class | IndexObject |
class | int128 |
int128位整型数 更多... | |
class | Limit |
限制型数据模板类 更多... | |
class | List |
列表处理类 更多... | |
class | CusObjectList |
对象列表处理类 更多... | |
class | ObjectList |
class | ObjectBuffer |
class | ObjectBufferFromHAC |
class | OnlyList |
class | Pool |
数据池 更多... | |
class | MultiThreadPool |
多线程数据池 更多... | |
class | ObjectPool |
对象池 更多... | |
class | MTObjectPool |
多线程对象池 更多... | |
class | MemBlockPool |
内存块池 更多... | |
class | MTMemBlockPool |
多线程内存块池 更多... | |
class | IndexObjectPool |
class | MTIndexObjectPool |
class | ProbSelect |
机率选择器 更多... | |
class | Queue |
队列顺序数据访问类 更多... | |
class | QueueObject |
堆栈对象 更多... | |
class | RandSelect |
随机选择 更多... | |
class | RectScope2 |
矩形范围类 更多... | |
struct | RefFlagData |
class | ResManage |
class | ResManageByName |
class | ResManageHAC |
class | RingBuffer |
多线程环形数据流 更多... | |
class | Set |
class | ShadeNumber |
渐变数模板 更多... | |
struct | RefCount |
struct | SmartData |
struct | SmartArrayData |
class | _Smart |
class | SharedPtr |
共享指针数据类 更多... | |
class | SharedArray |
共享阵列数据类 更多... | |
class | WeakPtr |
class | WeakArray |
class | Stack |
堆栈顺序数据访问类 更多... | |
class | StackObject |
堆栈对象 更多... | |
class | StringList |
字符串列表处理类 更多... | |
class | StringProperty |
class | Table |
class | TDFNode |
HyzTDF节点类 更多... | |
class | TreeNode |
树型数据节点类 更多... | |
class | Vertex2 |
XY 2D顶点坐标类模板 更多... | |
class | WideString |
宽字符串处理类 更多... | |
class | PropertyString |
struct | PrivateString |
class | Comparator |
class | FindPath |
寻路模块基类 更多... | |
class | KeyMapping |
<按键映射类 更多... | |
class | PList |
属性列表 更多... | |
class | ShortCut |
class | SortBase |
class | HeapSort |
class | TaskManager |
任务管理器 更多... | |
class | Timer |
计时器类 更多... | |
class | VCLBitmap |
struct | CheckInterface |
struct | Hac3File |
class | HAC3 |
struct | FileMapping |
struct | FolderMapping |
class | HacMapping |
struct | HacFolder |
class | HacTemplate |
struct | LogInterface |
class | LogPlugIn |
日志插件 更多... | |
class | CondVarAPR |
class | CondVarNT6 |
class | RWLockNT6 |
struct | CompressPlugInInterface |
struct | CharBitmap |
class | FontUnit |
class | WinFont |
class | HGPLayerNPOT |
class | HGPLayerPOT |
class | HGPLoader |
struct | BitmapLA |
struct | BitmapRGBA |
struct | ImageLayer |
class | Image |
struct | image_layer |
class | HGPSameLayer |
class | TileLibraryManage |
class | FullTileLibrary |
class | TileBuffer |
class | FUDTileLibrary |
struct | ImagePlugInInterface |
struct | TARGB32 |
struct | TPicRegion |
struct | bmdata |
class | DrawArrayBuffer |
class | Texture2DLoader |
struct | AudioPlugInInterface |
union | DevilSystemFuncParam |
struct | DevilFuncMap |
struct | DevilPropertyMap |
class | DevilCommand |
class | DevilFuncCall |
class | DevilValueInterface |
class | DevilValue |
class | DevilCompInterface |
class | DevilValueProperty |
class | DevilValueFuncMap |
class | DevilScriptValue |
class | DevilSystemFuncCall |
class | DevilSystemFuncCallFixed |
class | DevilScriptFuncCall |
class | DevilGoto |
class | DevilCompGoto |
class | DevilReturn |
class | DevilSystemValueEqu |
struct | ScriptFuncRunState |
class | DevilEngine |
class | DevilEnum |
枚举定义基类,用于在DevilEngine中定义 更多... | |
class | DevilEnumTypedef |
枚举数据类型定义基类 更多... | |
class | DevilEnumSigned |
有符号整数型枚举定义基类 更多... | |
class | DevilEnumUnsigned |
无符号整数型枚举定义基类 更多... | |
class | DevilEnumFloat |
浮点数枚举定义基类 更多... | |
class | DevilEnumString |
字符串枚举定义基类 更多... | |
class | DevilFunc |
class | DevilParse |
class | DevilVariable |
struct | DirectShowMovieInterface |
struct | th_img_plane |
struct | TheoraMovieInterface |
class | MovieDecode |
struct | JoystickInterface |
类型定义 | |
typedef ObjectBuffer< HGP > | HGPBuffer |
HGP图片缓冲管理器 | |
typedef ObjectBufferFromHAC< HGP > | HGPBufferHAC |
HGP图片缓冲管理器(从HAC名中取得文件) | |
typedef ResManageByName< HGP > | HGPResManage |
HGP图片资源管理器 | |
typedef ResManageHAC< HGP > | HGPResManageHAC |
HGP图片资源管理器(从HAC名中取得文件) | |
typedef ObjectBuffer< HGPSame > | HGPSameBuffer |
HGPSame图片缓冲管理器 | |
typedef ObjectBufferFromHAC < HGPSame > | HGPSameBufferHAC |
HGPSame图片缓冲管理器(从HAC名中取得文件) | |
typedef AudioFileType | AFT |
typedef ObjectBuffer< AudioBuffer > | AudioBufferBuffer |
AudioBuffer缓冲管理器 | |
typedef ObjectBufferFromHAC < AudioBuffer > | AudioBufferHAC |
AudioBuffer缓冲管理器(从HAC名中取得文件) | |
typedef unsigned int | CCP |
typedef CompressAlgorithm | CA |
压缩算法枚举定义 | |
typedef PointDataCompoment | PDC |
点数据成份 | |
typedef ObjectBuffer< Texture2D > | TexBuffer |
Texture2D图片缓冲管理器 | |
typedef ObjectBufferFromHAC < Texture2D > | TexBufferHAC |
Texture2D图片缓冲管理器(从HAC包中取得文件) | |
typedef ResManageByName < Texture2D > | TexResManage |
Texture2D图片资源管理器 | |
typedef ResManageHAC< Texture2D > | TexResManageHAC |
Texture2D图片资源管理器(从HAC名中取得文件) | |
typedef void(_Object::* | ObjectMemberFunc )() |
typedef unsigned char | uchar |
无符号字符型 | |
typedef unsigned int | uint |
无符号整型 | |
typedef signed __int8 | int8 |
有符号 8位整型 | |
typedef unsigned __int8 | uint8 |
无符号 8位整型 | |
typedef signed __int16 | int16 |
有符号16位整型 | |
typedef unsigned __int16 | uint16 |
无符号16位整型 | |
typedef signed __int32 | int32 |
有符号32位整型 | |
typedef unsigned __int32 | uint32 |
无符号32位整型 | |
typedef signed __int64 | int64 |
有符号64位整型 | |
typedef unsigned __int64 | uint64 |
无符号64位整型 | |
typedef volatile uint | avuint |
typedef const avuint | cavuint |
typedef RectScope2< double > | RectScope2d |
typedef RectScope2< float > | RectScope2f |
typedef RectScope2< int > | RectScope2i |
typedef Vertex2< int > | Vertex2i |
typedef Vertex2< uint > | Vertex2ui |
typedef Vertex2< float > | Vertex2f |
typedef Vertex2< double > | Vertex2d |
typedef Vertex2< int8 > | Vertex2b |
typedef Vertex2< uint8 > | Vertex2ub |
typedef Vertex2< int16 > | Vertex2s |
typedef Vertex2< uint16 > | Vertex2us |
typedef FindPathAlgorithml | FPA |
typedef cml::vector2i | Vector2i |
typedef cml::vector3i | Vector3i |
typedef cml::vector4i | Vector4i |
typedef cml::vector2f | Vector2f |
typedef cml::vector3f | Vector3f |
typedef cml::vector4f | Vector4f |
typedef cml::matrix33f_c | Matrix3f |
typedef cml::matrix44f_c | Matrix4f |
typedef void(* | PIMClearFunc )() |
typedef unsigned char | TUInt8 |
typedef void | MovieInterface |
typedef void | MOVIE |
typedef void | int |
枚举 | |
enum | VAlign { alNone, alTop, alBottom, alLeft, alRight, alClient, alLeftTop, alRightTop, alLeftBottom, alRightBottom, alTopCenter, alLeftCenter, alRightCenter, alBottomCenter, alCenter, alEnd } |
enum | TextAlignment { taNone = 0, taLeft, taCenter, taRight, taVRight, taEnd } |
文本排列方式 更多... | |
enum | AudioFileType { aftNone = 0, aftWAV, aftOGG, aftEnd } |
enum | CharacterCodePage { ccpNone = 0, ccpGBK = 936, ccpBig5 = 950, ccpGB2312 = 20936, ccpHZGB2312 = 52936, ccpGB18030 = 54936, ccpShiftJIS = 932, ccpJISX = 50222, ccpUTF7 = 65000, ccpUTF8 = 65001, ccpEnd } |
代码页枚举 更多... | |
enum | DrawArrayDataState { dasTemp = 0, dasStatic = GL_STATIC_DRAW, dasDynamic = GL_DYNAMIC_DRAW, dasStream = GL_STREAM_DRAW } |
enum | DrawArrayDataAccess { daaWrite = GL_WRITE_ONLY, daaRead = GL_READ_ONLY, daaReadWrite = GL_READ_WRITE } |
enum | PointDataCompoment { pdcColor3f = 1<<0, pdcColor4f = 1<<1, pdcVertex2f = 1<<2, pdcVertex3f = 1<<3, pdcVertex2i = 1<<6, pdcVertex3i = 1<<7, pdcTexCoord1f = 1<<8, pdcTexCoord2f = 1<<9, pdcTexCoord3f = 1<<10, pdcTexCoord4f = 1<<11, pdcTexCoord1i = 1<<16, pdcTexCoord2i = 1<<17, pdcTexCoord3i = 1<<18, pdcTexCoord4i = 1<<19, pdcNormal3f = 1<<20, pdc2Color3f = 1<<22, pdcFogCoord1f = 1<<23, pdcIndex1i = 1<<25 } |
enum | OpenGLChipVendor { ocvNone = 0, ocvATI, ocvNVidia, ocvIntel, ocv3DLabs, ocvPowerVR, ocvSiS, ocvVIA, ocvMatrox, ocvXGI, ocvMesa, ocvQuake2, ocvDirect3D, ocvVoodoo, ocvMicrosoft, ocvSciTech, ocvEnd } |
显卡OpenGL芯片生产商枚举 更多... | |
enum | GraphicsClientState { gcsNone = 0, gcsVertex, gcsTextureCoord, gcsColor, gcsNormal, gcsSecondaryColor, gcsFogCoord, gcsIndex, gcsEnd } |
enum | HacStatus { hsNone = 0, hsNotFind, hsOpenError, hsRead, hsReadError, hsEnd } |
enum | InputState { isNone = 0, isMove = 0x00000001, isLeft = 0x00000010, isLeftDown = 0x00000020, isLeftUp = 0x00000040, isLeftDoubleClick = 0x00000080, isMid = 0x00000100, isMidDown = 0x00000200, isMidUp = 0x00000400, isMidDoubleClick = 0x00000800, isRight = 0x00001000, isRightDown = 0x00002000, isRightUp = 0x00004000, isRightDoubleClick = 0x00008000, isShift = 0x10000000, isCtrl = 0x20000000 } |
enum | KeyButton { kb_NONE = 0, kbEsc, kbF1, kbF2, kbF3, kbF4, kbF5, kbF6, kbF7, kbF8, kbF9, kbF10, kbF11, kbF12, kbGrave, kb0, kb1, kb2, kb3, kb4, kb5, kb6, kb7, kb8, kb9, kbMinus, kbEquals, kbBackSlash, kbBackSpace, kbTab, kbQ, kbW, kbE, kbR, kbT, kbY, kbU, kbI, kbO, kbP, kbLeftBracket, kbRightBracket, kbCapsLock, kbA, kbS, kbD, kbF, kbG, kbH, kbJ, kbK, kbL, kbSemicolon, kbApostrophe, kbEnter, kbLeftShift, kbZ, kbX, kbC, kbV, kbB, kbN, kbM, kbComma, kbPeriod, kbSlash, kbRightShift, kbLeftCtrl, kbLeftOS, kbLeftAlt, kbSpace, kbRightAlt, kbRightOS, kbRightCtrl, kbPrintScreen, kbScrollLock, kbPause, kbInsert, kbDelete, kbHome, kbEnd, kbPageUp, kbPageDown, kbUp, kbDown, kbLeft, kbRight, kbNumLock, kbNumDivide, kbNumMultiply, kbNumSubtract, kbNum7, kbNum8, kbNum9, kbNum4, kbNum5, kbNum6, kbNumAdd, kbNum1, kbNum2, kbNum3, kbNum0, kbNumDecimal, kbNumEnter, kb_END } |
enum | JoyButton { jbNone = 0, jbUp, jbDown, jbLeft, jbRight, jb0, jb1, jb2, jb3, jb4, jb5, jb6, jb7, jb8, jb9, jb10, jb11, jb12, jb13, jb14, jb15, jb16, jb17, jb18, jb19, jb20, jb21, jb22, jb23, jb24, jb25, jb26, jb27, jb28, jb29, jb30, jb31, jbEnd, jbTriangle = jb0, jbCircle = jb1, jbFork = jb2, jbRectangle = jb3, jbL1 = jb6, jbL2 = jb4, jbR1 = jb7, jbR2 = jb5, jbSelect = jb8, jbStart = jb9 } |
enum | FlowObjectState { fosNotInit = 0, fosOK, fosExitNotClear, fosExitToBack, fosReturn, fosExit, fosExitFlow, fosExitGame } |
enum | AppRunMode { armNone = 0, armASync, armSync, armFast, armExternal, armServer, armEnd } |
enum | DevilVMState { dvsRun, dvsPause, dvsStop } |
enum | FileOpenMode { fomCreate = 0x01, fomOpenRead = 0x02, fomOpenWrite = 0x04, fomOpenReadWrite = fomOpenRead|fomOpenWrite, fomRead = fomOpenRead, fomWrite = fomOpenWrite, fomReadWrite = fomOpenReadWrite } |
文件访问模式枚举 更多... | |
enum | SeekOrigin { soBegin, soCurrent, soEnd } |
资源偏移方向枚举 更多... | |
enum | COLOR_ENUM { ceNone, ceAliceBlue, ceAntiqueWhite, ceAqua, ceAquaMarine, ceAzure, ceBeige, ceBisque, ceBlack, ceBlanchedAlmond, ceBlue, ceBlueViolet, ceBrown, ceBurlyWood, ceCadetBlue, ceChartreuse, ceChocolate, ceCoral, ceCornflowerBlue, ceCornsilk, ceCrimson, ceCyan, ceDarkBlue, ceDarkCyan, ceDarkGoldenrod, ceDarkGray, ceDarkGreen, ceDarkGrey, ceDarkKhaki, ceDarkMagenta, ceDarkOliveGreen, ceDarkOrange, ceDarkOrchid, ceDarkRed, ceDarkSalmon, ceDarkSeaGreen, ceDarkSlateBlue, ceDarkSlateGray, ceDarkSlateGrey, ceDarkTurquoise, ceDarkViolet, ceDeepPink, ceDeepSkyBlue, ceDimGray, ceDimGrey, ceDodgerBlue, ceFireBrick, ceFloralWhite, ceForestGreen, ceFuchsia, ceGainsboro, ceGhostWhite, ceGold, ceGoldenrod, ceGray, ceGreen, ceGreenYellow, ceGrey, ceHoneydew, ceHotPink, ceIndianRed, ceIndigo, ceIvory, ceKhaki, ceLavender, ceLavenderBlush, ceLawnGreen, ceLemonChiffon, ceLightBlue, ceLightCoral, ceLightCyan, ceLightGoldenrodYellow, ceLightGray, ceLightGreen, ceLightGrey, ceLightPink, ceLightSalmon, ceLightSeaGreen, ceLightSkyBlue, ceLightSlateGray, ceLightSlateGrey, ceLightSteelBlue, ceLightYellow, ceLime, ceLimeGreen, ceLinen, ceMagenta, ceMaroon, ceMediumAquamarine, ceMediumBlue, ceMediumOrchid, ceMediumPurple, ceMediumSeaGreen, ceMediumSlateBlue, ceMediumSpringGreen, ceMediumTurquoise, ceMediumVioletRed, ceMidNightBlue, ceMintCream, ceMistyRose, ceMoccasin, ceNavajoWhite, ceNavy, ceOldLace, ceOlive, ceOlivedrab, ceOrange, ceOrangeRed, ceOrchid, cePaleGoldenrod, cePaleGreen, cePaleTurquoise, cePaleVioletRed, cePapayawhip, cePeachpuff, cePeru, cePink, cePlum, cePowderBlue, cePurple, ceRed, ceRosyBrown, ceRoyalBlue, ceSaddleBrown, ceSalmon, ceSandyBrown, ceSeaGreen, ceSeaShell, ceSienna, ceSilver, ceSkyBlue, ceSlateBlue, ceSlateGray, ceSlateGrey, ceSnow, ceSpringGreen, ceSteelBlue, ceTan, ceTeal, ceThistle, ceTomato, ceTurquoise, ceViolet, ceWheat, ceWhite, ceWhiteSmoke, ceYellow, ceYellowGreen, ceEnd } |
enum | FindPathAlgorithml { fpaNone = 0, fpaAStar, fpaAStar8, fpaLine, fpaEnd } |
函数 | |
HGP * | CopyScreenToHGP (int, int, int, int, uint=GL_RGB8) |
根据当前屏幕图像生成一个HGP | |
bool | SaveBitmapToHGP (const wchar_t *, int, int, ColorType, void *, const wchar_t *ca=L"RLE", float=1) |
保存一个位图数据成HGP文件 | |
bool | SaveScreenToHGP (const wchar_t *, int, int, int, int, const wchar_t *ca=L"RLE", float=1) |
保存当前屏幕图像成HGP文件 | |
bool | SaveScreenToHGP (const wchar_t *, int, int, int, int, int, int, const wchar_t *ca=L"RLE", float=1) |
保存当前屏幕图像成HGP文件 | |
void | SetSameColor (int) |
void | SetClearSimplePixel (bool) |
设置色差容差 | |
bool | ConvertMultiLayerImageToHGP (const wchar_t *, const wchar_t *, ColorType=ctNone, const wchar_t *ca=L"RLE", float=1) |
转换多层图片到HGP | |
bool | ConvertMonoLayerImageToHGP (const wchar_t *, const wchar_t *, ColorType=ctNone, const wchar_t *ca=L"RLE", float=1) |
转换单层图片到HGP | |
bool | ConvertSameLayerImageToHGP (const wchar_t *, const wchar_t *, ColorType=ctNone, const wchar_t *ca=L"RLE", float=1) |
转换多层图片到HGP(并自动裁剪掉每一层与底层相同内容的部分) | |
bool | ConvertSameLayerImageToHGPTest (const wchar_t *, const wchar_t *, ColorType=ctNone, const wchar_t *ca=L"RLE", float=1) |
转换多层图片到HGP(并自动裁剪掉每一层与底层相同内容的部分) | |
bool | ConvertPSDToMapHGP (const wchar_t *, const wchar_t *, ColorType=ctNone, const wchar_t *ca=L"RLE", float=1) |
转换PSD到地图用HGP | |
void * | LoadHGP (TDFNode *, uint &, int &, int &, int8 &) |
void * | LoadHGP (Stream *, uint &, int &, int &, int8 &) |
void * | LoadHGP (const wchar_t *, uint &, int &, int &, int8 &) |
void * | LoadHGP (HAC *, const wchar_t *, uint &, int &, int &, int8 &) |
Loader * | ASyncLoadHGP (HGP **, HAC *, const wchar_t *) |
异步加载HGP图片 | |
Loader * | ASyncLoadHGPSame (HGP **, HAC *, const wchar_t *) |
异步加载HGPSame图片 | |
TileFont * | CreateTileFont (Font &, Font &, int=-1) |
创建一个字体,使用系统字体 | |
__inline TileFont * | CreateTileFont (const wchar_t *chs_fontname, const wchar_t *eng_fontname, int width, int height, bool bold, bool italic, int count) |
__inline TileFont * | CreateTileFont (const wchar_t *fontname, int width, int height, bool bold=false, bool italic=false, int num=-1) |
__inline TileFont * | CreateTileFont (const wchar_t *chs_fontname, const wchar_t *eng_fontname, int width, int height, int num=-1) |
void | FillBlock (uchar *dst, uchar value, int width, int height, int color, int stride) |
void | FillBlock (uchar *dst, const uchar *src, int width, int height, int color, int stride) |
VSBase * | CreateVS (ColorType) |
根据色彩类型创建一个虚拟屏幕 | |
VSBase * | CreateVS (int, int, ColorType) |
根据尺寸和色彩类型创建一个虚拟屏幕 | |
VSBase * | CreateVSFromFile (const wchar_t *, bool=true, bool=true) |
从贴图文件(*.TEX)加载一个虚拟屏幕 | |
VSBase * | CreateVSFromFile (HAC *, const wchar_t *) |
从贴图文件(*.TEX)加载一个虚拟屏幕 | |
VSBase * | CreateVSFromPixelBuffer (uint8 *, int, int, ColorType) |
关联象素缓冲区为虚拟屏幕 | |
enum_uint (CompressAlgorithm) | |
压缩算法 | |
const WideString | CAToName (CA) |
压缩法算枚举到名称转换 | |
CA | NameToCA (const WideString &) |
名称到压缩算法枚举转换 | |
uint32 | Compress (const WideString &, void *, uint32, void *, uint32, float=1) |
压缩数据 | |
uint32 | Decompress (const WideString &, void *, uint32, void *, uint32) |
解压缩数据 | |
uint32 | ImageCompress (const WideString &, void *, uint32, void *, int, int, int, float=1) |
压缩图像数据 | |
uint32 | ImageDecompress (const WideString &, void *, void *, uint32, int, int, int) |
解压缩图像数据 | |
uint32 __inline | Compress (CA ca, void *data, uint32 size, void *compressdata, uint32 out_max, float level=1) |
uint32 __inline | Decompress (CA ca, void *compressdata, uint32 size, void *out_data, uint32 out_max) |
uint32 __inline | ImageCompress (CA ca, void *buffer, uint32 buffer_size, void *data, int width, int height, int channels, int level) |
uint32 __inline | ImageDecompress (CA ca, void *data, void *buffer, uint32 size, int width, int height, int channels) |
bool | InitCore (SystemInfo &si, bool create_log) |
初始化核心 | |
void | CloseCore () |
关闭核心 | |
void | CreateTempFileName (const wchar_t *) |
创建临时文件名称 | |
wchar_t * | MergeFilename (const wchar_t *, const wchar_t *) |
组合路径名与文件名 | |
bool | MergeFilename (wchar_t *, int, const wchar_t *, const wchar_t *) |
组合路径名与文件名 | |
bool | FileCopy (const wchar_t *, const wchar_t *) |
文件复制 | |
bool | FileDelete (const wchar_t *) |
文件删除 | |
bool | FileMove (const wchar_t *, const wchar_t *) |
文件移动 | |
bool | FileRename (const wchar_t *, const wchar_t *) |
文件改名 | |
bool | FileConfirm (const wchar_t *) |
文件确认是否存在 | |
bool | FileComp (const wchar_t *, const wchar_t *) |
文件比较 | |
bool | FileCheckOpen (const wchar_t *) |
尝试打开文件 | |
bool | FileCheckOpen (const wchar_t *, const wchar_t *) |
尝试打开文件 | |
int | FileCanRead (const wchar_t *) |
检测文件是否可读 | |
int | FileCanWrite (const wchar_t *) |
检测文件是否可写 | |
int64 | LoadFileToMemory (const wchar_t *, void **) |
加载一个文件到内存 | |
int64 | SaveMemoryToFile (const wchar_t *, void *, int64) |
保存一块内存成文件 | |
void * | LoadFileToMemory (const wchar_t *, unsigned int, unsigned int, void *buf=0) |
加载一个文件的一部分到内存 | |
bool | SaveMemoryToFile (const wchar_t *, unsigned int, unsigned int, void *) |
保存一块内存到一个文件 | |
int64 | LoadTxtToMemory (Stream *, const int64, wchar_t **, int code_page=0) |
加载文本文件到内存 | |
int64 | LoadTxtToMemory (const wchar_t *, wchar_t **, int code_page=0) |
加载文本文件到内存 | |
bool | IsDirectory (const wchar_t *) |
判断这个名称是否是目录 | |
bool | MakePath (const wchar_t *) |
创建一个路径 | |
bool | DeletePath (const wchar_t *) |
删除一个路径 | |
void | DeleteTree (const wchar_t *) |
删除一个路径(包含所有文件) | |
wchar_t * | GetCurrentPath () |
取得当前路径,结果请自行delete[] | |
bool | GetFileInfo (const wchar_t *filename, struct FileInfo &) |
取得文件信息 | |
int | EnumFile (const wchar_t *folder_name, const wchar_t *find_name, void *data, bool proc_folder, bool proc_file, bool sub_folder, void(__cdecl *func)(void *, hgl::FileInfo &)) |
int | EnumFile (const wchar_t *folder_name, const wchar_t *find_name, void *data, void(__cdecl *func)(void *, hgl::FileInfo &)) |
int | EnumVolume (void *data, void(__cdecl *func)(void *, hgl::VolumeInfo &), bool check_removable=false, bool check_remote=false, bool check_cd=false) |
enum_uint (BlendModeEnum) | |
混合模式枚举 | |
void | CheckOpenGLExt () |
检测和处理OpenGL扩展 | |
int | GetScreenWidth () |
取得屏幕宽度 | |
int | GetScreenHeight () |
取得屏幕高度 | |
int | GetCanvasWidth () |
取游戏画布宽度 | |
int | GetCanvasHeight () |
取游戏画布高度 | |
void | SetScreen (int, int) |
设置屏幕大小 | |
void | SetCanvas (int, int) |
设置画布大小 | |
void | To2DMode () |
void | To2DMode (float, float) |
void | To2DMode (float, float, float, float, float, float) |
void | To3DMode (float, float, float, float) |
void __inline | To3DMode (float fov, float n, float f) |
void __inline | To3DMode (float fov) |
void | To3DOrtho (float=1, float=1) |
void | Set3DOrigin (GLdouble, GLdouble) |
void | FastUnProject (GLdouble, GLdouble, GLdouble *, GLdouble *) |
bool | SaveScreenToBMP (const wchar_t *fn=0, int=-1, int=-1) |
bool | SaveScreenToTGA (const wchar_t *fn=0, int=-1, int=-1) |
int | PowerTo2 (int) |
int | PowerTo2 (int, int) |
int | SplitPowerTo2 (int, int *, int=4) |
void | FlipBitmap (uint8 *, uint8 *, int, int, int) |
void | GetPixel (int, int, uint8 *) |
void | ScaleImage (void *, int, int, void *, int, int, ColorType) |
void | ToHalf (uchar *dst, const uchar *src, int width, int height, int color) |
int (__stdcall *hglSwapBuffers)(void *) | |
void | ClearScreen () |
void | RestartOpenGL () |
重置渲染控制器 | |
void | SetMatrix (GLenum) |
设置矩阵堆栈 | |
void | PushMatrix (GLenum) |
压入矩阵堆栈 | |
void | PopMatrix (GLenum) |
弹出指定矩阵 | |
void | ClearMatrix (GLenum) |
清除矩阵 | |
void | LoadMatrix (GLenum, float *) |
加载矩阵 | |
void | ClearMatrixStack () |
清除矩阵堆栈 | |
uint | GetMaxMatrixBufferSize () |
最得取大矩阵缓冲长度 | |
uint | SaveMatrixStack (void *) |
bool | LoadMatrixStack (void *, uint) |
void __inline | glColor (float r, float g, float b) |
根据RGB设置颜色 | |
void __inline | glColor (float r, float g, float b, float a) |
根据RGBA设置颜色 | |
void __inline | glColor (const Color3f &v) |
根据RGB设置颜色 | |
void __inline | glColor (const Color3f &v, float a) |
根据RGBA设置颜色 | |
void __inline | glColor (const Color4f &v) |
根据RGBA设置颜色 | |
void __inline | glColor (const Color4f &v, float a) |
根据RGBA设置颜色(alpha再乘上一个系数) | |
void __inline | glColor256 (int r, int g, int b) |
根据RGB设置颜色(颜色范围值为0-255) | |
void __inline | glColor256 (int r, int g, int b, int a) |
根据RGBA设置颜色(颜色范围值为0-255) | |
void __inline | glColor (float lum) |
根据亮度设置颜色 | |
void __inline | glColor (float lum, float a) |
根据亮度设置颜色 | |
void __inline | glColor256 (int lum) |
根据亮度设置颜色 | |
void __inline | glColor256 (int lum, int a) |
根据亮度设置颜色 | |
void | OpenLineSmooth () |
开启线条平滑 | |
void | CloseLineSmooth () |
关闭线条平滑 | |
void | SetLineWidth (GLfloat) |
设置线宽 | |
void | SetLineStipple (GLuint, GLushort) |
设置点划线 | |
void | CloseLineStipple () |
关闭点划线 | |
void | OpenColorMaterial (GLenum, GLenum) |
void | CloseColorMaterial () |
void | SetPixelStore (GLenum, int) |
void | DeleteTexture (Texture *) |
删除一张贴图 | |
void | ChangeActiveTexture (int) |
更改到当前贴图 | |
void | ChangeTexture (Texture *) |
更改到当前贴图设置 | |
void | ChangeTexture (int, Texture *) |
更改到当前贴图设置 | |
void | OpenTexture (TextureType) |
开启贴图渲染 | |
void | CloseTexture () |
关闭贴图渲染 | |
void | CloseTexture (int) |
关闭贴图渲染 | |
void | OpenTextureGen (GLenum, GLenum, GLint) |
void | CloseTextureGen (GLenum) |
void | CloseTextureGen () |
void | ChangeBlend (BlendMode &) |
更改到当前混合设置 | |
void | OpenBlend (BlendModeEnum) |
开启混合效果 | |
void | OpenBlend (GLuint, GLuint) |
开启混合效果 | |
void | CloseBlend () |
关闭混合效果 | |
void | OpenScissor (const int, const int, const int, const int) |
更改当前裁剪 | |
void | OpenScissor (const int *) |
更改当前裁剪 | |
void | CloseScissor () |
关闭裁剪 | |
void | OpenAlphaTest (const GLenum, const float) |
void | CloseAlphaTest () |
void | OpenDepthTest () |
开启深度测试 | |
void | CloseDepthTest () |
关闭深度测试 | |
void | OpenDepthMask () |
void | CloseDepthMask () |
void | OpenCullFace (GLuint) |
开启面裁剪 | |
void | CloseCullFace () |
关闭面裁剪 | |
bool | ChangeArrayBuffer (GLuint) |
更改当前使用的缓冲区,返回true表示改换,返回false没有换(和原先的一样) | |
void | DeleteArrayBuffer (GLuint) |
删除一个缓冲区 | |
void | CloseArrayBuffer () |
关闭缓冲区 | |
void | ChangeShader (GLuint) |
更改当前使用的shader | |
void | DeleteShader (GLuint) |
删除一个shader | |
void | CloseShader () |
关闭shader渲染 | |
void | OpenClientState (GraphicsClientState) |
开启OpenGL客户端状态 | |
void | CloseClientState (GraphicsClientState) |
关闭OpenGL客户端状态 | |
void __inline | DrawZeroPoint (const float size=0.5f) |
void | glRotate3fv (const float *vf) |
void | glRotate3f (const float x, const float y, const float z) |
void | glTranslate3fv (const float *vf) |
void | glTranslate3f (const float x, const float y, const float z) |
void | glScale3fv (const float *vf) |
void | glDrawArray (const GLenum mode, const void *vertex, const void *tex_coord, const void *color, const void *normal, const uint dc, const uint count) |
void __inline | glDrawArray (const GLenum mode, const void *vertex, const void *tex_coord, const uint dc, const uint count) |
void __inline | DrawLine (const float x1, const float y1, const float x2, const float y2) |
void __inline | DrawRectangle (const float left, const float top, const float width, const float height) |
void __inline | DrawBar (const float left, const float top, const float width, const float height) |
void __inline | DrawBar (const int left, const int top, const int width, const int height) |
void __inline | glRect (const RectScope2f &rs) |
void __inline | glRectFullScreen () |
void __inline | glRectFullScreen (const Color3f &color) |
bool | ConvertMonoLayerImageToTex1D (const wchar_t *, const wchar_t *, ColorType=ctNone, const wchar_t *ca=L"RLE", float rate=1) |
转换一个单层图片到Tex1D | |
Loader * | ASyncLoadTexture2D (Texture2D **, HAC *, const wchar_t *, uint=0, uint=1) |
异步加载一个贴图 | |
void * | LoadTexture (TDFNode *, uint &, int &, int &, ColorType &) |
从TDF加载一个贴图文件,并取得原始数据 | |
void * | LoadTexture (Stream *, uint &, int &, int &, ColorType &) |
从流加载一个贴图文件,并取得原始数据 | |
void * | LoadTexture (const wchar_t *, uint &, int &, int &, ColorType &) |
加载一个贴图文件,并取得原始数据 | |
void * | LoadTexture (HAC *, const wchar_t *, uint &, int &, int &, ColorType &) |
加载一个贴图文件,并取得原始数据 | |
Texture2D * | CopyScreenToTexture2D (int, int, int, int, uint=0) |
根据当前屏幕内容生成一个2D贴图 | |
bool | SaveBitmapToTEX (const wchar_t *, int, int, ColorType, void *, const wchar_t *ca=L"RLE", float rate=1) |
保存一个位图数据成TEX文件 | |
bool | SaveScreenToTEX (const wchar_t *, int, int, int, int, const wchar_t *ca=L"RLE", float rate=1) |
保存当前屏幕图像成TEX文件 | |
bool | SaveScreenToTEX (const wchar_t *, int, int, int, int, int, int, const wchar_t *ca=L"RLE", float rate=1) |
保存当前屏幕图像成TEX文件 | |
bool | LoadCubeTexture (TDFNode *, Texture2D *[6]) |
从TDF节点中加载一个Cube贴图 | |
bool | LoadCubeTexture (Stream *, Texture2D *[6]) |
从流中加载一个Cube贴图 | |
bool | LoadCubeTexture (const wchar_t *, Texture2D *[6]) |
加载一个Cube贴图文件 | |
bool | LoadCubeTexture (HAC *, const wchar_t *, Texture2D *[6]) |
加载一个Cube贴图文件 | |
bool | ConvertImg2Tex (const wchar_t *, const wchar_t *, ColorType=ctNone, const wchar_t *ca=L"RLE", float rate=1) |
转换一个图片到.TEX贴图文件 | |
bool | ConvertImg2CubeTex (const wchar_t **, const wchar_t *, ColorType=ctNone, const wchar_t *ca=L"RLE", float rate=1) |
转换一组图片到一个Cube贴图,供CubeMap或SkyBox使用 | |
bool | ConvertImg2Anime (int, const wchar_t **, const wchar_t *, ColorType ctNone, const wchar_t *ca=L"RLE", float rate=1) |
转换一组图片到一个Anime动画文件 | |
HAC * | OpenHAC (const wchar_t *name=0) |
打开一个.HAC文件,或是根据路径创建一个虚拟的HAC环境 | |
bool | GetKeyState (KeyButton) |
bool | GetJotState (JoyButton) |
MemManage * | CreateCMemManage () |
创建一个使用C内存函数的内存管理器 | |
uint | CountAdler32 (uint, const uchar *, uint) |
void | CountSHA1 (uint8 *, uint32, uint8[20]) |
void | AesEncrypt (uint8[16], uint8 *, int) |
void | AesDecrypt (uint8[16], uint8 *, int) |
void | RC4Encrypt (uint8 *, int, uint8 *, int) |
void | OverflowEncrypt (void *, void *, int, void *, int) |
void | OverflowDecrypt (void *, void *, int, void *, int) |
uint32 | FastRand () |
快速产生一个随机数 | |
uint32 __inline | FastRand (uint32 max_value) |
int __inline | FastRand (int v1, int v2, int p=1) |
double __inline | FastRand (double v1, double v2, double p) |
uint64 | GetTime () |
取得当前时间(单位:1/1000秒) | |
uint64 | GetMicroTime () |
取得当前时间(单位:1/1000000秒) | |
double | GetDoubleTime () |
取得当前时间(单位:秒) | |
void | WaitTime (double) |
等待一定时间(单位:秒) | |
void | SetExpendString (const WideString &, const WideString &) |
设置特殊扩展字符串 | |
void | ClearExpendString (const WideString &) |
清除特殊扩展字符串 | |
bool | GetExpendString (const WideString &, WideString &) |
取得特殊扩展字符串 | |
bool | ConvertExpendString (const WideString &, WideString &) |
转换特殊扩展字符串 | |
bool | GetDesktopDisplayMode (int &, int &, int &, int &) |
取得当前桌面显示模式 | |
void | InitPlugIn () |
初始化插件管理 | |
void | ClearAllPlugIn () |
清除所有插件 | |
void | SetPlugIn (PlugIn *, PlugInType) |
设置一个插件 | |
PlugIn *__cdecl | LoadPlugIn (const wchar_t *, PlugInType=pitNormal) |
加载一个插件 | |
void __cdecl | UnloadPlugIn (PlugIn *) |
释放一个插件 | |
void *__cdecl | LoadInterface (const wchar_t *, int) |
加载一个插件,并取得指定接口 | |
template<typename T > | |
T * | CheckPlugIn (_IndexObject< WideString, T, PlugInFlagData< T * > > &PIM, const WideString &front, uint ver, const WideString &name) |
void | RegistryPIMClear (void(*)()) |
DevilVM * | CreateDevilEngine () |
template<typename T > | |
int | strlen (const T *str) |
template<typename T > | |
void | strcpy (T *dst, const T *src) |
template<typename T > | |
void | strcpy (T *dst, int count, const T *src) |
template<typename T > | |
void | strcpy (T *dst, const T *src, int count) |
template<typename T > | |
T * | strstr (T *str1, const T *str2) |
template<typename T > | |
void | strcat (T *dst, const T src) |
template<typename T > | |
void | strcat (T *dst, const T *src) |
template<typename T > | |
void | strcat (T *dst, const T *src, int count) |
template<typename T > | |
T * | strchr (const T *str, const T ch) |
template<typename T > | |
T * | strchr (const T *str, const T ch, int n) |
template<typename T > | |
T * | strrchr (const T *str, const T ch) |
template<typename T > | |
int | strcmp (const T *src, const T *dst) |
template<typename T > | |
int | strcmp (const T *src, const T *dst, int count) |
template<typename T > | |
int | stricmp (const T *src, const T *dst) |
template<typename T > | |
int | stricmp (const T *src, const T *dst, const int count) |
template<typename T > | |
void | ReplaceExtName (const T *old_filename, T *new_filename, const T *new_extname) |
template<typename T > | |
void | ReplaceExtName (T *filename, const T *new_extname) |
template<typename T > | |
T * | CreateCopy (const T *str, int size=-1) |
template<typename T > | |
void | ReplaceChar (T *string, const T sch, const T tch) |
template<typename T > | |
void | UpperString (T *SourceString) |
template<typename T > | |
void | LowerString (T *SourceString) |
template<typename T > | |
void | UpperString (const T *SourceString, T *TargetString) |
template<typename T > | |
void | LowerString (const T *SourceString, T *TargetString) |
template<typename T > | |
int | StatChar (const T *str, const T ch) |
template<typename T > | |
int | StatLine (const T *str) |
template<typename T > | |
bool | isdigit (const T ch) |
int | AnsiToWide (CCP ccp, wchar_t *ws, int ws_size, const char *as, int as_size=-1) |
int | AnsiToWide (wchar_t *ws, int ws_size, const char *as, int as_size=-1) |
int | AnsiToWide (CCP ccp, wchar_t **ws, const char *as, int as_size=-1) |
int | AnsiToWide (wchar_t **ws, const char *as, int as_size=-1) |
int | WideToAnsi (CCP ccp, char *as, int as_size, const wchar_t *ws, int ws_size=-1) |
int | WideToAnsi (char *as, int as_size, const wchar_t *ws, int ws_size=-1) |
int | WideToAnsi (CCP ccp, char **as, const wchar_t *ws, int ws_size=-1) |
int | WideToAnsi (char **as, const wchar_t *ws, int ws_size=-1) |
__inline FileStream * | OpenFileStream (const wchar_t *filename, FileOpenMode mode=fomOpenRead) |
CondVar * | CreateCondVar () |
创建条件变量 | |
RWLock * | CreateRWLock () |
创建读写锁 | |
void | WaitThread (Thread **, int, double time=0) |
等待多个线程中的一个完成 | |
enum_uint (ColorType) | |
色彩类型 | |
unsigned int | ColorNameToFormat (const wchar_t *) |
这一种格式是否需要混合 | |
uint64 | int128to64 (int128 n) |
void | itow (int128, wchar_t *) |
int128 | wtoi (wchar_t *) |
int | tdfReadCompressData (TDFNode *, const WideString &, const WideString &, void *, int) |
读取压缩数据 | |
void | tdfWriteCompressData (TDFNode *, const WideString &, const WideString &, void *, int, const WideString &) |
存入压缩数据 | |
void | tdfWriteCompressData (TDFNode *, const WideString &, const WideString &, void *, int, CA) |
存入压缩数据 | |
int | tdfReadCompressData (TDFNode *, const WideString &, void *, int) |
读取压缩数据 | |
void | tdfWriteCompressData (TDFNode *, const WideString &, void *, int, const WideString &) |
存入压缩数据 | |
void | tdfWriteCompressData (TDFNode *, const WideString &, void *, int, CA=caRLE) |
存入压缩数据 | |
int | tdfReadCompressImage (TDFNode *, const WideString &, const WideString &, void *, int, int, int) |
void | tdfWriteCompressImage (TDFNode *, const WideString &, const WideString &, void *, int, int, int, const WideString &, float) |
int | tdfReadCompressImage (TDFNode *, const WideString &, void *, int, int, int) |
void | tdfWriteCompressImage (TDFNode *, const WideString &, void *, int, int, int, const WideString &, float) |
oper_over (char) | |
oper_over (wchar_t) | |
oper_over (int) | |
oper_over (uint) | |
oper_over (int64) | |
oper_over (uint64) | |
oper_over (double) | |
oper_over (char *) | |
oper_over (wchar_t *) | |
template<typename T > | |
WideString | BinaryToStr (const T &value) |
WideString | HexToStr (const uint8 *data, const int bytes, bool upper=true) |
template<typename T > | |
WideString | HexToStr (const T &value, bool upper=true) |
WideString | IntToStr (int64 n) |
转换整型数到WideString | |
WideString | UIntToStr (uint64 n) |
转换整型数到WideString | |
WideString | FloatToStr (double n) |
转换浮点数到WideString | |
void | IntToSize (WideString &, uint64) |
int | power_to_2 (int value) |
template<typename T > | |
void | hgl_swap (T &x, T &y) |
template<typename T > | |
T | hgl_abs (const T &v) |
template<typename T > | |
T | hgl_min (const T &a, const T &b) |
template<typename T > | |
T | hgl_max (const T &a, const T &b) |
template<typename T > | |
T | hgl_min (const T *data, int count, T min_value) |
template<typename T > | |
T | hgl_max (const T *data, int count, T max_value) |
double | hgl_ang2rad (const double ang) |
double | hgl_rad2ang (const double rad) |
template<typename S , typename D > | |
void | hgl_cpy (D *dst, const S *src, const size_t count) |
template<typename T > | |
void | hgl_set (T *data, const T &value, const size_t count) |
FindPath * | CreateFindPath (FPA, int, int) |
创建寻路模块 | |
template<typename T > | |
bool | Sort (T *data, int count, Comparator< T > *comp=new Comparator< T >()) |
template<typename T > | |
bool | Sort (List< T > &list, Comparator< T > *comp=Comparator< T >()) |
typedef | DefEvent (bool, TASK_UPDATE_FUNC,(TaskManager *)) |
bool | InitSystem (bool=true, bool=true) |
初始化系统 | |
void | CloseSystem () |
关闭系统 | |
bool | InitGraphics (TCustomControl *) |
初始化图形模式,不显示 | |
bool | InitGraphics (TCustomControl *, int, int, int, int) |
初始化图形模式 | |
void | ChangeViewport (int=0, int=0, int=0, int=0) |
更改显示位置 | |
void | CloseGraphics () |
关闭图形模式 | |
void | RedrawScreen () |
刷新整个屏幕 | |
void | ChangeViewport () |
更改显示位置 | |
bool | InitAudio (const char *device_name=0) |
初始化音频 | |
void | CloseAudio () |
关闭音频 | |
Matrix4f | identity () |
Matrix4f | inverse (const Matrix4f &m) |
Matrix4f | perspective (float fovy, float aspect, float znear, float zfar) |
Matrix4f | ortho2 (float width, float height, float znear=0, float zfar=1) |
Matrix4f | ortho4 (float left, float right, float bottom, float top, float znear=0, float zfar=1) |
Matrix4f | lookAt (const cml::vector3f &eye, const cml::vector3f &target, const cml::vector3f &up) |
Matrix4f | translate (const cml::vector3f &v) |
Matrix4f | translate (float x, float y, float z) |
Matrix4f | scale (const cml::vector3f &v) |
Matrix4f | scale (float x, float y, float z) |
Matrix4f | scale (float s) |
Matrix4f | rotate (float angle, const cml::vector3f &axis) |
Matrix4f | rotate (float angle, float x, float y, float z) |
Matrix4f | rotate (float angle, const cml::vector4f &axis) |
cml::vector3f | normalize (const cml::vector3f &v) |
cml::vector3f | cross (const cml::vector3f &v1, const cml::vector3f &v2) |
float | dot (const cml::vector3f &v1, const cml::vector3f &v2) |
float | length_squared (const cml::vector2f &v1, const cml::vector2f &v2) |
float | length (const cml::vector2f &v1, const cml::vector2f &v2) |
float | length_squared (const cml::vector3f &v1, const cml::vector3f &v2) |
float | length (const cml::vector3f &v1, const cml::vector3f &v2) |
cml::vector2f | to (const cml::vector2f &start, const cml::vector2f &end, float pos) |
cml::vector3f | to (const cml::vector3f &start, const cml::vector3f &end, float pos) |
void | init_genrand (uint32 s) |
void | init_by_array (uint32 init_key[], int32 key_length) |
void | InitRand () |
bool | InitCore (SystemInfo &si, SystemInitInfo *) |
bool | GetTempPath (wchar_t *path, unsigned long s) |
bool | GetCMGDKPath (wchar_t *path, unsigned long s) |
void | GetCMGDKPath (wchar_t *path, const wchar_t *work, const wchar_t *start, const wchar_t *cm, const wchar_t *sub) |
void | GetCMGDKPath (CMGDKPATH &cp) |
void | SystemCheck (SystemInfo *si, bool put) |
int | find_argv (int argc, wchar_t **argv, const wchar_t *str) |
void | InitMemoryPool () |
void | ClearMemoryPool () |
FONTCOMP (SetWidth, int, width, w) | |
FONTCOMP (SetHeight, int, height, h) | |
FONTCOMP (SetBold, bool, bold, b) | |
FONTCOMP (SetItalic, bool, italic, i) | |
int128 | operator/ (int128 n1, int128 n2) |
int128 | operator* (int128 n1, int128 n2) |
int128 | operator% (int128 n1, int128 n2) |
int128 | operator+ (int128 n1, int128 n2) |
int128 | operator- (int128 n1, int128 n2) |
int128 | operator+= (int128 &n1, int128 n2) |
int128 | operator-= (int128 &n1, int128 n2) |
int128 | operator*= (int128 &n1, int128 n2) |
int128 | operator/= (int128 &n1, int128 n2) |
int128 | operator| (int128 n1, int128 n2) |
int128 | operator& (int128 n1, int128 n2) |
bool | operator== (int128 n1, int128 n2) |
bool | operator> (int128 n1, int128 n2) |
bool | operator< (int128 n1, int128 n2) |
bool | operator!= (int128 n1, int128 n2) |
bool | operator>= (int128 n1, int128 n2) |
bool | operator<= (int128 n1, int128 n2) |
template<typename T > | |
void | SplitToStringList (StringList *sl, T *data, int size) |
READFUNC (ReadBool, bool) | |
READFUNC (ReadInt8, int8) | |
READFUNC (ReadInt16, int16) | |
READFUNC (ReadInt32, int32) | |
READFUNC (ReadInt64, int64) | |
READFUNC (ReadUint8, uint8) | |
READFUNC (ReadUint16, uint16) | |
READFUNC (ReadUint32, uint32) | |
READFUNC (ReadUint64, uint64) | |
READFUNC (ReadFloat, float) | |
READFUNC (ReadDouble, double) | |
READFUNC (ReadString, WideString) | |
WRITEFUNC (WriteBool, bool) | |
WRITEFUNC (WriteInt8, int8) | |
WRITEFUNC (WriteInt16, int16) | |
WRITEFUNC (WriteInt32, int32) | |
WRITEFUNC (WriteInt64, int64) | |
WRITEFUNC (WriteUint8, uint8) | |
WRITEFUNC (WriteUint16, uint16) | |
WRITEFUNC (WriteUint32, uint32) | |
WRITEFUNC (WriteUint64, uint64) | |
WRITEFUNC (WriteFloat, float) | |
WRITEFUNC (WriteDouble, double) | |
WRITEFUNC (WriteString, const WideString &) | |
void __cdecl | HacMappingEnumFile (void *fp, hgl::FileInfo &fi) |
bool __cdecl | GetLogPlugInInterface (uint32 ver, void *data) |
apr_pool_t * | get_default_apr_pool () |
RWLock * | CreateRWLockAPR () |
CondVar * | CreateCondVarAPR () |
void | InitCondVarNT6 () |
CondVar * | CreateCondVarNT6 () |
void | InitRWLockNT6 () |
RWLock * | CreateRWLockNT6 () |
hgl_thread_result | ThreadFunc (void *ptr) |
PlugInManage (Compress, L"Compress", 3) | |
void | CreateTempFileName (WideString &filename) |
int | ParseAnsi (wchar_t **buf, uchar *raw_str, int byte_size, CCP ccp) |
template<typename T > | |
int | ParseUTF (wchar_t **buf, void *raw_str, int byte_size, bool is_little_endian) |
int | ParseUTF8 (wchar_t **wide_str, const uchar *utf8_str, int size) |
void * | LoadFileToMemory (const wchar_t *filename, uint offset, uint length, void *buf) |
bool | SaveMemoryToFile (const wchar_t *filename, int offset, int length, void *data) |
bool | LoadInterfaceByName (const wchar_t *name, int ver, void *data) |
bool | LoadInterfaceByIndex (int index, int ver, void *data) |
bool __cdecl | LoadInterface (const wchar_t *name, int ver, void *data) |
PROC (Proc_MouseMove) | |
PROC (Proc_MouseLeftDown) | |
PROC (Proc_MouseLeftUp) | |
PROC (Proc_MouseLeftDoubleClick) | |
PROC (Proc_MouseMidDown) | |
PROC (Proc_MouseMidUp) | |
PROC (Proc_MouseMidDoubleClick) | |
PROC (Proc_MouseRightDown) | |
PROC (Proc_MouseRightUp) | |
PROC (Proc_MouseRightDoubleClick) | |
PROC (Proc_JoystickDown) | |
PROC (Proc_JoystickPress) | |
PROC (Proc_JoystickUp) | |
PROC (Proc_KeyDown) | |
PROC (Proc_KeyPress) | |
PROC (Proc_KeyUp) | |
PROCFUNC (LeftDown) | |
PROCFUNC (LeftUp) | |
PROCFUNC (LeftDoubleClick) | |
PROCFUNC (RightDown) | |
PROCFUNC (RightUp) | |
PROCFUNC (RightDoubleClick) | |
PROCFUNC (MidDown) | |
PROCFUNC (MidUp) | |
PROCFUNC (MidDoubleClick) | |
PROCFUNC (JoystickPress, uint) | |
PROCFUNC (JoystickUp, uint) | |
PROCFUNC (KeyDown, uint) | |
PROCFUNC (KeyPress, uint) | |
PROCFUNC (KeyUp, uint) | |
PROCFUNC (Char, wchar_t) | |
PROCFUNC (Proc_MouseMove, OnMouseMove) | |
PROCFUNC (Proc_MouseLeftDown, OnMouseLeftDown) | |
PROCFUNC (Proc_MouseLeftUp, OnMouseLeftUp) | |
PROCFUNC (Proc_MouseLeftDoubleClick, OnMouseLeftDoubleClick) | |
PROCFUNC (Proc_MouseRightDown, OnMouseRightDown) | |
PROCFUNC (Proc_MouseRightUp, OnMouseRightUp) | |
PROCFUNC (Proc_MouseRightDoubleClick, OnMouseRightDoubleClick) | |
PROCFUNC (Proc_MouseMidDown, OnMouseMidDown) | |
PROCFUNC (Proc_MouseMidUp, OnMouseMidUp) | |
PROCFUNC (Proc_MouseMidDoubleClick, OnMouseMidDoubleClick) | |
PROCFUNC (Proc_JoystickDown, uint) | |
PROCFUNC (Proc_JoystickPress, uint) | |
PROCFUNC (Proc_JoystickUp, uint) | |
PROCFUNC (Proc_KeyDown, uint) | |
PROCFUNC (Proc_KeyPress, uint) | |
PROCFUNC (Proc_KeyUp, uint) | |
PROCFUNC (Proc_Char, wchar_t) | |
ProcFunc (Proc_MouseLeftUp) | |
ProcFunc (Proc_MouseMidUp) | |
ProcFunc (Proc_MouseRightUp) | |
ProcFunc (Proc_MouseLeftDoubleClick) | |
ProcTopFunc (Proc_MouseMidDown) | |
ProcFunc (Proc_MouseMidDoubleClick) | |
ProcTopFunc (Proc_MouseRightDown) | |
ProcFunc (Proc_MouseRightDoubleClick) | |
void | ClearFont () |
FontUnit * | GetFont (const wchar_t *fontname, int w, int h, bool b, bool i) |
FontUnit * | GetFont (Font &fnt) |
void | ReleaseFont (FontUnit *fu) |
void * | ClipBorder (int &l, int &t, int &w, int &h, void **data, ColorType ct) |
uint8 * | GetScreenData (int, int, int, int, ColorType, bool=false) |
uint8 * | GetScreenData (int, int, int, int, int, int, ColorType, bool=false) |
template<typename T > | |
void | CheckBorder (int &l, int &t, int &w, int &h, T *data) |
template<typename T > | |
T * | ClipBorder (int &l, int &t, int &w, int &h, T **data) |
int __inline | CompColor (uchar *src, uchar *dst, int comp_color, int color) |
void | CheckSame (int &l, int &t, int &w, int &h, uchar *cur, int ol, int ot, int ow, int oh, uchar *ori, int color, bool clear_same_point) |
bool | ConvertImg2HGP (const wchar_t *img_filename, const wchar_t *hgp_filename, bool merge, bool same, ColorType ct, const wchar_t *ca, float rate) |
PlugInManage (Image, L"Image", 2) | |
ImagePlugInInterface * | ImageInterfaceCheck (ImageFormat ift) |
void | L2LA (uint8 *tar, uint8 *src, uint8 *tcolor, uint32 size) |
void | RGB2RGBA (uint8 *tar, uint8 *src, uint8 *tcolor, uint32 size) |
void | RGBA2RGB (uint8 *rgba, uint8 *rgb, uint32 size) |
void | RGBA2RGB_A (uint8 *rgba, uint8 *rgb, uint8 *a, uint32 size) |
void | RGB_A2RGBA (uint8 *rgba, uint8 *rgb, uint8 *a, uint32 size) |
bool | CheckMono (uint8 *data, uint bytes, uint width, uint height) |
void * | ConvertToMono (uint8 *data, uint bytes, uint width, uint height) |
int | CheckAlpha (uint8 *data, uint bytes, uint width, uint height) |
uint8 * | ClearAlpha (uint8 *data, uint bytes, uint width, uint height) |
void | ClearColor (uchar *data, uint total, uint color) |
void | ClearColor (uchar *dst, uchar *src, uint total, uint color) |
void * | LoadOtherFormat (const wchar_t *filename, uint &format, int &width, int &height, ColorType &ct, bool check_mono, bool check_alpha, ImageFormat pi_index) |
void * | LoadMonoLayer (const wchar_t *filename, uint &format, int &width, int &height, ColorType &color, bool check_mono, bool check_alpha) |
bool | SaveBitmapToFile (const wchar_t *filename, int width, int height, int color, void *data) |
bool | ConvertImageFileFormat (const wchar_t *src, const wchar_t *dst) |
void | SplitToChannels (uint8 *out, uint8 *in, int size, int number) |
void | MergeChannels (uint8 *out, uint8 *in, int size, int number) |
enum_uint (ImageFormat) | |
ImagePlugInInterface * | ImageInterfaceCheck (const WideString &) |
int | ProcSize (int size, int min) |
int | Unite (int *data, int number, int min) |
void | PutOpenExtInfo (const char *str, const char *flag) |
void | PutOpenGLIntegerValue (const wchar_t *name, const uint flag) |
void | PutOpenGLFloatValue (const wchar_t *name, const uint flag) |
void | PutOpenGLRGBAValue (const wchar_t *name, const uint flag) |
void | PutOpenGLFloatRange (const wchar_t *name, const uint flag) |
void | PutOpenGLStringValue (const char *name, const uint flag) |
void | PutOpenGLStringValue (const char *name, const char *str) |
void | PutOpenGLInfo (const char *os_ext_info, const char *os_ext_name) |
void | AnalyseVendor () |
void | CheckMaxMatrixDepth () |
int | CheckLight () |
int | CheckMultiTexture () |
bool | CheckFogCoord () |
bool | CheckPointParameters () |
bool | CheckDepthTexture () |
bool | CheckShadow () |
bool | CheckPointSprite () |
bool | CheckAnisotropy () |
void | CheckTextureWrap () |
bool | CheckCubeMap () |
bool | CheckVBOFunc () |
bool | CheckVAO () |
bool | CheckFBO () |
bool | CheckPBO () |
bool | CheckVP () |
bool | CheckFP () |
bool | CheckVS () |
bool | CheckFS () |
bool | CheckGS () |
bool | CheckGLSL () |
bool | CheckOcclusionQuery () |
void __stdcall | glMultiDrawArrays_Software (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount) |
void __stdcall | glMultiDrawElements_Software (GLenum mode, const GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount) |
bool | CheckMultiDraw () |
bool | CheckDrawInstance () |
bool | Check3DTexture () |
bool | CheckRectTexture () |
bool | CheckNPOTTexture () |
bool | CheckTextureArray () |
void | CheckCompressTexture () |
bool | CheckFloatTexture () |
void | PutATIMemoryInfo (uint value, const wchar_t *name) |
void | PutATIString (uint gpu_id, uint info_id, const wchar_t *fmt) |
void | PutATIInteger (uint gpu_id, uint info_id, const wchar_t *fmt) |
void | CheckVideoCard_ATI () |
void | CheckVideoCard_NVIDIA () |
bool | CreateScreenShotFilename (WideString &fn, const wchar_t *ext_name) |
TARGB32 & | Pixels (const TPicRegion &pic, const long x, const long y) |
TARGB32 | Pixels_Bound (const TPicRegion &pic, long x, long y) |
void | Bilinear_Fast_Common (TARGB32 *PColor0, TARGB32 *PColor1, unsigned long u_8, unsigned long v_8, TARGB32 *result) |
void | Bilinear_Border_Common (const TPicRegion &pic, const long x_16, const long y_16, TARGB32 *result) |
void | PicZoom_Bilinear_Common (const TPicRegion &Dst, const TPicRegion &Src) |
DRAW_ARRAY_DEF (DrawArrayColor, glColorPointer(dc_num, gl_format, 0, data+offset)) | |
DRAW_ARRAY_DEF (DrawArrayVertex, glVertexPointer(dc_num, gl_format, 0, data+offset)) | |
DRAW_ARRAY_DEF (DrawArrayTexCoord, glTexCoordPointer(dc_num, gl_format, 0, data+offset)) | |
DRAW_ARRAY_DEF (DrawArrayNormal, glNormalPointer(gl_format, 0, data+offset)) | |
DRAW_ARRAY_DEF (DrawArray2Color, glSecondaryColorPointer(dc_num, gl_format, 0, data+offset)) | |
DRAW_ARRAY_DEF (DrawArrayFogCoord, glFogCoordPointer(gl_format, 0, data+offset)) | |
DRAW_ARRAY_DEF (DrawArrayIndex, glIndexPointer(gl_format, 0, data+offset)) | |
DrawArrayBufferInterface * | CreateTexCoordBuffer (bool use_vbo, uint dc, int count, uint offset) |
uint | CheckSame (uint8 *data, uint size) |
uint | CheckNotSame (uint8 *data, uint size) |
uint | RleCompress (uint8 *dst, uint dst_max, uint8 *src, uint src_length) |
uint | RleDecompress (uint8 *dst, uint, uint8 *src, uint src_length) |
void | AnalyseSize (int &fw, int &fh, int w, int h, int max) |
void * | LoadMonoLayer (const wchar_t *filename, uint &format, int &width, int &height, ColorType &ct) |
void | SwapRGB (uint8 *data, int size, int pitch) |
double | Lsin (int angle) |
double | Lcos (int angle) |
void | write_to_yuv_frame (uint w, uint h, uint8 *yuv, uint8 *yuv_y, uint8 *yuv_u, uint8 *yuv_v) |
uint8 __inline | clamp (double d) |
uint8 * | RGB2YUV (uint8 *rgb, int w, int h) |
int | getMin (int a, int b) |
int | getMax (int a, int b) |
int | mClamp (int val, int low, int high) |
void | InitYUV2RGBDecode () |
uint8 * | YUV2RGB (uint8 *yuv, int w, int h) |
double | LoadAudioData (int index, AudioFileType aft, void *memory, int memory_size) |
PlugInManage (Audio, L"Audio", 2) | |
AudioPlugInInterface * | AudioInterfaceCheck (const WideString &) |
AFFECTOR_ENUM_FUNC (Start) | |
AFFECTOR_ENUM_FUNC (Pause) | |
AFFECTOR_ENUM_FUNC (Resume) | |
AFFECTOR_ENUM_FUNC (Stop) | |
AFFECTOR_ENUM_FUNC (Update) | |
void * | CallCDeclFunction (void *, const void *, int) |
呼叫C函数 | |
void * | CallThiscallFunction (void *, const void *, const void *, int) |
呼叫C++函数 | |
OPER_OVER (DevilCompEqu,==) | |
OPER_OVER (DevilCompNotEqu,!=) | |
OPER_OVER (DevilCompLessEqu,<=) | |
OPER_OVER (DevilCompGreaterEqu, >=) | |
OPER_OVER (DevilCompLess,< ) | |
OPER_OVER (DevilCompGreater, >) | |
DEVIL_VALUE (DevilInteger, int, ttInt, wtoi) | |
DEVIL_VALUE (DevilUInteger, uint, ttUInt, wtou) | |
DEVIL_VALUE (DevilFloat, float, ttFloat, wtof) | |
DEVIL_VALUE (DevilBool, bool, ttBool, wtob) | |
DEVIL_VALUE (DevilInt64, int64, ttInt64, wtoi) | |
DEVIL_VALUE (DevilUInt64, uint64, ttUInt64, wtou) | |
DEVIL_VALUE (DevilDouble, double, ttDouble, wtod) | |
void | ConvertString (WideString &targe, wchar_t *source, int length) |
void | OnMovieCreate (void *movie, int width, int height, int color, int pitch) |
void | OnMovieDecodeFrame (void *movie, uchar *data) |
typedef | void (__cdecl *SeekFunc)(Stream * |
typedef | bool (__cdecl *EofFunc)(Stream *) |
typedef | int (__cdecl *ReadFunc)(Stream * |
void __cdecl | Seek (Stream *str, int pos) |
bool __cdecl | Eof (Stream *str) |
int __cdecl | Read (Stream *str, void *buf, int size) |
bool | SetDisplayMode (int width, int height, int bit, int vsync) |
bool | RestartDisplayMode () |
uint32 | GetKeyFlags (uint32 wflags) |
void | InitKeyConvert () |
KeyButton | ConvertOSKey (uint key) |
WMEF (WMProcDestroy) | |
WMEF_MOUSE (LeftDown) | |
WMEF_MOUSE (LeftUp) | |
WMEF_MOUSE (LeftDoubleClick) | |
WMEF_MOUSE (MidDown) | |
WMEF_MOUSE (MidUp) | |
WMEF_MOUSE (MidDoubleClick) | |
WMEF_MOUSE (RightDown) | |
WMEF_MOUSE (RightUp) | |
WMEF_MOUSE (RightDoubleClick) | |
WMEF_MOUSE (Move) | |
WMEF2 (WMProcMouseWheel) | |
WMEF1 (WMProcKeyDown) | |
WMEF1 (WMProcKeyUp) | |
WMEF1 (WMProcChar) | |
WMEF1 (WMProcActive) | |
WMEF2 (WMProcSize) | |
void __cdecl | JoyDown (uint key) |
void __cdecl | JoyPress (uint key) |
void __cdecl | JoyUp (uint key) |
bool | GetJoyState (JoyButton key) |
void | LoadJoystick (HINSTANCE hInstance, HWND hWnd) |
void | InitMessageProc (GraphicsApplication *app, WinWindow *win, bool joy) |
bool | MessageProc (WinWindow *win) |
void | CloseMessageProc () |
LRESULT CALLBACK | WindowProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) |
Thread * | CreateWinMessageThread () |
void | SetScreenValue (int, int) |
void | PutDisplayDevicesInfo () |
int | ChoosePixelFormat (HDC hDC, int color, int alpha, int depth, int stencil, int accum, int multisample) |
void | PutSystemInfo (SystemInfo *) |
void | PutOpenGLInfo (HDC) |
bool | InitOpenGL () |
变量 | |
OpenGLHardwareSupport | OHS |
OpenGLChipVendor | OCV = ocvNone |
GLenum | COMPRESSED_RGB = 0 |
GLenum | COMPRESSED_RGBA = 0 |
GLenum | COMPRESSED_LUMINANCE = 0 |
GLenum | COMPRESSED_LUMINANCE_ALPHA = 0 |
GLenum | COMPRESSED_ALPHA = 0 |
GLenum | COMPRESSED_RGB_A1 = 0 |
GLenum | COMPRESSED_RGB_A4 = 0 |
const int | DevilScriptMinLength = sizeof(L"func main(){}") |
《魔鬼》最小脚本长度 | |
COLOR_DEF | prv_color [ceEnd+1] |
const unsigned int | ColorTypeCount = ctEnd+1 |
const wchar_t | ColorTypeName [ColorTypeCount][32] |
const unsigned int | GLFormatByColorType [ColorTypeCount] |
色彩类型名称 | |
const unsigned int | BytesByColorType [ColorTypeCount] |
针对色彩类型而对应的OpenGL格式 | |
const bool | BlendByColorType [ColorTypeCount] |
针对色彩类型而对应的每象素字节数 | |
const char | HexChar [2][16] |
const char | HAC3Flag [] = "HAC-3\x1A" |
wchar_t | CAName [caEnd][32] |
IndexData< WideString, WideString > | ExpendString |
const int | buf_size = 1024*1024 |
const wchar_t | BeginSymbol [] = "!),.:;?]}¨·ˇˉ―‖’”…∶、。〃々〉》」』】〕〗!"'),.:;?]`|}~¢" |
const wchar_t | EndSymbol [] = "([{·‘“〈《「『【〔〖(.[{£¥" |
const int | BeginSymbolCount = sizeof(BeginSymbol)/sizeof(wchar_t) |
const int | EndSymbolCount = sizeof(EndSymbol)/sizeof(wchar_t) |
const wchar_t | pi_name [ifEnd][32] |
int | ActiveTexture |
const GLenum | OpenGLClientState [gcsEnd] |
struct { | |
wchar_t hgl::name [6] | |
GLenum hgl::flag | |
} | CubePanel [6] |
const float | full_tex_coord [] |
const double | SIN45 = 0.707106781186548 |
const unsigned __int32 | SINV [91] |
const double | clamp_u = 0.436*255.0 |
const double | clamp_v = 0.615*255.0 |
const unsigned int | InvalidIndex = 0xFFFFFFFF |
const char | glsl_yuv2rgb [] |
__MAKE_HGL__&&!__MAKE_PLUGIN__
古月游戏开发库所使用的名字空间
虚拟机共用要素
由于设定read_pos=write_pos表示无数据,所以当数据刚好读写到结尾时,不立即转成0,而是仍为buffer_size
typedef AudioFileType hgl::AFT |
AudioBuffer缓冲管理器
AudioBuffer缓冲管理器(从HAC名中取得文件)
typedef volatile uint hgl::avuint |
typedef CompressAlgorithm hgl::CA |
压缩算法枚举定义
typedef const avuint hgl::cavuint |
typedef FindPathAlgorithml hgl::FPA |
typedef ObjectBuffer<HGP> hgl::HGPBuffer |
HGP图片缓冲管理器
typedef ObjectBufferFromHAC<HGP> hgl::HGPBufferHAC |
HGP图片缓冲管理器(从HAC名中取得文件)
typedef ResManageByName<HGP> hgl::HGPResManage |
HGP图片资源管理器
typedef ResManageHAC<HGP> hgl::HGPResManageHAC |
HGP图片资源管理器(从HAC名中取得文件)
typedef ObjectBuffer<HGPSame> hgl::HGPSameBuffer |
HGPSame图片缓冲管理器
HGPSame图片缓冲管理器(从HAC名中取得文件)
typedef hgl::int |
typedef signed short hgl::int16 |
有符号16位整型
鏈夌鍙?6浣嶆暣鍨?
typedef signed long hgl::int32 |
有符号32位整型
鏈夌鍙?2浣嶆暣鍨?
typedef signed __int64 hgl::int64 |
有符号64位整型
鏈夌鍙?4浣嶆暣鍨?
typedef signed char hgl::int8 |
有符号 8位整型
鏈夌鍙?8浣嶆暣鍨?
typedef cml::matrix33f_c hgl::Matrix3f |
typedef cml::matrix44f_c hgl::Matrix4f |
typedef void hgl::MOVIE |
typedef void hgl::MovieInterface |
typedef void(_Object::* hgl::ObjectMemberFunc)() |
typedef PointDataCompoment hgl::PDC |
点数据成份
typedef void(* hgl::PIMClearFunc)() |
typedef RectScope2<double> hgl::RectScope2d |
typedef RectScope2<float> hgl::RectScope2f |
typedef RectScope2<int> hgl::RectScope2i |
typedef ObjectBuffer<Texture2D> hgl::TexBuffer |
Texture2D图片缓冲管理器
Texture2D图片缓冲管理器(从HAC包中取得文件)
typedef ResManageByName<Texture2D> hgl::TexResManage |
Texture2D图片资源管理器
typedef ResManageHAC<Texture2D> hgl::TexResManageHAC |
Texture2D图片资源管理器(从HAC名中取得文件)
typedef unsigned char hgl::TUInt8 |
typedef unsigned char hgl::uchar |
无符号字符型
鏃犵鍙峰瓧绗﹀瀷
typedef unsigned short hgl::uint16 |
无符号16位整型
鏃犵鍙?6浣嶆暣鍨?
typedef unsigned long hgl::uint32 |
无符号32位整型
鏃犵鍙?2浣嶆暣鍨?
typedef unsigned __int64 hgl::uint64 |
无符号64位整型
鏃犵鍙?4浣嶆暣鍨?
typedef unsigned char hgl::uint8 |
无符号 8位整型
鏃犵鍙?8浣嶆暣鍨?
typedef cml::vector2f hgl::Vector2f |
typedef cml::vector2i hgl::Vector2i |
typedef cml::vector3f hgl::Vector3f |
typedef cml::vector3i hgl::Vector3i |
typedef cml::vector4f hgl::Vector4f |
typedef cml::vector4i hgl::Vector4i |
typedef Vertex2<int8> hgl::Vertex2b |
typedef Vertex2<double> hgl::Vertex2d |
typedef Vertex2<float> hgl::Vertex2f |
typedef Vertex2<int> hgl::Vertex2i |
typedef Vertex2<int16> hgl::Vertex2s |
typedef Vertex2<uint8> hgl::Vertex2ub |
typedef Vertex2<uint> hgl::Vertex2ui |
typedef Vertex2<uint16> hgl::Vertex2us |
enum hgl::AppRunMode |
enum hgl::AudioFileType |
enum hgl::COLOR_ENUM |
颜色枚举
enum hgl::DevilVMState |
enum hgl::FileOpenMode |
enum hgl::FlowObjectState |
ConsoleFlowObject 流程对象状态枚举
enum hgl::HacStatus |
enum hgl::InputState |
鼠标状态枚举定义
enum hgl::JoyButton |
enum hgl::KeyButton |
按键枚举定义,详细请参见InputState.H
显卡OpenGL芯片生产商枚举
OpenGL 芯片生产商枚举
点数据成份
enum hgl::SeekOrigin |
enum hgl::TextAlignment |
enum hgl::VAlign |
AES算法解密函数
data | 要加密的数据 |
key | 密码 |
keysize | 密码位数(仅为128,192,256) |
AES算法加密函数
data | 要加密的数据 |
key | 密码 |
keysize | 密码位数(仅为128,192,256) |
hgl::AFFECTOR_ENUM_FUNC | ( | Start | ) |
hgl::AFFECTOR_ENUM_FUNC | ( | Pause | ) |
hgl::AFFECTOR_ENUM_FUNC | ( | Resume | ) |
hgl::AFFECTOR_ENUM_FUNC | ( | Stop | ) |
hgl::AFFECTOR_ENUM_FUNC | ( | Update | ) |
void hgl::AnalyseSize | ( | int & | fw, |
int & | fh, | ||
int | w, | ||
int | h, | ||
int | max | ||
) |
void hgl::AnalyseVendor | ( | ) |
int hgl::AnsiToWide | ( | CCP | ccp, |
wchar_t * | ws, | ||
int | ws_size, | ||
const char * | as, | ||
int | as_size = -1 |
||
) |
转换ANSI字符串到wchar_t *字符串
ccp | 代码页 |
ws | wchar_t *字符串缓冲区 |
ws_size | 缓冲区长度 |
as | ansi字符串 |
as_size | 字符串长度,-1表示全部 |
int hgl::AnsiToWide | ( | wchar_t * | ws, |
int | ws_size, | ||
const char * | as, | ||
int | as_size = -1 |
||
) | [inline] |
转换ANSI字符串到wchar_t *字符串(当前系统默认字符集)
ws | wchar_t *字符串缓冲区 |
ws_size | 缓冲区长度 |
as | ansi字符串 |
as_size | 字符串长度,-1表示全部 |
int hgl::AnsiToWide | ( | CCP | ccp, |
wchar_t ** | ws, | ||
const char * | as, | ||
int | as_size = -1 |
||
) |
转换ANSI字符串到wchar_t *字符串
ccp | 代码页 |
ws | wchar_t *字符串缓冲区,自动分配,需手动delete[] |
as | ansi字符串 |
as_size | 字符串长度,-1表示全部 |
int hgl::AnsiToWide | ( | wchar_t ** | ws, |
const char * | as, | ||
int | as_size = -1 |
||
) | [inline] |
转换ANSI字符串到wchar_t *字符串(当前系统默认字符集)
ws | wchar_t *字符串缓冲区,自动分配,需手动delete[] |
as | ansi字符串 |
as_size | 字符串长度,-1表示全部 |
Loader * hgl::ASyncLoadHGP | ( | HGP ** | hgp, |
HAC * | hac, | ||
const wchar_t * | filename | ||
) |
异步加载HGP图片
Loader * hgl::ASyncLoadHGPSame | ( | HGP ** | hgp, |
HAC * | hac, | ||
const wchar_t * | filename | ||
) |
异步加载HGPSame图片
Loader * hgl::ASyncLoadTexture2D | ( | Texture2D ** | tex, |
HAC * | hac, | ||
const wchar_t * | filename, | ||
uint | gl_format = 0 , |
||
uint | mip = 1 |
||
) |
异步加载一个贴图
AudioPlugInInterface* hgl::AudioInterfaceCheck | ( | const WideString & | ) |
void hgl::Bilinear_Border_Common | ( | const TPicRegion & | pic, |
const long | x_16, | ||
const long | y_16, | ||
TARGB32 * | result | ||
) | [inline] |
void hgl::Bilinear_Fast_Common | ( | TARGB32 * | PColor0, |
TARGB32 * | PColor1, | ||
unsigned long | u_8, | ||
unsigned long | v_8, | ||
TARGB32 * | result | ||
) | [inline] |
WideString hgl::BinaryToStr | ( | const T & | value | ) |
typedef hgl::bool | ( | __cdecl * | EofFunc | ) |
void * hgl::CallCDeclFunction | ( | void * | func, |
const void * | args, | ||
int | paramSize | ||
) |
呼叫C函数
void * hgl::CallThiscallFunction | ( | void * | func, |
const void * | obj, | ||
const void * | args, | ||
int | paramSize | ||
) |
呼叫C++函数
const WideString hgl::CAToName | ( | CA | ca | ) |
压缩法算枚举到名称转换
void hgl::ChangeActiveTexture | ( | int | index | ) |
更改到当前贴图
bool hgl::ChangeArrayBuffer | ( | GLuint | n | ) |
更改当前使用的缓冲区,返回true表示改换,返回false没有换(和原先的一样)
void hgl::ChangeBlend | ( | BlendMode & | bm | ) |
更改到当前混合设置
void hgl::ChangeShader | ( | GLuint | index | ) |
更改当前使用的shader
void hgl::ChangeTexture | ( | int | index, |
Texture * | tex | ||
) |
更改到当前贴图设置
void hgl::ChangeTexture | ( | Texture * | tex | ) |
更改到当前贴图设置
void hgl::ChangeViewport | ( | int | left, |
int | top, | ||
int | width, | ||
int | height | ||
) |
更改显示位置
更改显示位置
left,top | 位置 |
width,height | 大小 |
void hgl::ChangeViewport | ( | ) |
更改显示位置
更新显示位置
显示位置对应的VCL控件 |
bool hgl::Check3DTexture | ( | ) |
检测并选择当前显卡/显卡驱动支持使用的矩形贴图
bool hgl::CheckAnisotropy | ( | ) |
void hgl::CheckBorder | ( | int & | l, |
int & | t, | ||
int & | w, | ||
int & | h, | ||
T * | data | ||
) |
void hgl::CheckCompressTexture | ( | ) |
检则压缩贴图支持,并自动选择最好的压缩格式
支持S3TC,3DFX,ARB,3DC,LATC
bool hgl::CheckCubeMap | ( | ) |
bool hgl::CheckDepthTexture | ( | ) |
bool hgl::CheckDrawInstance | ( | ) |
检测是否支持实例绘制,如果不支持,使用自制的模拟实现
bool hgl::CheckFBO | ( | ) |
bool hgl::CheckFloatTexture | ( | ) |
bool hgl::CheckFogCoord | ( | ) |
bool hgl::CheckFP | ( | ) |
bool hgl::CheckFS | ( | ) |
bool hgl::CheckGLSL | ( | ) |
bool hgl::CheckGS | ( | ) |
int hgl::CheckLight | ( | ) |
void hgl::CheckMaxMatrixDepth | ( | ) |
bool hgl::CheckMultiDraw | ( | ) |
检测是否支持多重绘制,如果不支持,使用自制的模拟实现
int hgl::CheckMultiTexture | ( | ) |
检测多重贴图数量
bool hgl::CheckNPOTTexture | ( | ) |
检测当前显卡/驱动是否支持非2次幂贴图
bool hgl::CheckOcclusionQuery | ( | ) |
void hgl::CheckOpenGLExt | ( | ) |
检测和处理OpenGL扩展
bool hgl::CheckPBO | ( | ) |
T* hgl::CheckPlugIn | ( | _IndexObject< WideString, T, PlugInFlagData< T * > > & | PIM, |
const WideString & | front, | ||
uint | ver, | ||
const WideString & | name | ||
) |
bool hgl::CheckPointParameters | ( | ) |
bool hgl::CheckPointSprite | ( | ) |
bool hgl::CheckRectTexture | ( | ) |
检测并选择当前显卡/显卡驱动支持使用的矩形贴图
void hgl::CheckSame | ( | int & | l, |
int & | t, | ||
int & | w, | ||
int & | h, | ||
uchar * | cur, | ||
int | ol, | ||
int | ot, | ||
int | ow, | ||
int | oh, | ||
uchar * | ori, | ||
int | color, | ||
bool | clear_same_point | ||
) |
bool hgl::CheckShadow | ( | ) |
bool hgl::CheckTextureArray | ( | ) |
检测当前显卡/驱动是否支持贴图阵列
void hgl::CheckTextureWrap | ( | ) |
检测显卡对贴图WRAP方式的支持
bool hgl::CheckVAO | ( | ) |
检测VAO支持
VAO必须VBO支持,以及2部分的函数
bool hgl::CheckVBOFunc | ( | ) |
检测VBO函数支持
这个是必须的,不能仅通过ARB扩展和OpenGL版本号来区分。在Intel的显卡驱动中,某些显卡版本号标识1.4,但不支持VBO。
void hgl::CheckVideoCard_ATI | ( | ) |
void hgl::CheckVideoCard_NVIDIA | ( | ) |
bool hgl::CheckVP | ( | ) |
bool hgl::CheckVS | ( | ) |
int hgl::ChoosePixelFormat | ( | HDC | hDC, |
int | color, | ||
int | alpha, | ||
int | depth, | ||
int | stencil, | ||
int | accum, | ||
int | multisample | ||
) |
uint8 __inline hgl::clamp | ( | double | d | ) |
void hgl::ClearAllPlugIn | ( | ) |
清除所有插件
void hgl::ClearExpendString | ( | const WideString & | flag | ) |
清除特殊扩展字符串
void hgl::ClearFont | ( | ) |
void hgl::ClearMatrix | ( | GLenum | matrix | ) |
清除矩阵
清除指定矩阵
matrix | 矩阵(只能是GL_PROJECTION、GL_MODELVIEW、GL_TEXTURE) |
void hgl::ClearMatrixStack | ( | ) |
清除矩阵堆栈
void hgl::ClearMemoryPool | ( | ) |
void hgl::ClearScreen | ( | ) | [inline] |
void * hgl::ClipBorder | ( | int & | l, |
int & | t, | ||
int & | w, | ||
int & | h, | ||
void ** | data, | ||
ColorType | ct | ||
) |
T* hgl::ClipBorder | ( | int & | l, |
int & | t, | ||
int & | w, | ||
int & | h, | ||
T ** | data | ||
) |
void hgl::CloseAlphaTest | ( | ) |
void hgl::CloseArrayBuffer | ( | ) |
关闭缓冲区
void hgl::CloseAudio | ( | ) |
关闭音频
void hgl::CloseBlend | ( | ) |
关闭混合效果
void hgl::CloseClientState | ( | GraphicsClientState | gcs | ) |
关闭OpenGL客户端状态
void hgl::CloseColorMaterial | ( | ) |
void hgl::CloseCore | ( | ) |
关闭核心
void hgl::CloseCullFace | ( | ) |
关闭面裁剪
void hgl::CloseDepthMask | ( | ) |
void hgl::CloseDepthTest | ( | ) |
关闭深度测试
void hgl::CloseGraphics | ( | ) |
关闭图形模式
void hgl::CloseLineSmooth | ( | ) |
关闭线条平滑
void hgl::CloseLineStipple | ( | ) |
关闭点划线
void hgl::CloseMessageProc | ( | ) |
void hgl::CloseScissor | ( | ) |
关闭裁剪
void hgl::CloseShader | ( | ) |
关闭shader渲染
void hgl::CloseSystem | ( | ) |
关闭系统
void hgl::CloseTexture | ( | ) |
关闭贴图渲染
void hgl::CloseTexture | ( | int | index | ) |
关闭贴图渲染
void hgl::CloseTextureGen | ( | GLenum | coord | ) |
void hgl::CloseTextureGen | ( | ) |
unsigned int hgl::ColorNameToFormat | ( | const wchar_t * | str | ) |
这一种格式是否需要混合
将色彩类型名称转成OpenGL格式
uint32 hgl::Compress | ( | const WideString & | ca_name, |
void * | data, | ||
uint32 | size, | ||
void * | compressdata, | ||
uint32 | out_max, | ||
float | level | ||
) |
压缩数据
压缩一个内存块的数据并存放到另一个内存块
ca_name | 压缩算法 |
data | 原始数据指针 |
size | 原始数据的长度 |
compressdata | 压缩后数据的存放位置 |
out_max | 压缩后输出数据存放区大小 |
level | 压缩级别(0:不压缩,1:最大压缩比) |
uint32 __inline hgl::Compress | ( | CA | ca, |
void * | data, | ||
uint32 | size, | ||
void * | compressdata, | ||
uint32 | out_max, | ||
float | level = 1 |
||
) |
压缩一个内存块的数据并存放到另一个内存块
ca | 压缩算法 |
data | 原始数据指针 |
size | 原始数据的长度 |
compressdata | 压缩后数据的存放位置 |
out_max | 压缩后输出数据存放区大小 |
level | 压缩级别(0:不压缩,1:最大压缩比) |
bool hgl::ConvertExpendString | ( | const WideString & | source, |
WideString & | target | ||
) |
转换特殊扩展字符串
转换特殊扩展字符串
source | 原始字符串 |
target | 转换后的字符串 |
bool hgl::ConvertImageFileFormat | ( | const wchar_t * | src, |
const wchar_t * | dst | ||
) |
bool hgl::ConvertImg2Anime | ( | int | , |
const wchar_t ** | , | ||
const wchar_t * | , | ||
ColorType | ctNone, | ||
const wchar_t * | ca = L"RLE" , |
||
float | rate = 1 |
||
) |
转换一组图片到一个Anime动画文件
bool hgl::ConvertImg2CubeTex | ( | const wchar_t ** | , |
const wchar_t * | , | ||
ColorType | = ctNone , |
||
const wchar_t * | ca = L"RLE" , |
||
float | rate = 1 |
||
) |
转换一组图片到一个Cube贴图,供CubeMap或SkyBox使用
bool hgl::ConvertImg2HGP | ( | const wchar_t * | img_filename, |
const wchar_t * | hgp_filename, | ||
bool | merge, | ||
bool | same, | ||
ColorType | ct, | ||
const wchar_t * | ca, | ||
float | rate | ||
) |
转换一个图片文件到HGP文件
img_filename | 原始文件名称 |
hgp_filename | HGP文件名称 |
merge | 是否自动合层 |
same | 是否裁剪重复内容 |
bool hgl::ConvertImg2Tex | ( | const wchar_t * | , |
const wchar_t * | , | ||
ColorType | = ctNone , |
||
const wchar_t * | ca = L"RLE" , |
||
float | rate = 1 |
||
) |
转换一个图片到.TEX贴图文件
bool hgl::ConvertMonoLayerImageToHGP | ( | const wchar_t * | img_filename, |
const wchar_t * | hgp_filename, | ||
ColorType | ct, | ||
const wchar_t * | ca, | ||
float | rate | ||
) |
转换单层图片到HGP
转换一个图片文件到HGP文件,以单层模式读取PSD
img | 原始文件名称 |
hgp | HGP文件名称 |
bool hgl::ConvertMonoLayerImageToTex1D | ( | const wchar_t * | , |
const wchar_t * | , | ||
ColorType | = ctNone , |
||
const wchar_t * | ca = L"RLE" , |
||
float | rate = 1 |
||
) |
转换一个单层图片到Tex1D
bool hgl::ConvertMultiLayerImageToHGP | ( | const wchar_t * | img_filename, |
const wchar_t * | hgp_filename, | ||
ColorType | ct, | ||
const wchar_t * | ca, | ||
float | rate | ||
) |
转换多层图片到HGP
转换一个图片文件到HGP文件,自动识别多层PSD
img | 原始文件名称 |
hgp | HGP文件名称 |
bool hgl::ConvertPSDToMapHGP | ( | const wchar_t * | img_filename, |
const wchar_t * | hgp_filename, | ||
ColorType | ct, | ||
const wchar_t * | ca, | ||
float | rate | ||
) |
转换PSD到地图用HGP
转换一个图片文件到地图用HGP文件
img | 原始文件名称 |
hgp | HGP文件名称 |
bool hgl::ConvertSameLayerImageToHGP | ( | const wchar_t * | img_filename, |
const wchar_t * | hgp_filename, | ||
ColorType | ct, | ||
const wchar_t * | ca, | ||
float | rate | ||
) |
转换多层图片到HGP(并自动裁剪掉每一层与底层相同内容的部分)
转换一个图片文件到HGP文件,自动识别多层PSD.并自动裁剪掉每层与底层相同的内容
img | 原始文件名称 |
hgp | HGP文件名称 |
bool hgl::ConvertSameLayerImageToHGPTest | ( | const wchar_t * | img_filename, |
const wchar_t * | hgp_filename, | ||
ColorType | ct = ctNone , |
||
const wchar_t * | ca = L"RLE" , |
||
float | rate = 1 |
||
) |
转换多层图片到HGP(并自动裁剪掉每一层与底层相同内容的部分)
void hgl::ConvertString | ( | WideString & | targe, |
wchar_t * | source, | ||
int | length | ||
) |
根据当前屏幕图像生成一个HGP
根据当前屏幕内容生成一个HGP
left | 截取屏幕左边际坐标 |
top | 截取屏幕上边际坐标 |
width,height | 截取屏幕的宽,高 |
gl_format | 在显存中使用的OpenGL格式,默认GL_RGB8 |
根据当前屏幕内容生成一个2D贴图
根据当前屏幕内容生成一个Texture2D
left | 截取屏幕左边际坐标 |
top | 截取屏幕上边际坐标 |
width,height | 截取屏幕的宽,高 |
gl_format | 在显存中使用的OpenGL格式,默认GL_RGB8 |
uint hgl::CountAdler32 | ( | unsigned int | adler, |
const unsigned char * | buf, | ||
unsigned int | len | ||
) |
Adler32校检码计算
adler | 初始码 |
buf | 待校验数据指针 |
len | 待校验数据长度 |
使用SHA1算法生成一块数据的校验码
data | 数据 |
size | 数据长度 |
digest | 生成的校验码存放处 |
MemManage* hgl::CreateCMemManage | ( | ) |
创建一个使用C内存函数的内存管理器
CondVar * hgl::CreateCondVar | ( | ) |
创建条件变量
CondVar* hgl::CreateCondVarAPR | ( | ) |
CondVar* hgl::CreateCondVarNT6 | ( | ) |
T* hgl::CreateCopy | ( | const T * | str, |
int | size = -1 |
||
) |
创建一个复制
str | 要复制的字符串 |
size | 字符串长度,-1表示自动测试 |
DevilVM * hgl::CreateDevilEngine | ( | ) |
创建一个《魔鬼》虚拟机引擎
FindPath * hgl::CreateFindPath | ( | FPA | fpa, |
int | width, | ||
int | height | ||
) |
创建寻路模块
创建一个寻路模块
fpa | 寻路算法 |
width | 查找范围宽度 |
height | 查找范围高度 |
RWLock * hgl::CreateRWLock | ( | ) |
创建读写锁
RWLock * hgl::CreateRWLockAPR | ( | ) |
RWLock * hgl::CreateRWLockNT6 | ( | ) |
bool hgl::CreateScreenShotFilename | ( | WideString & | fn, |
const wchar_t * | ext_name | ||
) |
void hgl::CreateTempFileName | ( | const wchar_t * | ) |
创建临时文件名称
void hgl::CreateTempFileName | ( | WideString & | filename | ) |
DrawArrayBufferInterface* hgl::CreateTexCoordBuffer | ( | bool | use_vbo, |
uint | dc, | ||
int | count, | ||
uint | offset | ||
) |
TileFont * hgl::CreateTileFont | ( | Font & | chs_fnt, |
Font & | eng_fnt, | ||
int | count | ||
) |
创建一个字体,使用系统字体
通过系统字体创建一个Tile字体,字体大小以较大的为准
chs_fnt | 英文字体 |
eng_fnt | 中文字体 |
count | 缓冲区内保存的字符个数,-1表示自动取(会根据屏幕大小取最大值) |
__inline TileFont* hgl::CreateTileFont | ( | const wchar_t * | chs_fontname, |
const wchar_t * | eng_fontname, | ||
int | width, | ||
int | height, | ||
bool | bold, | ||
bool | italic, | ||
int | count | ||
) |
通过系统字体创建一个Tile字体
chs_fontname | 中文字体名称 |
eng_fontname | 英文字体名称 |
width | 宽,可以为0,表示默认。 |
height | 高 |
bold | 加粗,默认false |
italic | 斜体,默认false |
count | 缓冲区内保存的字符个数 |
__inline TileFont* hgl::CreateTileFont | ( | const wchar_t * | fontname, |
int | width, | ||
int | height, | ||
bool | bold = false , |
||
bool | italic = false , |
||
int | num = -1 |
||
) |
通过系统字体创建一个Tile字体,中英文字体相同
fontname | 字体名称 |
width | 宽,可以为0,表示默认。 |
height | 高 |
bold | 加粗,默认false |
italic | 斜体,默认false |
count | 缓冲区内保存的字符个数 |
__inline TileFont* hgl::CreateTileFont | ( | const wchar_t * | chs_fontname, |
const wchar_t * | eng_fontname, | ||
int | width, | ||
int | height, | ||
int | num = -1 |
||
) |
通过系统字体创建一个Tile字体,无斜体,无加粗
chs_fontname | 中文字体名称 |
eng_fontname | 英文字体名称 |
width | 宽,可以为0,表示默认。 |
height | 高 |
count | 缓冲区内保存的字符个数 |
VSBase * hgl::CreateVS | ( | ColorType | ct | ) |
根据色彩类型创建一个虚拟屏幕
VSBase * hgl::CreateVSFromFile | ( | const wchar_t * | filename, |
bool | check_mono, | ||
bool | check_alpha | ||
) |
从贴图文件(*.TEX)加载一个虚拟屏幕
加载一个贴图文件(*.TEX),并为其创建虚拟屏幕
filename | 贴图文件名称 |
check_mono | 自动将没有色彩的图片由RGB/RGBA转为Lum/LumAlpha |
check_alpha | 自动清除alpha全部为0或全部为1的数据,将LumAlpha/RGBA转为Lum/RGB |
从贴图文件(*.TEX)加载一个虚拟屏幕
加载一个贴图文件(*.TEX),并为其创建虚拟屏幕
filename | 贴图文件名称 |
check_mono | 自动将没有色彩的图片由RGB/RGBA转为Lum/LumAlpha |
check_alpha | 自动清除alpha全部为0或全部为1的数据,将LumAlpha/RGBA转为Lum/RGB |
VSBase * hgl::CreateVSFromPixelBuffer | ( | uint8 * | pixel_buffer, |
int | width, | ||
int | height, | ||
ColorType | color | ||
) |
关联象素缓冲区为虚拟屏幕
关联象素缓冲区为虚拟屏幕
pixel_buffer | 象素缓冲区 |
width | 象素缓冲区宽 |
height | 象素缓冲区高 |
color | 象素缓冲区色彩格式 |
Thread* hgl::CreateWinMessageThread | ( | ) |
cml::vector3f hgl::cross | ( | const cml::vector3f & | v1, |
const cml::vector3f & | v2 | ||
) | [inline] |
uint32 hgl::Decompress | ( | const WideString & | ca_name, |
void * | compressdata, | ||
uint32 | size, | ||
void * | out_data, | ||
uint32 | out_max | ||
) |
解压缩数据
解压缩一个内存块的数据并存放到另一个内存块
ca_name | 压缩算法 |
compressdata | 压缩数据的存放位置 |
size | 压缩数据的长度 |
out_data | 解压缩后数据的存放位置 |
out_max | 解压缩数据存放区的大小 |
uint32 __inline hgl::Decompress | ( | CA | ca, |
void * | compressdata, | ||
uint32 | size, | ||
void * | out_data, | ||
uint32 | out_max | ||
) |
解压缩一个内存块的数据并存放到另一个内存块
ca | 压缩算法 |
compressdata | 压缩数据的存放位置 |
size | 压缩数据的长度 |
out_data | 解压缩后数据的存放位置 |
out_max | 解压缩数据存放区的大小 |
typedef hgl::DefEvent | ( | bool | , |
TASK_UPDATE_FUNC | , | ||
(TaskManager *) | |||
) |
void hgl::DeleteArrayBuffer | ( | GLuint | n | ) |
删除一个缓冲区
bool hgl::DeletePath | ( | const wchar_t * | dirname | ) |
删除一个路径
删除一个子目录
dirname | 目录名称 |
void hgl::DeleteShader | ( | GLuint | index | ) |
删除一个shader
void hgl::DeleteTexture | ( | Texture * | tex | ) |
删除一张贴图
void hgl::DeleteTree | ( | const wchar_t * | dirname | ) |
删除一个路径(包含所有文件)
删除一个子目录,包含所有文件和子目录
dirname | 目录名称 |
hgl::DEVIL_VALUE | ( | DevilFloat | , |
float | , | ||
ttFloat | , | ||
wtof | |||
) |
hgl::DEVIL_VALUE | ( | DevilDouble | , |
double | , | ||
ttDouble | , | ||
wtod | |||
) |
hgl::DEVIL_VALUE | ( | DevilInteger | , |
int | , | ||
ttInt | , | ||
wtoi | |||
) |
hgl::DEVIL_VALUE | ( | DevilUInteger | , |
uint | , | ||
ttUInt | , | ||
wtou | |||
) |
hgl::DEVIL_VALUE | ( | DevilBool | , |
bool | , | ||
ttBool | , | ||
wtob | |||
) |
hgl::DEVIL_VALUE | ( | DevilInt64 | , |
int64 | , | ||
ttInt64 | , | ||
wtoi | |||
) |
hgl::DEVIL_VALUE | ( | DevilUInt64 | , |
uint64 | , | ||
ttUInt64 | , | ||
wtou | |||
) |
float hgl::dot | ( | const cml::vector3f & | v1, |
const cml::vector3f & | v2 | ||
) | [inline] |
hgl::DRAW_ARRAY_DEF | ( | DrawArray2Color | , |
glSecondaryColorPointer(dc_num, gl_format, 0, data+offset) | |||
) |
void __inline hgl::DrawBar | ( | const float | left, |
const float | top, | ||
const float | width, | ||
const float | height | ||
) |
画矩形块
left,top | 矩形左上角坐标 |
width,height | 矩形宽高 |
void __inline hgl::DrawBar | ( | const int | left, |
const int | top, | ||
const int | width, | ||
const int | height | ||
) |
画矩形块
left,top | 矩形左上角坐标 |
width,height | 矩形宽高 |
void __inline hgl::DrawLine | ( | const float | x1, |
const float | y1, | ||
const float | x2, | ||
const float | y2 | ||
) |
画直线
x1,y1 | 起始点坐标 |
x2,y2 | 结束定坐标 |
void __inline hgl::DrawRectangle | ( | const float | left, |
const float | top, | ||
const float | width, | ||
const float | height | ||
) |
画空心矩形
left,top | 矩形左上角坐标 |
width,height | 矩形宽高 |
void __inline hgl::DrawZeroPoint | ( | const float | size = 0.5f | ) |
绘制坐标系原点
hgl::enum_uint | ( | ColorType | ) |
色彩类型
这个枚举用来声明在程序中所使用到的色彩类型
<起始定义,无意义。如使用代表未知色彩
<亮度
<亮度与透明度
<RGB三原色
<RGB三原色与透明度
<Alpha透明度
<BGR三原色
<BGR三原色与透明度
<结束定义,无意义
hgl::enum_uint | ( | BlendModeEnum | ) |
混合模式枚举
混合模式
<无,起始定义,无意义
<一般模式
<仅原图
<仅目标图
<饱合相加
<饱合相减
<原图阴影
<光线图
<反色
<结束定义,无意义
hgl::enum_uint | ( | CompressAlgorithm | ) |
压缩算法
压缩算法枚举
注意:请在任何情况下都使用算法名称,而不是数值来保存压缩算法的类型。
<不压缩
<Bzip2算法
<Lzo算法
<Lzma算法
<Zip算法
<RLE算法
<RYC算法(图像专用)
<RSC算法(图像专用)
<Jpeg2000算法(图像专用)
<VSRLE算法(图像专用)
<结束定义,无意义
hgl::enum_uint | ( | ImageFormat | ) |
int hgl::EnumFile | ( | const wchar_t * | folder_name, |
const wchar_t * | find_name, | ||
void * | data, | ||
bool | proc_folder, | ||
bool | proc_file, | ||
bool | sub_folder, | ||
void(__cdecl *func)(void *, hgl::FileInfo &) | |||
) |
枚举一个目录内的所有文件
folder_name | 目录名称 |
find_name | 查找用名称 |
data | 自定义回传数据 |
proc_folder | 处理目录 |
proc_file | 处理文件 |
sub_folder | 是否处理子目录 |
func | 回调函数 |
int hgl::EnumFile | ( | const wchar_t * | folder_name, |
const wchar_t * | find_name, | ||
void * | data, | ||
void(__cdecl *func)(void *, hgl::FileInfo &) | |||
) |
枚举一个目录内的所有文件
folder_name | 目录名称 |
find_name | 查找用名称 |
data | 自定义回传数据 |
func | 回调函数 |
int hgl::EnumVolume | ( | void * | data, |
void(__cdecl *func)(void *, hgl::VolumeInfo &) | , | ||
bool | check_removable = false , |
||
bool | check_remote = false , |
||
bool | check_cd = false |
||
) |
枚举当前计算机所有卷
data | 用户自定义回传信息 |
func | 回调函数 |
check_removable | 检测可移除设备 |
check_remote | 检测远程驱动器 |
check_cd | 检测光盘 |
枚举当前计算机所有卷
data | 用户自定义回传信息 |
func | 回调函数 |
check_cd | 检测光盘 |
bool __cdecl hgl::Eof | ( | Stream * | str | ) |
uint32 hgl::FastRand | ( | void | ) |
快速产生一个随机数
uint32 __inline hgl::FastRand | ( | uint32 | max_value | ) |
产生一个随机数,并指定上限。
max_value | 上限值 |
max_value | 快速产生一个随机数,并指定上限 |
int __inline hgl::FastRand | ( | int | v1, |
int | v2, | ||
int | p = 1 |
||
) |
在指定范围内产生一个随机值,并指定精度
v1 | 最小值 |
v2 | 最大值 |
p | 精度,默认为1 |
p | 快速产生一个随机数(指定范围,并指定精度) |
double __inline hgl::FastRand | ( | double | v1, |
double | v2, | ||
double | p | ||
) |
在指定范围内产生一个随机值,并指定精度
v1 | 最小值 |
v2 | 最大值 |
p | 精度 |
p | 快速产生一个随机数(指定范围,并指定精度) |
快速求一个2D坐标对应的3D坐标位置.要求必须的缺省矩阵,即左下角(-1,-1),右上角(1,1),中心为(0,0)
x,y | 原始2D坐标 |
nx,ny | 求出来的3D坐标 |
int hgl::FileCanRead | ( | const wchar_t * | filename | ) |
检测文件是否可读
检测文件是否可读
filename | 文件名 |
int hgl::FileCanWrite | ( | const wchar_t * | filename | ) |
检测文件是否可写
检测文件是否可写
filename | 文件名 |
bool hgl::FileCheckOpen | ( | const wchar_t * | filename | ) |
尝试打开文件
测试这个文件是否可以打开
filename | 文件名 |
bool hgl::FileCheckOpen | ( | const wchar_t * | pathname, |
const wchar_t * | filename | ||
) |
尝试打开文件
bool hgl::FileComp | ( | const wchar_t * | filename1, |
const wchar_t * | filename2 | ||
) |
文件比较
比较两个文件是否一样
filename1 | 第一个文件的名称 |
filename2 | 第二个文件的名称 |
bool hgl::FileConfirm | ( | const wchar_t * | filename | ) |
文件确认是否存在
确认文件是否存在
filename | 要查找的文件名称 |
bool hgl::FileCopy | ( | const wchar_t * | sourcename, |
const wchar_t * | targetname | ||
) |
文件复制
复制一个文件
sourcename | 源文件名 |
targetname | 目标文件名 |
bool hgl::FileDelete | ( | const wchar_t * | filename | ) |
文件删除
删除一个文件
filename | 文件名 |
bool hgl::FileMove | ( | const wchar_t * | sourcename, |
const wchar_t * | targetname | ||
) |
文件移动
移动一个文件
sourcename | 源文件名 |
targetname | 目标文件名 |
bool hgl::FileRename | ( | const wchar_t * | oldname, |
const wchar_t * | newname | ||
) |
文件改名
修改文件名
oldname | 旧的文件名 |
newname | 新的文件名 |
void hgl::FillBlock | ( | uchar * | dst, |
const uchar * | src, | ||
int | width, | ||
int | height, | ||
int | color, | ||
int | stride | ||
) |
int hgl::find_argv | ( | int | argc, |
wchar_t ** | argv, | ||
const wchar_t * | str | ||
) |
上下翻转位图数据
tar | 目标数据区 |
src | 原始数据区 |
width | 位图宽 |
height | 位图高 |
byte | 位图每象素字节数 |
WideString hgl::FloatToStr | ( | double | n | ) | [inline] |
转换浮点数到WideString
将一个浮点数转换成字符串
n | 要转换的数值 |
hgl::FONTCOMP | ( | SetItalic | , |
bool | , | ||
italic | , | ||
i | |||
) |
apr_pool_t * hgl::get_default_apr_pool | ( | ) |
int hgl::GetCanvasHeight | ( | ) |
取游戏画布高度
int hgl::GetCanvasWidth | ( | ) |
取游戏画布宽度
bool hgl::GetCMGDKPath | ( | wchar_t * | path, |
unsigned long | s | ||
) |
void hgl::GetCMGDKPath | ( | wchar_t * | path, |
const wchar_t * | work, | ||
const wchar_t * | start, | ||
const wchar_t * | cm, | ||
const wchar_t * | sub | ||
) |
void hgl::GetCMGDKPath | ( | CMGDKPATH & | cp | ) |
wchar_t * hgl::GetCurrentPath | ( | ) |
取得当前路径,结果请自行delete[]
取得当前所在目录
bool hgl::GetDesktopDisplayMode | ( | int & | width, |
int & | height, | ||
int & | bit, | ||
int & | vsync | ||
) |
取得当前桌面显示模式
取得当前桌面显示模式
width | 宽 |
height | 高 |
bit | 色彩位数 |
vsync | 垂直刷新率 |
double hgl::GetDoubleTime | ( | ) |
取得当前时间(单位:秒)
取得当前时间(双精度)
bool hgl::GetExpendString | ( | const WideString & | flag, |
WideString & | str | ||
) |
取得特殊扩展字符串
bool hgl::GetFileInfo | ( | const wchar_t * | filename, |
struct FileInfo & | fi | ||
) |
取得文件信息
FontUnit * hgl::GetFont | ( | const wchar_t * | fontname, |
int | w, | ||
int | h, | ||
bool | b, | ||
bool | i | ||
) |
FontUnit * hgl::GetFont | ( | Font & | fnt | ) |
bool hgl::GetJotState | ( | JoyButton | ) |
bool hgl::GetJoyState | ( | JoyButton | key | ) |
取得手柄按键状态
key | 按键 |
bool hgl::GetKeyState | ( | KeyButton | kb | ) |
bool __cdecl hgl::GetLogPlugInInterface | ( | uint32 | ver, |
void * | data | ||
) |
int hgl::getMax | ( | int | a, |
int | b | ||
) | [inline] |
uint hgl::GetMaxMatrixBufferSize | ( | ) |
最得取大矩阵缓冲长度
uint64 hgl::GetMicroTime | ( | ) |
取得当前时间(单位:1/1000000秒)
取得当前时间
int hgl::getMin | ( | int | a, |
int | b | ||
) | [inline] |
void hgl::GetPixel | ( | int | x, |
int | y, | ||
uint8 * | rgb | ||
) |
uint8 * hgl::GetScreenData | ( | int | , |
int | , | ||
int | , | ||
int | , | ||
ColorType | , | ||
bool | = false |
||
) |
uint8 * hgl::GetScreenData | ( | int | , |
int | , | ||
int | , | ||
int | , | ||
int | , | ||
int | , | ||
ColorType | , | ||
bool | = false |
||
) |
int hgl::GetScreenHeight | ( | ) |
取得屏幕高度
int hgl::GetScreenWidth | ( | ) |
取得屏幕宽度
bool hgl::GetTempPath | ( | wchar_t * | path, |
unsigned long | s | ||
) |
uint64 hgl::GetTime | ( | ) |
取得当前时间(单位:1/1000秒)
取得当前时间
void __inline hgl::glColor | ( | float | r, |
float | g, | ||
float | b | ||
) |
根据RGB设置颜色
void __inline hgl::glColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
根据RGBA设置颜色
void __inline hgl::glColor | ( | const Color3f & | v | ) |
根据RGB设置颜色
void __inline hgl::glColor | ( | const Color3f & | v, |
float | a | ||
) |
根据RGBA设置颜色
void __inline hgl::glColor | ( | const Color4f & | v | ) |
根据RGBA设置颜色
void __inline hgl::glColor | ( | const Color4f & | v, |
float | a | ||
) |
根据RGBA设置颜色(alpha再乘上一个系数)
void __inline hgl::glColor | ( | float | lum, |
float | a | ||
) |
根据亮度设置颜色
void __inline hgl::glColor | ( | float | lum | ) |
根据亮度设置颜色
void __inline hgl::glColor256 | ( | int | r, |
int | g, | ||
int | b | ||
) |
根据RGB设置颜色(颜色范围值为0-255)
void __inline hgl::glColor256 | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
根据RGBA设置颜色(颜色范围值为0-255)
void __inline hgl::glColor256 | ( | int | lum, |
int | a | ||
) |
根据亮度设置颜色
void __inline hgl::glColor256 | ( | int | lum | ) |
根据亮度设置颜色
void hgl::glDrawArray | ( | const GLenum | mode, |
const void * | vertex, | ||
const void * | tex_coord, | ||
const void * | color, | ||
const void * | normal, | ||
const uint | dc, | ||
const uint | count | ||
) |
void __inline hgl::glDrawArray | ( | const GLenum | mode, |
const void * | vertex, | ||
const void * | tex_coord, | ||
const uint | dc, | ||
const uint | count | ||
) |
void __stdcall hgl::glMultiDrawArrays_Software | ( | GLenum | mode, |
const GLint * | first, | ||
const GLsizei * | count, | ||
GLsizei | primcount | ||
) |
glMultiDrawArrays函数在无硬件或驱动支持下的模拟实现
void __stdcall hgl::glMultiDrawElements_Software | ( | GLenum | mode, |
const GLsizei * | count, | ||
GLenum | type, | ||
const GLvoid ** | indices, | ||
GLsizei | primcount | ||
) |
glMultiDrawElements函数在无硬件或驱动支持下的模拟实现
void __inline hgl::glRect | ( | const RectScope2f & | rs | ) |
void __inline hgl::glRectFullScreen | ( | ) |
void __inline hgl::glRectFullScreen | ( | const Color3f & | color | ) |
void hgl::glRotate3f | ( | const float | x, |
const float | y, | ||
const float | z | ||
) |
按指定值旋转
x,y,z | 旋转度数 |
void hgl::glRotate3fv | ( | const float * | vf | ) |
按指定值旋转
vf | 旋转度数指针 |
void hgl::glScale3fv | ( | const float * | vf | ) |
按指定数值缩放
x,y,z | 缩放值 |
void hgl::glTranslate3f | ( | const float | x, |
const float | y, | ||
const float | z | ||
) |
按指定数值移动
x,y,z | 移动值 |
void hgl::glTranslate3fv | ( | const float * | vf | ) |
按指定数值移动
vf | 移动数据指针 |
void __cdecl hgl::HacMappingEnumFile | ( | void * | fp, |
hgl::FileInfo & | fi | ||
) |
WideString hgl::HexToStr | ( | const uint8 * | data, |
const int | bytes, | ||
bool | upper | ||
) |
转换一串数据到
WideString hgl::HexToStr | ( | const T & | value, |
bool | upper = true |
||
) |
upper | 转换数值到16进制字符串 |
T hgl::hgl_abs | ( | const T & | v | ) |
double hgl::hgl_ang2rad | ( | const double | ang | ) | [inline] |
void hgl::hgl_cpy | ( | D * | dst, |
const S * | src, | ||
const size_t | count | ||
) | [inline] |
T hgl::hgl_max | ( | const T & | a, |
const T & | b | ||
) |
T hgl::hgl_max | ( | const T * | data, |
int | count, | ||
T | max_value | ||
) |
T hgl::hgl_min | ( | const T & | a, |
const T & | b | ||
) |
T hgl::hgl_min | ( | const T * | data, |
int | count, | ||
T | min_value | ||
) |
double hgl::hgl_rad2ang | ( | const double | rad | ) | [inline] |
void hgl::hgl_set | ( | T * | data, |
const T & | value, | ||
const size_t | count | ||
) | [inline] |
void hgl::hgl_swap | ( | T & | x, |
T & | y | ||
) |
Matrix4f hgl::identity | ( | ) | [inline] |
uint32 __inline hgl::ImageCompress | ( | CA | ca, |
void * | buffer, | ||
uint32 | buffer_size, | ||
void * | data, | ||
int | width, | ||
int | height, | ||
int | channels, | ||
int | level | ||
) |
解压缩一个图像数据
ca | 压缩算法 |
buffer | 压缩后的数据存放缓冲区 |
buffer_size | 缓冲区大小 |
data | 原始的图像数据 |
width | 图像宽 |
height | 图像高 |
channels | 图像通道数 |
level | 压缩级别(0:不压缩,9:最大压缩比) |
uint32 hgl::ImageCompress | ( | const WideString & | ca_name, |
void * | buffer, | ||
uint32 | buffer_size, | ||
void * | data, | ||
int | width, | ||
int | height, | ||
int | channels, | ||
float | level | ||
) |
压缩图像数据
解压缩一个图像数据
ca_name | 压缩算法 |
buffer | 压缩后的数据存放缓冲区 |
buffer_size | 缓冲区大小 |
data | 原始的图像数据 |
width | 图像宽 |
height | 图像高 |
channels | 图像通道数 |
level | 压缩级别(0:不压缩,1:最大压缩比) |
uint32 hgl::ImageDecompress | ( | const WideString & | ca_name, |
void * | data, | ||
void * | buffer, | ||
uint32 | size, | ||
int | width, | ||
int | height, | ||
int | channels | ||
) |
解压缩图像数据
解压缩一个图像数据
ca_name | 压缩算法 |
data | 解压后的数据存放处 |
buffer | 压缩的数据指针 |
size | 压缩数据的长度 |
width | 图像宽 |
height | 图像高 |
channels | 图像通道数 |
uint32 __inline hgl::ImageDecompress | ( | CA | ca, |
void * | data, | ||
void * | buffer, | ||
uint32 | size, | ||
int | width, | ||
int | height, | ||
int | channels | ||
) |
解压缩一个图像数据
ca | 压缩算法 |
data | 解压后的数据存放处 |
buffer | 压缩的数据指针 |
size | 压缩数据的长度 |
width | 图像宽 |
height | 图像高 |
channels | 图像通道数 |
ImagePlugInInterface * hgl::ImageInterfaceCheck | ( | ImageFormat | ift | ) |
ImagePlugInInterface* hgl::ImageInterfaceCheck | ( | const WideString & | ) |
void hgl::init_by_array | ( | uint32 | init_key[], |
int32 | key_length | ||
) |
void hgl::init_genrand | ( | uint32 | s | ) |
bool hgl::InitAudio | ( | const char * | device_name = 0 | ) |
初始化音频
void hgl::InitCondVarNT6 | ( | ) |
bool hgl::InitCore | ( | SystemInfo & | si, |
bool | create_log | ||
) |
初始化核心
bool hgl::InitCore | ( | SystemInfo & | si, |
SystemInitInfo * | sii | ||
) |
bool hgl::InitGraphics | ( | TCustomControl * | ctrl | ) |
初始化图形模式,不显示
bool hgl::InitGraphics | ( | TCustomControl * | ctrl, |
int | left, | ||
int | top, | ||
int | width, | ||
int | height | ||
) |
初始化图形模式
初始化图形模式 ctrl 绘图用控件指针 left,top,width,height 显示位置
void hgl::InitKeyConvert | ( | ) |
void hgl::InitMemoryPool | ( | ) |
void hgl::InitMessageProc | ( | GraphicsApplication * | app, |
WinWindow * | win, | ||
bool | joy | ||
) |
bool hgl::InitOpenGL | ( | ) |
void hgl::InitPlugIn | ( | ) |
初始化插件管理
void hgl::InitRand | ( | ) |
void hgl::InitRWLockNT6 | ( | ) |
bool hgl::InitSystem | ( | bool | create_log = true , |
bool | check_system = true |
||
) |
初始化系统
void hgl::InitYUV2RGBDecode | ( | ) |
typedef hgl::int | ( | __cdecl * | ReadFunc | ) |
hgl::int | ( | __stdcall * | hglSwapBuffers | ) |
uint64 hgl::int128to64 | ( | int128 | n | ) | [inline] |
void hgl::IntToSize | ( | WideString & | ws, |
uint64 | value | ||
) |
该函数将一个计算资料容量值转换成字符串 依次使用B,K,M,G,T,P
WideString hgl::IntToStr | ( | int64 | n | ) | [inline] |
转换整型数到WideString
将整型数转换成字符串
n | 要转换的数值 |
Matrix4f hgl::inverse | ( | const Matrix4f & | m | ) | [inline] |
bool hgl::isdigit | ( | const T | ch | ) |
bool hgl::IsDirectory | ( | const wchar_t * | name | ) |
判断这个名称是否是目录
判断当前名称是否是一个目录
name | 名称 |
void hgl::itow | ( | int128 | n, |
wchar_t * | Str | ||
) |
void __cdecl hgl::JoyDown | ( | uint | key | ) |
void __cdecl hgl::JoyPress | ( | uint | key | ) |
void __cdecl hgl::JoyUp | ( | uint | key | ) |
double hgl::Lcos | ( | int | angle | ) |
float hgl::length | ( | const cml::vector2f & | v1, |
const cml::vector2f & | v2 | ||
) | [inline] |
float hgl::length | ( | const cml::vector3f & | v1, |
const cml::vector3f & | v2 | ||
) | [inline] |
float hgl::length_squared | ( | const cml::vector2f & | v1, |
const cml::vector2f & | v2 | ||
) | [inline] |
float hgl::length_squared | ( | const cml::vector3f & | v1, |
const cml::vector3f & | v2 | ||
) | [inline] |
double hgl::LoadAudioData | ( | int | index, |
AudioFileType | aft, | ||
void * | memory, | ||
int | memory_size | ||
) |
bool hgl::LoadCubeTexture | ( | TDFNode * | tdf, |
Texture2D * | tex[6] | ||
) |
从TDF节点中加载一个Cube贴图
加载一个Cube贴图,里面包含了六张贴图
tdf | TDF节点 |
tex | 贴图存放处 |
bool hgl::LoadCubeTexture | ( | Stream * | stream, |
Texture2D * | tex[6] | ||
) |
从流中加载一个Cube贴图
加载一个Cube贴图,里面包含了六张贴图
stream | 流 |
tex | 贴图存放处 |
bool hgl::LoadCubeTexture | ( | const wchar_t * | filename, |
Texture2D * | tex[6] | ||
) |
加载一个Cube贴图文件
加载一个Cube贴图,里面包含了六张贴图
filename | 文件名 |
tex | 贴图存放处 |
bool hgl::LoadCubeTexture | ( | HAC * | hac, |
const wchar_t * | filename, | ||
Texture2D * | tex[6] | ||
) |
加载一个Cube贴图文件
加载一个Cube贴图,里面包含了六张贴图
hac | 存放贴图的HAC包 |
filename | 文件名 |
tex | 贴图存放处 |
读取文件的一部分到内存
filename | 文件名 |
offset | 起始地址 |
length | 读取长度 |
buf | 数据存放地址,为NULL表示要求函数分配 |
int64 hgl::LoadFileToMemory | ( | const wchar_t * | filename, |
void ** | buf | ||
) |
加载一个文件到内存
加载一个文件到内存,文件数据请自己delete[]掉
filename | 要载入的文件名称 |
buf | 用来保存数据的内存指针的指针 |
void* hgl::LoadFileToMemory | ( | const wchar_t * | , |
unsigned | int, | ||
unsigned | int, | ||
void * | buf = 0 |
||
) |
加载一个文件的一部分到内存
void * hgl::LoadHGP | ( | const wchar_t * | filename, |
uint & | glformat, | ||
int & | width, | ||
int & | height, | ||
int8 & | ct | ||
) |
void * hgl::LoadHGP | ( | HAC * | hac, |
const wchar_t * | filename, | ||
uint & | glformat, | ||
int & | width, | ||
int & | height, | ||
int8 & | ct | ||
) |
bool __cdecl hgl::LoadInterface | ( | const wchar_t * | name, |
int | ver, | ||
void * | data | ||
) |
void* __cdecl hgl::LoadInterface | ( | const wchar_t * | , |
int | |||
) |
加载一个插件,并取得指定接口
bool hgl::LoadInterfaceByName | ( | const wchar_t * | name, |
int | ver, | ||
void * | data | ||
) |
void hgl::LoadJoystick | ( | HINSTANCE | hInstance, |
HWND | hWnd | ||
) |
void hgl::LoadMatrix | ( | GLenum | matrix, |
float * | mm | ||
) |
加载矩阵
加载矩阵
matrix | 矩阵(只能是GL_PROJECTION、GL_MODELVIEW、GL_TEXTURE) |
mm | 矩阵数据 |
bool hgl::LoadMatrixStack | ( | void * | , |
uint | |||
) |
void * hgl::LoadMonoLayer | ( | const wchar_t * | filename, |
uint & | format, | ||
int & | width, | ||
int & | height, | ||
ColorType & | ct | ||
) |
void * hgl::LoadMonoLayer | ( | const wchar_t * | filename, |
uint & | format, | ||
int & | width, | ||
int & | height, | ||
ColorType & | color, | ||
bool | check_mono, | ||
bool | check_alpha | ||
) |
void * hgl::LoadOtherFormat | ( | const wchar_t * | filename, |
uint & | format, | ||
int & | width, | ||
int & | height, | ||
ColorType & | ct, | ||
bool | check_mono, | ||
bool | check_alpha, | ||
ImageFormat | pi_index | ||
) |
PlugIn *__cdecl hgl::LoadPlugIn | ( | const wchar_t * | plugin_name, |
PlugInType | type | ||
) |
加载一个插件
加载一个插件
plugin_name | 插件名称 |
type | 特殊插件类型 |
void * hgl::LoadTexture | ( | TDFNode * | , |
uint & | , | ||
int & | , | ||
int & | , | ||
ColorType & | |||
) |
从TDF加载一个贴图文件,并取得原始数据
从TDF节点加载一个贴图文件数据
tdf | TDF节点 |
format | 这个贴图文件推荐使用的OpenGL象素格式 |
width | 这个贴图文件的宽度 |
height | 这个贴图文件的高度 |
color | 这个贴图文件的色彩格式 |
void * hgl::LoadTexture | ( | Stream * | , |
uint & | , | ||
int & | , | ||
int & | , | ||
ColorType & | |||
) |
从流加载一个贴图文件,并取得原始数据
从流加载一个贴图文件
str | 要加载的贴图文件的流 |
format | 这个贴图文件推荐使用的OpenGL象素格式 |
width | 这个贴图文件的宽度 |
height | 这个贴图文件的高度 |
ct | 这个贴图文件的色彩格式 |
void * hgl::LoadTexture | ( | const wchar_t * | , |
uint & | , | ||
int & | , | ||
int & | , | ||
ColorType & | |||
) |
加载一个贴图文件,并取得原始数据
加载一个贴图文件
filename | 要加载的贴图文件名称 |
format | 这个贴图文件推荐使用的OpenGL象素格式 |
width | 这个贴图文件的宽度 |
height | 这个贴图文件的高度 |
ct | 这个贴图文件的色彩格式 |
void * hgl::LoadTexture | ( | HAC * | , |
const wchar_t * | , | ||
uint & | , | ||
int & | , | ||
int & | , | ||
ColorType & | |||
) |
加载一个贴图文件,并取得原始数据
加载一个贴图文件
hac | 贴图文件所在的HAC包 |
filename | 要加载的贴图文件名称 |
format | 这个贴图文件推荐使用的OpenGL象素格式 |
width | 这个贴图文件的宽度 |
height | 这个贴图文件的高度 |
color | 这个贴图文件的色彩格式 |
加载文本文件到内存
加载一个文本到内存
str | 文本流 |
file_length | 流长度字节数 |
buf | 读取出的文本存放缓冲区 |
ccp | 如果为ansi,将使用的转换代码页 |
int64 hgl::LoadTxtToMemory | ( | const wchar_t * | filename, |
wchar_t ** | buf, | ||
int | ccp | ||
) |
加载文本文件到内存
加载一个文本文件到内存
filename | 文件名 |
buf | 文本缓冲区 |
ccp | 如果为ansi,将使用的转换代码页 |
Matrix4f hgl::lookAt | ( | const cml::vector3f & | eye, |
const cml::vector3f & | target, | ||
const cml::vector3f & | up | ||
) | [inline] |
void hgl::LowerString | ( | T * | SourceString | ) |
将一个字符串中的字母全部改为小写
SourceString | 要处理的字符串 |
void hgl::LowerString | ( | const T * | SourceString, |
T * | TargetString | ||
) |
将一个字符串中的字母全部改为小写
SourceString | 要处理的字符串 |
double hgl::Lsin | ( | int | angle | ) |
bool hgl::MakePath | ( | const wchar_t * | dirname | ) |
创建一个路径
创建一个子目录,该函数可自动创建多级目录。
dirname | 目录名称 |
int hgl::mClamp | ( | int | val, |
int | low, | ||
int | high | ||
) | [inline] |
wchar_t * hgl::MergeFilename | ( | const wchar_t * | pathname, |
const wchar_t * | filename | ||
) |
组合路径名与文件名
组合路径名与文件名,自动检测\
pathname | 路径名 |
filename | 文件名 |
bool hgl::MergeFilename | ( | wchar_t * | full_name, |
int | size, | ||
const wchar_t * | pathname, | ||
const wchar_t * | filename | ||
) |
组合路径名与文件名
组合路径名与文件名,自动检测\
full_name | 完整路径文件名称存放空间指针 |
size | 存放空间长度 |
pathname | 路径名 |
filename | 文件名 |
bool hgl::MessageProc | ( | WinWindow * | win | ) |
CA hgl::NameToCA | ( | const WideString & | name | ) |
名称到压缩算法枚举转换
cml::vector3f hgl::normalize | ( | const cml::vector3f & | v | ) | [inline] |
void hgl::OnMovieDecodeFrame | ( | void * | movie, |
uchar * | data | ||
) |
void hgl::OpenAlphaTest | ( | const GLenum | func, |
const float | ref | ||
) |
void hgl::OpenBlend | ( | BlendModeEnum | bme | ) |
开启混合效果
void hgl::OpenClientState | ( | GraphicsClientState | gcs | ) |
开启OpenGL客户端状态
void hgl::OpenCullFace | ( | GLuint | mode | ) |
开启面裁剪
void hgl::OpenDepthMask | ( | ) |
void hgl::OpenDepthTest | ( | ) |
开启深度测试
__inline FileStream* hgl::OpenFileStream | ( | const wchar_t * | filename, |
FileOpenMode | mode = fomOpenRead |
||
) |
HAC * hgl::OpenHAC | ( | const wchar_t * | filename | ) |
打开一个.HAC文件,或是根据路径创建一个虚拟的HAC环境
打开一个.Hac文件或是指定一个目录,创建并返回一个HAC3包裹文件支持类。请注意它支持HAC-3的.HAC文件,并不支持HAC-2的HAC文件
filename | 包裹文件名称或是目录名称 |
void hgl::OpenLineSmooth | ( | ) |
开启线条平滑
void hgl::OpenScissor | ( | const int * | v | ) |
更改当前裁剪
void hgl::OpenScissor | ( | const int | left, |
const int | top, | ||
const int | width, | ||
const int | height | ||
) |
更改当前裁剪
void hgl::OpenTexture | ( | TextureType | type | ) |
开启贴图渲染
hgl::OPER_OVER | ( | DevilCompGreater | ) |
hgl::oper_over | ( | char * | ) |
hgl::OPER_OVER | ( | DevilCompEqu | ) |
hgl::OPER_OVER | ( | DevilCompLessEqu | , |
<= | |||
) |
hgl::OPER_OVER | ( | DevilCompLess | ) |
hgl::oper_over | ( | int | ) |
hgl::OPER_OVER | ( | DevilCompGreaterEqu | , |
>= | |||
) |
hgl::oper_over | ( | uint64 | ) |
hgl::oper_over | ( | wchar_t * | ) |
hgl::OPER_OVER | ( | DevilCompNotEqu | , |
! | |||
) |
hgl::oper_over | ( | uint | ) |
hgl::oper_over | ( | int64 | ) |
hgl::oper_over | ( | double | ) |
hgl::oper_over | ( | char | ) |
hgl::oper_over | ( | wchar_t | ) |
bool hgl::operator!= | ( | int128 | n1, |
int128 | n2 | ||
) |
int128 hgl::operator% | ( | int128 | n1, |
int128 | n2 | ||
) |
int128 hgl::operator& | ( | int128 | n1, |
int128 | n2 | ||
) |
int128 hgl::operator* | ( | int128 | n1, |
int128 | n2 | ||
) |
int128 hgl::operator*= | ( | int128 & | n1, |
int128 | n2 | ||
) |
int128 hgl::operator+ | ( | int128 | n1, |
int128 | n2 | ||
) |
int128 hgl::operator+= | ( | int128 & | n1, |
int128 | n2 | ||
) |
int128 hgl::operator- | ( | int128 | n1, |
int128 | n2 | ||
) |
int128 hgl::operator-= | ( | int128 & | n1, |
int128 | n2 | ||
) |
int128 hgl::operator/ | ( | int128 | n1, |
int128 | n2 | ||
) |
int128 hgl::operator/= | ( | int128 & | n1, |
int128 | n2 | ||
) |
bool hgl::operator< | ( | int128 | n1, |
int128 | n2 | ||
) |
bool hgl::operator<= | ( | int128 | n1, |
int128 | n2 | ||
) |
bool hgl::operator== | ( | int128 | n1, |
int128 | n2 | ||
) |
bool hgl::operator> | ( | int128 | n1, |
int128 | n2 | ||
) |
bool hgl::operator>= | ( | int128 | n1, |
int128 | n2 | ||
) |
int128 hgl::operator| | ( | int128 | n1, |
int128 | n2 | ||
) |
Matrix4f hgl::ortho2 | ( | float | width, |
float | height, | ||
float | znear = 0 , |
||
float | zfar = 1 |
||
) | [inline] |
Matrix4f hgl::ortho4 | ( | float | left, |
float | right, | ||
float | bottom, | ||
float | top, | ||
float | znear = 0 , |
||
float | zfar = 1 |
||
) | [inline] |
void hgl::OverflowDecrypt | ( | void * | target, |
void * | source, | ||
int | size, | ||
void * | key, | ||
int | key_size | ||
) |
溢出解密
target | 解密后的数据存放区 |
source | 解密前的数据存放区 |
size | 数据长度 |
key | 密码 |
keysize | 密码长度 |
void hgl::OverflowEncrypt | ( | void * | target, |
void * | source, | ||
int | size, | ||
void * | key, | ||
int | key_size | ||
) |
溢出加密
target | 加密后的数据存放区 |
source | 加密前的数据存放区 |
size | 数据长度 |
key | 密码 |
key_size | 密码长度 |
int hgl::ParseUTF | ( | wchar_t ** | buf, |
void * | raw_str, | ||
int | byte_size, | ||
bool | is_little_endian | ||
) |
Matrix4f hgl::perspective | ( | float | fovy, |
float | aspect, | ||
float | znear, | ||
float | zfar | ||
) | [inline] |
void hgl::PicZoom_Bilinear_Common | ( | const TPicRegion & | Dst, |
const TPicRegion & | Src | ||
) |
TARGB32& hgl::Pixels | ( | const TPicRegion & | pic, |
const long | x, | ||
const long | y | ||
) | [inline] |
TARGB32 hgl::Pixels_Bound | ( | const TPicRegion & | pic, |
long | x, | ||
long | y | ||
) | [inline] |
hgl::PlugInManage | ( | Audio | , |
L"Audio" | , | ||
2 | |||
) |
hgl::PlugInManage | ( | Compress | , |
L"Compress" | , | ||
3 | |||
) |
hgl::PlugInManage | ( | Image | , |
L"Image" | , | ||
2 | |||
) |
void hgl::PopMatrix | ( | GLenum | matrix | ) |
弹出指定矩阵
弹出指定矩阵
matrix | 矩阵(只能是GL_PROJECTION、GL_MODELVIEW、GL_TEXTURE) |
int hgl::power_to_2 | ( | int | value | ) | [inline] |
int hgl::PowerTo2 | ( | int | old, |
int | max_value | ||
) |
计算能适应当前数的一个符合2次幂的值,并且不能超过某个值
old | 原本的数 |
int hgl::PowerTo2 | ( | int | old | ) |
计算能适应当前数的一个符合2次幂的值
old | 原本的数 |
hgl::PROC | ( | Proc_MouseMidDoubleClick | ) |
hgl::PROC | ( | Proc_JoystickDown | ) |
hgl::PROC | ( | Proc_MouseMove | ) |
hgl::PROC | ( | Proc_MouseLeftDown | ) |
hgl::PROC | ( | Proc_MouseLeftDoubleClick | ) |
hgl::PROC | ( | Proc_MouseMidUp | ) |
hgl::PROC | ( | Proc_MouseRightDown | ) |
hgl::PROC | ( | Proc_MouseRightUp | ) |
hgl::PROC | ( | Proc_MouseRightDoubleClick | ) |
hgl::PROC | ( | Proc_JoystickPress | ) |
hgl::PROC | ( | Proc_KeyDown | ) |
hgl::PROC | ( | Proc_MouseMidDown | ) |
hgl::PROC | ( | Proc_KeyUp | ) |
hgl::PROC | ( | Proc_KeyPress | ) |
hgl::PROC | ( | Proc_MouseLeftUp | ) |
hgl::PROC | ( | Proc_JoystickUp | ) |
hgl::ProcFunc | ( | Proc_MouseMidUp | ) |
hgl::PROCFUNC | ( | MidDown | ) |
hgl::PROCFUNC | ( | MidUp | ) |
hgl::PROCFUNC | ( | LeftDoubleClick | ) |
hgl::PROCFUNC | ( | Char | , |
wchar_t | |||
) |
hgl::PROCFUNC | ( | MidDoubleClick | ) |
hgl::ProcFunc | ( | Proc_MouseRightUp | ) |
hgl::PROCFUNC | ( | Proc_MouseRightDoubleClick | , |
OnMouseRightDoubleClick | |||
) |
hgl::PROCFUNC | ( | RightUp | ) |
hgl::PROCFUNC | ( | RightDown | ) |
hgl::PROCFUNC | ( | JoystickPress | , |
uint | |||
) |
hgl::PROCFUNC | ( | Proc_JoystickDown | , |
uint | |||
) |
hgl::PROCFUNC | ( | Proc_MouseMidDoubleClick | , |
OnMouseMidDoubleClick | |||
) |
hgl::PROCFUNC | ( | Proc_MouseMidDown | , |
OnMouseMidDown | |||
) |
hgl::PROCFUNC | ( | Proc_JoystickPress | , |
uint | |||
) |
hgl::PROCFUNC | ( | Proc_KeyUp | , |
uint | |||
) |
hgl::PROCFUNC | ( | LeftDown | ) |
hgl::PROCFUNC | ( | JoystickUp | , |
uint | |||
) |
hgl::PROCFUNC | ( | Proc_MouseLeftUp | , |
OnMouseLeftUp | |||
) |
hgl::PROCFUNC | ( | LeftUp | ) |
hgl::PROCFUNC | ( | Proc_MouseLeftDoubleClick | , |
OnMouseLeftDoubleClick | |||
) |
hgl::PROCFUNC | ( | RightDoubleClick | ) |
hgl::ProcFunc | ( | Proc_MouseLeftUp | ) |
hgl::PROCFUNC | ( | KeyDown | , |
uint | |||
) |
hgl::PROCFUNC | ( | KeyPress | , |
uint | |||
) |
hgl::PROCFUNC | ( | KeyUp | , |
uint | |||
) |
hgl::PROCFUNC | ( | Proc_MouseMove | , |
OnMouseMove | |||
) |
hgl::PROCFUNC | ( | Proc_MouseRightDown | , |
OnMouseRightDown | |||
) |
hgl::PROCFUNC | ( | Proc_MouseRightUp | , |
OnMouseRightUp | |||
) |
hgl::PROCFUNC | ( | Proc_MouseMidUp | , |
OnMouseMidUp | |||
) |
hgl::PROCFUNC | ( | Proc_JoystickUp | , |
uint | |||
) |
hgl::PROCFUNC | ( | Proc_KeyDown | , |
uint | |||
) |
hgl::PROCFUNC | ( | Proc_KeyPress | , |
uint | |||
) |
hgl::PROCFUNC | ( | Proc_Char | , |
wchar_t | |||
) |
hgl::ProcFunc | ( | Proc_MouseLeftDoubleClick | ) |
hgl::ProcFunc | ( | Proc_MouseMidDoubleClick | ) |
hgl::ProcFunc | ( | Proc_MouseRightDoubleClick | ) |
hgl::PROCFUNC | ( | Proc_MouseLeftDown | , |
OnMouseLeftDown | |||
) |
int hgl::ProcSize | ( | int | size, |
int | min | ||
) |
hgl::ProcTopFunc | ( | Proc_MouseRightDown | ) |
hgl::ProcTopFunc | ( | Proc_MouseMidDown | ) |
void hgl::PushMatrix | ( | GLenum | matrix | ) |
压入矩阵堆栈
压入指定矩阵
matrix | 矩阵(只能是GL_PROJECTION、GL_MODELVIEW、GL_TEXTURE) |
void hgl::PutATIMemoryInfo | ( | uint | value, |
const wchar_t * | name | ||
) |
void hgl::PutDisplayDevicesInfo | ( | ) |
void hgl::PutOpenExtInfo | ( | const char * | str, |
const char * | flag | ||
) |
void hgl::PutOpenGLFloatRange | ( | const wchar_t * | name, |
const uint | flag | ||
) |
void hgl::PutOpenGLFloatValue | ( | const wchar_t * | name, |
const uint | flag | ||
) |
void hgl::PutOpenGLInfo | ( | HDC | ) |
void hgl::PutOpenGLInfo | ( | const char * | os_ext_info, |
const char * | os_ext_name | ||
) |
void hgl::PutOpenGLIntegerValue | ( | const wchar_t * | name, |
const uint | flag | ||
) |
void hgl::PutOpenGLRGBAValue | ( | const wchar_t * | name, |
const uint | flag | ||
) |
void hgl::PutOpenGLStringValue | ( | const char * | name, |
const char * | str | ||
) |
void hgl::PutOpenGLStringValue | ( | const char * | name, |
const uint | flag | ||
) |
void hgl::PutSystemInfo | ( | SystemInfo * | ) |
RC4算法加密函数
data | 数据 |
datasize | 数据长度 |
key | 密码 |
keysize | 密码长度(字节) |
hgl::READFUNC | ( | ReadInt64 | , |
int64 | |||
) |
hgl::READFUNC | ( | ReadUint16 | , |
uint16 | |||
) |
hgl::READFUNC | ( | ReadUint64 | , |
uint64 | |||
) |
hgl::READFUNC | ( | ReadDouble | , |
double | |||
) |
hgl::READFUNC | ( | ReadUint8 | , |
uint8 | |||
) |
hgl::READFUNC | ( | ReadInt16 | , |
int16 | |||
) |
hgl::READFUNC | ( | ReadBool | , |
bool | |||
) |
hgl::READFUNC | ( | ReadInt8 | , |
int8 | |||
) |
hgl::READFUNC | ( | ReadInt32 | , |
int32 | |||
) |
hgl::READFUNC | ( | ReadUint32 | , |
uint32 | |||
) |
hgl::READFUNC | ( | ReadFloat | , |
float | |||
) |
hgl::READFUNC | ( | ReadString | , |
WideString | |||
) |
void hgl::RedrawScreen | ( | ) |
刷新整个屏幕
void hgl::RegistryPIMClear | ( | void(*)() | func | ) |
void hgl::ReleaseFont | ( | FontUnit * | fu | ) |
void hgl::ReplaceChar | ( | T * | string, |
const T | sch, | ||
const T | tch | ||
) |
将一个字符串中的某个字符全部替换为另一个字符
string | 要处理的字符串 |
sch | 要被替换掉的字符 |
tch | 替换后的字符 |
void hgl::ReplaceExtName | ( | const T * | old_filename, |
T * | new_filename, | ||
const T * | new_extname | ||
) |
给一个文件名更改扩展名
old_filename | 原始文件名称 |
new_filename | 新文件名称 |
new_extname | 新扩展名(不带.) |
void hgl::ReplaceExtName | ( | T * | filename, |
const T * | new_extname | ||
) |
给一个文件名更改扩展名
filename | 文件名称 |
new_extname | 新扩展名(不带.) |
bool hgl::RestartDisplayMode | ( | ) |
void hgl::RestartOpenGL | ( | ) |
重置渲染控制器
重置OpenGL渲染器状态
RLE压缩
dst | 压缩后数据的存放缓冲区 |
dst_max | 存放缓冲区大小 |
src | 原始数据 |
src_length | 原始数据长度 |
RLE解压
dst | 解压后数据的存放缓冲区 |
dst_max | 存放缓冲区大小 |
dst_pitch | 解压后时每位数据的间隔 |
src | 原始数据 |
src_length | 原始数据长度 |
Matrix4f hgl::rotate | ( | float | angle, |
const cml::vector4f & | axis | ||
) | [inline] |
Matrix4f hgl::rotate | ( | float | angle, |
const cml::vector3f & | axis | ||
) | [inline] |
Matrix4f hgl::rotate | ( | float | angle, |
float | x, | ||
float | y, | ||
float | z | ||
) | [inline] |
bool hgl::SaveBitmapToFile | ( | const wchar_t * | filename, |
int | width, | ||
int | height, | ||
int | color, | ||
void * | data | ||
) |
bool hgl::SaveBitmapToHGP | ( | const wchar_t * | , |
int | , | ||
int | , | ||
ColorType | , | ||
void * | , | ||
const wchar_t * | ca = L"RLE" , |
||
float | = 1 |
||
) |
保存一个位图数据成HGP文件
bool hgl::SaveBitmapToTEX | ( | const wchar_t * | , |
int | , | ||
int | , | ||
ColorType | , | ||
void * | , | ||
const wchar_t * | ca = L"RLE" , |
||
float | rate = 1 |
||
) |
保存一个位图数据成TEX文件
保存一个位图数据为贴图文件
filename | 文件名 |
width | 图像宽 |
height | 图像高 |
color | 色彩类型 |
data | 数据 |
uint hgl::SaveMatrixStack | ( | void * | ) |
bool hgl::SaveMemoryToFile | ( | const wchar_t * | , |
unsigned | int, | ||
unsigned | int, | ||
void * | |||
) |
保存一块内存到一个文件
保存一块内存成文件
保存一块内存成文件
filename | 要保存的文件名称 |
buf | 要保存的内存指针 |
size | 要保存的内存数据长度 |
bool hgl::SaveMemoryToFile | ( | const wchar_t * | filename, |
int | offset, | ||
int | length, | ||
void * | data | ||
) |
保存内存中的数据到文件中
filename | 文件名 |
offset | 起始地址 |
length | 数据长度 |
data | 数据长度 |
bool hgl::SaveScreenToBMP | ( | const wchar_t * | filename, |
int | width, | ||
int | height | ||
) |
截取当前屏幕图像保存成BMP文件
filename | 文件名,如不输入表示自动产生文件名(于 启动目录 目录下) |
bool hgl::SaveScreenToHGP | ( | const wchar_t * | , |
int | , | ||
int | , | ||
int | , | ||
int | , | ||
int | , | ||
int | , | ||
const wchar_t * | ca = L"RLE" , |
||
float | = 1 |
||
) |
保存当前屏幕图像成HGP文件
将当前屏幕内容保存成HGP文件
filename | 文件名称 |
img_width,img_height | 最终图像文件大小 |
left | 截取屏幕左边际坐标 |
top | 截取屏幕上边际坐标 |
width,height | 截取屏幕的宽,高 |
ca | 压缩算法 |
level | 压缩级别(0:最小压缩,1:最大压缩) |
bool hgl::SaveScreenToHGP | ( | const wchar_t * | , |
int | , | ||
int | , | ||
int | , | ||
int | , | ||
const wchar_t * | ca = L"RLE" , |
||
float | = 1 |
||
) |
保存当前屏幕图像成HGP文件
将当前屏幕内容保存成HGP文件
filename | 文件名称 |
left | 截取屏幕左边际坐标 |
top | 截取屏幕上边际坐标 |
width,height | 截取屏幕的宽,高 |
ca | 压缩算法 |
level | 压缩级别(0:最小压缩,1:最大压缩) |
bool hgl::SaveScreenToTEX | ( | const wchar_t * | , |
int | , | ||
int | , | ||
int | , | ||
int | , | ||
int | , | ||
int | , | ||
const wchar_t * | ca = L"RLE" , |
||
float | rate = 1 |
||
) |
保存当前屏幕图像成TEX文件
将当前屏幕内容保存成TEX文件
filename | 文件名称 |
img_width,img_height | 最终图像文件大小 |
left | 截取屏幕左边际坐标 |
top | 截取屏幕上边际坐标 |
width,height | 截取屏幕的宽,高 |
bool hgl::SaveScreenToTEX | ( | const wchar_t * | , |
int | , | ||
int | , | ||
int | , | ||
int | , | ||
const wchar_t * | ca = L"RLE" , |
||
float | rate = 1 |
||
) |
保存当前屏幕图像成TEX文件
将当前屏幕内容保存成TEX文件
filename | 文件名称 |
left | 截取屏幕左边际坐标 |
top | 截取屏幕上边际坐标 |
width,height | 截取屏幕的宽,高 |
bool hgl::SaveScreenToTGA | ( | const wchar_t * | filename, |
int | width, | ||
int | height | ||
) |
截取当前屏幕图像保存成TGA文件
filename | 文件名,如不输入表示自动产生文件名(于 启动目录 目录下) |
Matrix4f hgl::scale | ( | const cml::vector3f & | v | ) | [inline] |
Matrix4f hgl::scale | ( | float | s | ) | [inline] |
Matrix4f hgl::scale | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
void hgl::ScaleImage | ( | void * | old_data, |
int | old_width, | ||
int | old_height, | ||
void * | new_data, | ||
int | new_width, | ||
int | new_height, | ||
ColorType | color | ||
) |
缩放一个图像
old_data | 原始数据 |
old_width,old_height | 原始图像大小 |
new_data | 新数据 |
new_width,new_height | 新图像大小 |
color | 色彩类型 |
设置当前矩阵3D原点在屏幕上的2D坐标位置,本函数仅移动x,y坐标.
要求当前已为3D矩阵,并且原点在中心
x,y | 原点在屏幕上的2D坐标 |
void hgl::SetCanvas | ( | int | w, |
int | h | ||
) |
设置画布大小
void hgl::SetClearSimplePixel | ( | bool | csp | ) |
设置色差容差
bool hgl::SetDisplayMode | ( | int | width, |
int | height, | ||
int | bit, | ||
int | vsync | ||
) |
void hgl::SetExpendString | ( | const WideString & | flag, |
const WideString & | str | ||
) |
设置特殊扩展字符串
void hgl::SetLineWidth | ( | GLfloat | width | ) |
设置线宽
void hgl::SetMatrix | ( | GLenum | matrix | ) |
设置矩阵堆栈
设定当前矩阵
matrix | 矩阵(只能是GL_PROJECTION、GL_MODELVIEW、GL_TEXTURE) |
void hgl::SetPixelStore | ( | GLenum | p, |
int | v | ||
) |
void hgl::SetPlugIn | ( | PlugIn * | pi, |
PlugInType | type | ||
) |
设置一个插件
设置插件
pi | 插件指针 |
type | 插件类型 |
void hgl::SetSameColor | ( | int | sc | ) |
void hgl::SetScreen | ( | int | w, |
int | h | ||
) |
设置屏幕大小
void hgl::SetScreenValue | ( | int | , |
int | |||
) |
bool hgl::Sort | ( | List< T > & | list, |
Comparator< T > * | comp = Comparator<T>() |
||
) |
bool hgl::Sort | ( | T * | data, |
int | count, | ||
Comparator< T > * | comp = new Comparator<T>() |
||
) |
int hgl::SplitPowerTo2 | ( | int | size, |
int * | val, | ||
int | min | ||
) |
拆分一个数到一组符合2次幂的数
size | 原本的数 |
val | 拆分后的数组指针 |
min | 拆分的最小值,默认为4(不足4的按4算) |
void hgl::SplitToStringList | ( | StringList * | sl, |
T * | data, | ||
int | size | ||
) |
int hgl::StatChar | ( | const T * | str, |
const T | ch | ||
) |
统计在字符串中某个字符的出现次数
str | 字符串 |
ch |
int hgl::StatLine | ( | const T * | str | ) |
统计一个字符串的行数
void hgl::strcat | ( | T * | dst, |
const T | src | ||
) |
复制一个字符到当前字符串后面
dst | 目标字符串 |
src | 源字符 |
void hgl::strcat | ( | T * | dst, |
const T * | src, | ||
int | count | ||
) |
复制一个字符串到当前字符串后面,并指定最大长度
void hgl::strcat | ( | T * | dst, |
const T * | src | ||
) |
复制一个字符串到当前字符串后面
dst | 目标字符串 |
src | 源字符串 |
T* hgl::strchr | ( | const T * | str, |
const T | ch | ||
) |
在字符串中查找某个字符
str | 字符串 |
ch | 字符 |
T* hgl::strchr | ( | const T * | str, |
const T | ch, | ||
int | n | ||
) |
在字符串中查找某个字符,指定字符串最大长度
str | 字符串 |
ch | 字符 |
n | 字符串长度 |
int hgl::strcmp | ( | const T * | src, |
const T * | dst | ||
) |
比较两个字符串的大小
src,dst | 要比较的字符串 |
int hgl::strcmp | ( | const T * | src, |
const T * | dst, | ||
int | count | ||
) |
比较两个字符串的大小,并指定最大比较长度
src,dst | 要比较的字符串 |
count | 比较的最大长度 |
void hgl::strcpy | ( | T * | dst, |
const T * | src | ||
) |
复制字符串
dst | 目标字符串 |
src | 源字符串 |
void hgl::strcpy | ( | T * | dst, |
int | count, | ||
const T * | src | ||
) |
复制字符串,并指定最大长度
dst | 目标字符串 |
src | 源字符串 |
count | 最多复制多少个字符 |
void hgl::strcpy | ( | T * | dst, |
const T * | src, | ||
int | count | ||
) |
复制字符串,并指定最大长度
dst | 目标字符串 |
src | 源字符串 |
count | 最多复制多少个字符 |
int hgl::stricmp | ( | const T * | src, |
const T * | dst, | ||
const int | count | ||
) |
比较两个字符串的大小(英文不区大小写)
src,dst | 要比较的字符串 |
count | 比较的最大长度 |
int hgl::stricmp | ( | const T * | src, |
const T * | dst | ||
) |
比较两个字符串的大小(英文不区大小写)
src,dst | 要比较的字符串 |
int hgl::strlen | ( | const T * | str | ) |
对宽字符串计算字串长度
str | 要计算长度的字符串指针 |
T* hgl::strrchr | ( | const T * | str, |
const T | ch | ||
) |
在字符串中从结尾处开始查找某个字符
str | 字符串 |
ch | 字符 |
T* hgl::strstr | ( | T * | str1, |
const T * | str2 | ||
) |
在字符串str1内查找另一个字符串str2
str1 | 完整的字符串 |
str2 | 要查找的字符串 |
void hgl::SwapRGB | ( | uint8 * | data, |
int | size, | ||
int | pitch | ||
) |
void hgl::SystemCheck | ( | SystemInfo * | si, |
bool | put | ||
) |
int hgl::tdfReadCompressData | ( | TDFNode * | tdf, |
const WideString & | dn_name, | ||
void * | data, | ||
int | size | ||
) |
读取压缩数据
将数据压缩并写入一个TDF节点
tdf | 节点 |
dn_name | 保存压缩数据的节点名称 |
data | 要压缩保存的数据 |
size | 数据最大长度 |
int hgl::tdfReadCompressData | ( | TDFNode * | tdf, |
const WideString & | ca_name, | ||
const WideString & | dn_name, | ||
void * | data, | ||
int | size | ||
) |
读取压缩数据
将数据压缩并写入一个TDF节点
tdf | 节点 |
ca_name | 保存压缩算法名称的节点名称 |
dn_name | 保存压缩数据的节点名称 |
data | 要压缩保存的数据 |
size | 数据最大长度 |
int hgl::tdfReadCompressImage | ( | TDFNode * | tdf, |
const WideString & | ca_name, | ||
const WideString & | dn_name, | ||
void * | data, | ||
int | width, | ||
int | height, | ||
int | channels | ||
) |
int hgl::tdfReadCompressImage | ( | TDFNode * | tdf, |
const WideString & | dn_name, | ||
void * | data, | ||
int | width, | ||
int | height, | ||
int | channels | ||
) |
void hgl::tdfWriteCompressData | ( | TDFNode * | tdf, |
const WideString & | dn_name, | ||
void * | data, | ||
int | size, | ||
CA | ca | ||
) |
存入压缩数据
将数据压缩并写入一个TDF节点
tdf | 节点 |
dn_name | 保存压缩数据的节点名称 |
data | 要压缩保存的数据 |
size | 数据长度 |
ca | 压缩算法 |
void hgl::tdfWriteCompressData | ( | TDFNode * | tdf, |
const WideString & | ca_name, | ||
const WideString & | dn_name, | ||
void * | data, | ||
int | size, | ||
CA | ca | ||
) |
存入压缩数据
将数据压缩并写入一个TDF节点
tdf | 节点 |
ca_name | 保存压缩算法名称的节点名称 |
dn_name | 保存压缩数据的节点名称 |
data | 要压缩保存的数据 |
size | 数据长度 |
ca | 压缩算法 |
void hgl::tdfWriteCompressData | ( | TDFNode * | tdf, |
const WideString & | dn_name, | ||
void * | data, | ||
int | size, | ||
const WideString & | ca | ||
) |
存入压缩数据
将数据压缩并写入一个TDF节点
tdf | 节点 |
dn_name | 保存压缩数据的节点名称 |
data | 要压缩保存的数据 |
size | 数据长度 |
ca | 压缩算法 |
void hgl::tdfWriteCompressData | ( | TDFNode * | tdf, |
const WideString & | ca_name, | ||
const WideString & | dn_name, | ||
void * | data, | ||
int | size, | ||
const WideString & | ca | ||
) |
存入压缩数据
将数据压缩并写入一个TDF节点
tdf | 节点 |
ca_name | 保存压缩算法名称的节点名称 |
dn_name | 保存压缩数据的节点名称 |
data | 要压缩保存的数据 |
size | 数据长度 |
ca | 压缩算法 |
void hgl::tdfWriteCompressImage | ( | TDFNode * | tdf, |
const WideString & | ca_name, | ||
const WideString & | dn_name, | ||
void * | data, | ||
int | width, | ||
int | height, | ||
int | channels, | ||
const WideString & | ca, | ||
float | rate | ||
) |
void hgl::tdfWriteCompressImage | ( | TDFNode * | tdf, |
const WideString & | dn_name, | ||
void * | data, | ||
int | width, | ||
int | height, | ||
int | channels, | ||
const WideString & | ca, | ||
float | rate | ||
) |
hgl_thread_result hgl::ThreadFunc | ( | void * | ptr | ) |
cml::vector2f hgl::to | ( | const cml::vector2f & | start, |
const cml::vector2f & | end, | ||
float | pos | ||
) | [inline] |
cml::vector3f hgl::to | ( | const cml::vector3f & | start, |
const cml::vector3f & | end, | ||
float | pos | ||
) | [inline] |
void hgl::To2DMode | ( | float | canvas_width, |
float | canvas_height, | ||
float | left, | ||
float | top, | ||
float | width, | ||
float | height | ||
) |
设置当前矩阵为正角视图,并将绘图坐标系转换为2D坐标系
canvas_width | 游戏画面宽度 |
canvas_height | 游戏画面高度 |
left | 可视画面左边界坐标 |
top | 可视画面上边界坐标 |
width | 可视画面宽度 |
height | 可视画现高度 |
void hgl::To2DMode | ( | float | w, |
float | h | ||
) |
设置当前矩阵为正角视图,并将绘图坐标系转换为2D坐标系
w | 游戏画面宽度 |
h | 游戏画现高度 |
void hgl::To2DMode | ( | ) |
void __inline hgl::To3DMode | ( | float | fov, |
float | n, | ||
float | f | ||
) |
void hgl::To3DMode | ( | float | fovy, |
float | p, | ||
float | n, | ||
float | f | ||
) |
设置当前矩阵为投影视图,并将绘图坐标系设为标准3D坐标系
fovy | 角度 |
p | 宽/高比例 |
n | 最近的坐标 |
f | 最远的坐标 |
void __inline hgl::To3DMode | ( | float | fov | ) |
void hgl::To3DOrtho | ( | float | size, |
float | nr | ||
) |
设置3D正角视图模式
size | 宽或高的值(一般为1) |
nr | 远近的值(一般为1) |
将图片缩小到原始的一半
dst | 缩小后的图片保存地址 |
src | 原始图片数据保存地址 |
width | 原始图片宽 |
height | 原始图片高 |
color | 图片色彩成份 |
Matrix4f hgl::translate | ( | const cml::vector3f & | v | ) | [inline] |
Matrix4f hgl::translate | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
WideString hgl::UIntToStr | ( | uint64 | n | ) | [inline] |
转换整型数到WideString
将整型数转换成字符串
n | 要转换的数值 |
int hgl::Unite | ( | int * | data, |
int | number, | ||
int | min | ||
) |
void __cdecl hgl::UnloadPlugIn | ( | PlugIn * | pi | ) |
释放一个插件
释放一个插件
pi | 插件指针 |
void hgl::UpperString | ( | T * | SourceString | ) |
将一个字符串中的字母全部改为大写
SourceString | 要处理的字符串 |
void hgl::UpperString | ( | const T * | SourceString, |
T * | TargetString | ||
) |
将一个字符串中的字母全部改为大写
SourceString | 要处理的字符串 |
typedef hgl::void | ( | __cdecl * | SeekFunc | ) |
void hgl::WaitThread | ( | Thread ** | mt, |
int | count, | ||
double | time | ||
) |
等待多个线程中的一个完成
等待多个线程中的一个完成
mt | 线程 |
count | 线程数量 |
time | 等待的时间,如果为0表示等到线程运行结束为止。默认为0 |
void hgl::WaitTime | ( | double | time | ) |
等待一定时间(单位:秒)
等待指定时间
time | 时间(单位:秒) |
int hgl::WideToAnsi | ( | CCP | ccp, |
char * | as, | ||
int | as_size, | ||
const wchar_t * | ws, | ||
int | ws_size = -1 |
||
) |
转换wchar_t *字符串到ANSI字符串
ccp | 代码页 |
as | ansi字符串 |
as_size | 字符串长度 |
ws | wchar_t *字符串缓冲区 |
ws_size | 缓冲区长度,-1表示全部 |
int hgl::WideToAnsi | ( | char * | as, |
int | as_size, | ||
const wchar_t * | ws, | ||
int | ws_size = -1 |
||
) | [inline] |
转换wchar_t *字符串到ANSI字符串(当前系统默认字符集)
as | ansi字符串 |
as_size | 字符串长度 |
ws | wchar_t *字符串缓冲区 |
ws_size | 缓冲区长度,-1表示全部 |
int hgl::WideToAnsi | ( | CCP | ccp, |
char ** | as, | ||
const wchar_t * | ws, | ||
int | ws_size = -1 |
||
) |
转换wchar_t *字符串到ANSI字符串
ccp | 代码页 |
as | char *字符串缓冲区,自动分配,需手动delete[] |
ws | wchar_t *字符串 |
ws_size | 字符串长度,-1表示全部 |
int hgl::WideToAnsi | ( | char ** | as, |
const wchar_t * | ws, | ||
int | ws_size = -1 |
||
) | [inline] |
转换wchar_t *字符串到ANSI字符串(当前系统默认字符集)
as | char *字符串缓冲区,自动分配,需手动delete[] |
ws | wchar_t *字符串 |
ws_size | 字符串长度,-1表示全部 |
LRESULT CALLBACK hgl::WindowProc | ( | HWND | hWnd, |
UINT | msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
hgl::WMEF | ( | WMProcDestroy | ) |
hgl::WMEF1 | ( | WMProcChar | ) |
hgl::WMEF1 | ( | WMProcKeyDown | ) |
hgl::WMEF1 | ( | WMProcActive | ) |
hgl::WMEF1 | ( | WMProcKeyUp | ) |
hgl::WMEF2 | ( | WMProcMouseWheel | ) |
hgl::WMEF2 | ( | WMProcSize | ) |
hgl::WMEF_MOUSE | ( | MidDown | ) |
hgl::WMEF_MOUSE | ( | MidUp | ) |
hgl::WMEF_MOUSE | ( | LeftDoubleClick | ) |
hgl::WMEF_MOUSE | ( | LeftDown | ) |
hgl::WMEF_MOUSE | ( | Move | ) |
hgl::WMEF_MOUSE | ( | RightDown | ) |
hgl::WMEF_MOUSE | ( | RightDoubleClick | ) |
hgl::WMEF_MOUSE | ( | LeftUp | ) |
hgl::WMEF_MOUSE | ( | MidDoubleClick | ) |
hgl::WMEF_MOUSE | ( | RightUp | ) |
void hgl::write_to_yuv_frame | ( | uint | w, |
uint | h, | ||
uint8 * | yuv, | ||
uint8 * | yuv_y, | ||
uint8 * | yuv_u, | ||
uint8 * | yuv_v | ||
) |
hgl::WRITEFUNC | ( | WriteFloat | , |
float | |||
) |
hgl::WRITEFUNC | ( | WriteInt64 | , |
int64 | |||
) |
hgl::WRITEFUNC | ( | WriteUint64 | , |
uint64 | |||
) |
hgl::WRITEFUNC | ( | WriteInt32 | , |
int32 | |||
) |
hgl::WRITEFUNC | ( | WriteDouble | , |
double | |||
) |
hgl::WRITEFUNC | ( | WriteBool | , |
bool | |||
) |
hgl::WRITEFUNC | ( | WriteString | , |
const WideString & | |||
) |
hgl::WRITEFUNC | ( | WriteUint8 | , |
uint8 | |||
) |
hgl::WRITEFUNC | ( | WriteUint32 | , |
uint32 | |||
) |
hgl::WRITEFUNC | ( | WriteInt16 | , |
int16 | |||
) |
hgl::WRITEFUNC | ( | WriteInt8 | , |
int8 | |||
) |
hgl::WRITEFUNC | ( | WriteUint16 | , |
uint16 | |||
) |
int128 hgl::wtoi | ( | wchar_t * | Str | ) |
const wchar_t hgl::BeginSymbol[] = "!),.:;?]}¨·ˇˉ―‖’”…∶、。〃々〉》」』】〕〗!"'),.:;?]`|}~¢" |
const int hgl::BeginSymbolCount = sizeof(BeginSymbol)/sizeof(wchar_t) |
const bool hgl::BlendByColorType |
{ false, false, true, false, true, true, false, true, false, }
针对色彩类型而对应的每象素字节数
const int hgl::buf_size = 1024*1024 |
const unsigned int hgl::BytesByColorType |
{ 0, 1, 2, 3, 4, 1, 3, 4, 0, }
针对色彩类型而对应的OpenGL格式
wchar_t hgl::CAName[caEnd][32] |
{ L"", L"Bzip2", L"Lzo", L"Lzma", L"Zip", L"RLE", L"RYC", L"RSC", L"Jpeg2000" L"VSRLE" }
const double hgl::clamp_u = 0.436*255.0 |
const double hgl::clamp_v = 0.615*255.0 |
const unsigned int hgl::ColorTypeCount = ctEnd+1 |
const wchar_t hgl::ColorTypeName |
{ L"", L"Luminance", L"Luminance Alpha", L"RGB", L"RGBA", L"Alpha", L"BGR", L"BGRA", L"" }
struct { ... } hgl::CubePanel[6] |
const int hgl::DevilScriptMinLength = sizeof(L"func main(){}") |
《魔鬼》最小脚本长度
bool hgl::enable |
const wchar_t hgl::EndSymbol[] = "([{·‘“〈《「『【〔〖(.[{£¥" |
const int hgl::EndSymbolCount = sizeof(EndSymbol)/sizeof(wchar_t) |
const float hgl::full_tex_coord[] |
{ 0,0, 1,0, 1,1, 0,1 }
{ {GL_ZERO, GL_ZERO}, {GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA}, {GL_ONE, GL_ZERO}, {GL_ZERO, GL_ONE}, {GL_SRC_ALPHA, GL_ONE}, {GL_ZERO, GL_ONE_MINUS_SRC_COLOR}, {GL_ZERO, GL_ONE_MINUS_SRC_ALPHA}, {GL_ONE, GL_ONE}, {GL_ONE_MINUS_SRC_COLOR, GL_ZERO}, }
const unsigned int hgl::GLFormatByColorType |
{ GL_NONE, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA, GL_ALPHA, GL_BGR, GL_BGRA, GL_NONE }
色彩类型名称
const char hgl::glsl_yuv2rgb[] |
{ "uniform sampler2D tex_y;\n" "uniform sampler2D tex_u;\n" "uniform sampler2D tex_v;\n" "void main()\n" "{\n" " float y = texture2D( tex_y, gl_TexCoord[0].xy ).r;\n" " float u = texture2D( tex_u, gl_TexCoord[1].xy ).r;\n" " float v = texture2D( tex_v, gl_TexCoord[2].xy ).r;\n" " if(u == 0.0 && v == 0.0)\n" " y = 0.0;\n" " y=1.1643*(y-0.0625);\n" " u=u-0.5;\n" " v=v-0.5;\n" " gl_FragColor=vec4( y+1.5958*v,\n" " y-0.39173*u-0.81290*v,\n" " y+2.017*u,\n" " 1.0);\n" "}\n" }
const char hgl::HAC3Flag[] = "HAC-3\x1A" |
const char hgl::HexChar[2][16] |
{ {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}, {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'}}
const unsigned int hgl::InvalidIndex = 0xFFFFFFFF |
float hgl::m_null_matrix[16] |
wchar_t hgl::name[6] |
OpenGLChipVendor hgl::OCV = ocvNone |
const GLenum hgl::OpenGLClientState[gcsEnd] |
float hgl::p_null_matrix[16] |
const wchar_t hgl::pi_name[ifEnd][32] |
{ L"PSD", L"Monolayer", L"Tim2", L"ART2", L"KLZ" }
void* hgl::ptr |
float hgl::ref |
const double hgl::SIN45 = 0.707106781186548 |
const unsigned __int32 hgl::SINV[91] |
{ 0, 17452406, 34899496, 52335956, 69756473, 87155742, 104528463, 121869343, 139173100, 156434465, 173648177, 190808995, 207911690, 224951054, 241921895, 258819045, 275637355, 292371704, 309016994, 325568154, 342020143, 358367949, 374606593, 390731128, 406736643, 422618261, 438371146, 453990499, 469471562, 484809620, 500000000, 515038074, 529919264, 544639035, 559192903, 573576436, 587785252, 601815023, 615661475, 629320391, 642787609, 656059028, 669130606, 681998360, 694658370, 707106781, 719339800, 731353701, 743144825, 754709580, 766044443, 777145961, 788010753, 798635510, 809016994, 819152044, 829037572, 838670567, 848048096, 857167300, 866025403, 874619707, 882947592, 891006524, 898794046, 906307787, 913545457, 920504853, 927183854, 933580426, 939692620, 945518575, 951056516, 956304755, 961261695, 965925826, 970295726, 974370064, 978147600, 981627183, 984807753, 987688340, 990268068, 992546151, 994521895, 996194698, 997564050, 998629534, 999390827, 999847695, 1000000000 }
bool hgl::smooth |
float hgl::t_null_matrix[16] |