Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

and application behavior.
File
gfx_gol.h
Syntax
void GFX_GOL_MessageCallbackSet(GFX_GOL_MESSAGE_CALLBACK_FUNC pFunc);
Returns
None.
Description
This function sets the message callback function that the application will use to evaluate user inputs that affects the objects
and application behavior. The callback function location is specified by the function pointer supplied in the call. See
GFX_GOL_MESSAGE_CALLBACK_FUNC definition for details on the message callback function.
Preconditions
None.
Example
None.
Parameters
Parameters Description
pFunc pointer to the message callback function.
Function
void GFX_GOL_MessageCallbackSet(
GFX_GOL_MESSAGE_CALLBACK_FUNC pFunc)
1.6.2.6.3 GFX_GOL_ObjectMessage Function
This function process the received message from the user to determine the affected objects. Depending on the message
and the affected objects, object states are modified based on the default behaviour or user defined behaviour.
File
gfx_gol.h
Syntax
void GFX_GOL_ObjectMessage(GFX_GOL_MESSAGE * pMsg);
Returns
None.
Description
This function receives a GFX_GOL_MESSAGE message from user and loops through the active list of objects to check
which object is affected by the message. For affected objects the message is translated and
GFX_GOL_ObjectMessageCallback() is called. In the call back function, user has the ability to implement action for the
message. If the call back function returns non-zero, OBJMsgDefault() is called to process message for the object by default.
If zero is returned OBJMsgDefault() is not called. Please refer to GOL Messages section for details.
Preconditions
None.
Example
// Assume objects are created & states are set to draw objects
while (1)
{
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
322

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh