|
Open Game Engine 2D API
|
Functions | |
| int | OGE_FindGroupSpr (int iGroupId, string sSprName) |
| Find a sprite in a group by name. | |
| int | OGE_GetFreeSprWithType (int iSprGroupId, int iSprType) |
| Get a free sprite with special type from the group. | |
| int | OGE_GetFreeSprWithClassTag (int iSprGroupId, int iSprClassTag) |
| Get a free sprite with special class tag from the group. | |
| int | OGE_GetFreeSprWithTag (int iSprGroupId, int iSprTag) |
| Get a free sprite with special tag from the group. | |
| int | OGE_GetGroupSprCount (int iSprGroupId) |
| Get the count of all sprites in the group. | |
| int | OGE_GetGroupSprByIndex (int iGroupId, int iIndex) |
| Get the sprite in the group by index. | |
| int | OGE_GetGroupSpr (int iGroupId, int idx) |
| Get the sprite in the group by the code. | |
| int | OGE_GetGroupCount () |
| Get the count of all the groups. | |
| int | OGE_GetGroupByIndex (int iIndex) |
| Get a group by index. | |
| int | OGE_GetSprForGroup (int iGroupId, string sSprName, string sClassName) |
| Create a sprite with specified template, and add it to the group. | |
| int | OGE_RemoveSprFromGroup (int iGroupId, int iSprId) |
| Remove a sprite from the group. | |
| void | OGE_RemoveGroup (string sName) |
| Remove a group by name. | |
| int | OGE_GetGroup (string sGroupName) |
| Get the group by name. | |
| int | OGE_GetGroupByCode (int iCode) |
| Get the group by code. | |
| string | OGE_GetGroupName (int iSprGroupId) |
| Get the name of the group. | |
| void | OGE_OpenGroup (int iSprGroupId) |
| Add all the sprites of the group into current scene. | |
| void | OGE_CloseGroup (int iSprGroupId) |
| Remove all the sprites of the group from current scene. | |
| int | OGE_GroupGenSpr (int iSprGroupId, string sTempletSprName, int iCount) |
| Generate sprites in the group by a sprite template. | |
| int | OGE_GetRootSprFromGroup (int iSprGroupId) |
| Get the first sprite of the group. | |
| int | OGE_GetFreeSprFromGroup (int iSprGroupId) |
| Get a free (not busy) sprite from the group. | |
| void OGE_CloseGroup | ( | int | iSprGroupId | ) |
Remove all the sprites of the group from current scene.
| [in] | iSprGroupId | The ID of the group |
| int OGE_FindGroupSpr | ( | int | iGroupId, |
| string | sSprName | ||
| ) |
Find a sprite in a group by name.
| [in] | iGroupId | The ID of the group |
| [in] | sSprName | The name of the sprite |
| int OGE_GetFreeSprFromGroup | ( | int | iSprGroupId | ) |
Get a free (not busy) sprite from the group.
| [in] | iSprGroupId | The ID of the group |
| int OGE_GetFreeSprWithClassTag | ( | int | iSprGroupId, |
| int | iSprClassTag | ||
| ) |
Get a free sprite with special class tag from the group.
| [in] | iSprGroupId | The ID of the group |
| [in] | iSprClassTag | The class tag |
| int OGE_GetFreeSprWithTag | ( | int | iSprGroupId, |
| int | iSprTag | ||
| ) |
Get a free sprite with special tag from the group.
| [in] | iSprGroupId | The ID of the group |
| [in] | iSprTag | The tag (object tag) |
| int OGE_GetFreeSprWithType | ( | int | iSprGroupId, |
| int | iSprType | ||
| ) |
Get a free sprite with special type from the group.
| [in] | iSprGroupId | The ID of the group |
| [in] | iSprType | The type of the sprite |
| int OGE_GetGroup | ( | string | sGroupName | ) |
Get the group by name.
| [in] | sGroupName | The name of the group |
| int OGE_GetGroupByCode | ( | int | iCode | ) |
Get the group by code.
| [in] | iCode | The code of the group |
| int OGE_GetGroupByIndex | ( | int | iIndex | ) |
Get a group by index.
| [in] | iIndex | The index of the group |
| int OGE_GetGroupCount | ( | ) |
Get the count of all the groups.
| string OGE_GetGroupName | ( | int | iSprGroupId | ) |
Get the name of the group.
| [in] | iSprGroupId | The ID of the group |
| int OGE_GetGroupSpr | ( | int | iGroupId, |
| int | idx | ||
| ) |
Get the sprite in the group by the code.
| [in] | iGroupId | The ID of the group |
| [in] | idx | The code |
| int OGE_GetGroupSprByIndex | ( | int | iGroupId, |
| int | iIndex | ||
| ) |
Get the sprite in the group by index.
| [in] | iGroupId | The ID of the group |
| [in] | iIndex | The index of the sprite |
| int OGE_GetGroupSprCount | ( | int | iSprGroupId | ) |
Get the count of all sprites in the group.
| [in] | iSprGroupId | The ID of the group |
| int OGE_GetRootSprFromGroup | ( | int | iSprGroupId | ) |
Get the first sprite of the group.
| [in] | iSprGroupId | The ID of the group |
| int OGE_GetSprForGroup | ( | int | iGroupId, |
| string | sSprName, | ||
| string | sClassName | ||
| ) |
Create a sprite with specified template, and add it to the group.
| [in] | iGroupId | The ID of the group |
| [in] | sSprName | The name of the sprite |
| [in] | sClassName | The name of the template |
| int OGE_GroupGenSpr | ( | int | iSprGroupId, |
| string | sTempletSprName, | ||
| int | iCount | ||
| ) |
Generate sprites in the group by a sprite template.
| [in] | iSprGroupId | The ID of the group |
| [in] | sTempletSprName | The name of the template sprite |
| [in] | iCount | The count of the sprites will be generated |
| void OGE_OpenGroup | ( | int | iSprGroupId | ) |
Add all the sprites of the group into current scene.
| [in] | iSprGroupId | The ID of the group |
| void OGE_RemoveGroup | ( | string | sName | ) |
Remove a group by name.
| [in] | sName | The name of the group |
| int OGE_RemoveSprFromGroup | ( | int | iGroupId, |
| int | iSprId | ||
| ) |
Remove a sprite from the group.
| [in] | iGroupId | The ID of the group |
| [in] | iSprId | The ID of the sprite |
1.8.0