|
Open Game Engine 2D API
|
函数 | |
| int | OGE_GetStaticBuf (int iIndex) |
| 根据序号取得静态缓冲区 | |
| int | OGE_ClearBuf (int iBufferId) |
| 清空缓冲区里的内容(全部清零) | |
| int | OGE_CopyBuf (int iFromId, int iToId, int iStart, int iLen) |
| 复制一个缓冲区的一段内容到另一个缓冲区里 | |
| char | OGE_GetBufByte (int iBufId, int pos, int &next) |
| 从缓冲区里读出一个字节 | |
| int | OGE_GetBufInt (int iBufId, int pos, int &next) |
| 从缓冲区里读出一个整数 | |
| double | OGE_GetBufFloat (int iBufId, int pos, int &next) |
| 从缓冲区里读出一个浮点数 | |
| string | OGE_GetBufStr (int iBufId, int pos, int len, int &next) |
| 从缓冲区里读出一个字符串 | |
| int | OGE_PutBufByte (int iBufId, int pos, char value) |
| 往缓冲区里写入一个字节 | |
| int | OGE_PutBufInt (int iBufId, int pos, int value) |
| 往缓冲区里写入一个整数 | |
| int | OGE_PutBufFloat (int iBufId, int pos, double value) |
| 往缓冲区里写入一个浮点数 | |
| int | OGE_PutBufStr (int iBufId, int pos, string value) |
| 往缓冲区里写入一个字符串 | |
| int OGE_ClearBuf | ( | int | iBufferId | ) |
清空缓冲区里的内容(全部清零)
| [in] | iBufferId | 缓冲区的ID |
| int OGE_CopyBuf | ( | int | iFromId, |
| int | iToId, | ||
| int | iStart, | ||
| int | iLen | ||
| ) |
复制一个缓冲区的一段内容到另一个缓冲区里
| [in] | iFromId | 源缓冲区的ID |
| [in] | iToId | 目标缓冲区的ID |
| [in] | iStart | 开始拷贝的位置 |
| [in] | iLen | 要拷贝的字节个数 |
| char OGE_GetBufByte | ( | int | iBufId, |
| int | pos, | ||
| int & | next | ||
| ) |
从缓冲区里读出一个字节
| [in] | iBufId | 缓冲区的ID |
| [in] | pos | 当前的读取位置 |
| [out] | next | 下一个读取位置 |
| double OGE_GetBufFloat | ( | int | iBufId, |
| int | pos, | ||
| int & | next | ||
| ) |
从缓冲区里读出一个浮点数
| [in] | iBufId | 缓冲区的ID |
| [in] | pos | 当前的读取位置 |
| [out] | next | 下一个读取位置 |
| int OGE_GetBufInt | ( | int | iBufId, |
| int | pos, | ||
| int & | next | ||
| ) |
从缓冲区里读出一个整数
| [in] | iBufId | 缓冲区的ID |
| [in] | pos | 当前的读取位置 |
| [out] | next | 下一个读取位置 |
| string OGE_GetBufStr | ( | int | iBufId, |
| int | pos, | ||
| int | len, | ||
| int & | next | ||
| ) |
从缓冲区里读出一个字符串
| [in] | iBufId | 缓冲区的ID |
| [in] | pos | 当前的读取位置 |
| [in] | len | 要读取的字符串的长度 |
| [out] | next | 下一个读取位置 |
| int OGE_GetStaticBuf | ( | int | iIndex | ) |
根据序号取得静态缓冲区
| [in] | iIndex | 缓冲区的序号 |
| int OGE_PutBufByte | ( | int | iBufId, |
| int | pos, | ||
| char | value | ||
| ) |
往缓冲区里写入一个字节
| [in] | iBufId | 缓冲区的ID |
| [in] | pos | 当前的写入位置 |
| [in] | value | 字节的值 |
| int OGE_PutBufFloat | ( | int | iBufId, |
| int | pos, | ||
| double | value | ||
| ) |
往缓冲区里写入一个浮点数
| [in] | iBufId | 缓冲区的ID |
| [in] | pos | 当前的写入位置 |
| [in] | value | 浮点数的值 |
| int OGE_PutBufInt | ( | int | iBufId, |
| int | pos, | ||
| int | value | ||
| ) |
往缓冲区里写入一个整数
| [in] | iBufId | 缓冲区的ID |
| [in] | pos | 当前的写入位置 |
| [in] | value | 整数的值 |
| int OGE_PutBufStr | ( | int | iBufId, |
| int | pos, | ||
| string | value | ||
| ) |
往缓冲区里写入一个字符串
| [in] | iBufId | 缓冲区的ID |
| [in] | pos | 当前的写入位置 |
| [in] | value | 要写入的字符串 |
1.8.0