MIL_ID SysId, | //in |
MIL_ID *ContextGraIdPtr | //out |
This function allocates a graphics context on the specified system. A graphics context is required to use MIL graphics to perform annotations. Whenever an annotation is done, graphics context settings are inherited by the graphics. Different contexts can coexist; use their identifier to specify which to use or change. When a graphics context is no longer required, you should release its memory, using MgraFree().
To modify or inquire graphics context settings, use MgraControl() and MgraInquire().
Note that, upon allocation of an application, a default graphics context is automatically allocated. Rather than using MgraAlloc() to allocate a graphics context, you can use this default graphics context, by specifying M_DEFAULT wherever a graphics context identifier is required. Note that there is a different default graphics context for each thread.
Specifies the system on which to allocate the graphics context.
This parameter should be set to one of the following values:
For specifying the system
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |