This function is called when by sliceOmatic during its redraw process. Depending on the "Redraw Flag" you registered for with the "Draw_Register" function, It may be called more than once.
Syntax
extern "C" __declspec(dllexport) int Draw(
UInt64 flag,
void *pt_window,
void *pt_target
)
Parameters
flag
Is a bit representing the current drawing step. This will be one of the bits you have registered for.
pt_window
Is a pointer to the window where the drawing s taking place, or NULL if the drawing is not in a specific window (the REDRAW_GENERAL and REDRAW_FINAL steps).
pt_target
Depending on the value of "flag", this parameter will be:
·NULL. While drawing 2D operations (REDRAW_GENERAL, REDRAW_WINDOW, REDRAW_DLL_OPENGL, REDRAW_DLL_STENCIL and REDRAW_FINAL).
·NULL. While drawing REDRAW_3D_POST, REDRAW_3D_END.
·Step_Total. While drawing REDRAW_3D_PRE
·Step_Current. While drawing REDRAW_3D_WINDOW, REDRAW_3D_CAMERA, REDRAW_3D_LIGHT, REDRAW_3D_TRANSFO and REDRAW_3D_DLL.
Return value
The function returns "0" if an error occurred, "1" otherwise.
Remarks
Requirements
Header:
sliceO_include.hpp
Library:
sliceO_Structures.lib
Example
See also