SilverScreen Solid Modeler

engine_initialize

engine_initialize

Previous topic Next topic  

engine_initialize

Previous topic Next topic JavaScript is required for the print function  

 

SilverEngineEllipse

 

BOOLEAN engine_initialize( EngineInitStruct *eis )

 

EngineInitStruct *eis;   // A pointer to an EngineInitStruct

 

 

 




Synopsis

#include "silvere.h"

 

The engine_initialize function prepares SilverEngine for use by an application.

 

 

Parameters

eis is a SilverEngine initialization structure that has been filled in.

 

 

Return Value

engine_initialize returns TRUE if is was successful, and FALSE otherwise.

 

 

Remarks

If SilverEngine cannot initialize, then SilverEngine applications should quit.

 

In order for the SilverEngine development platform to initialize, it must have access to an environment file.

 

engine_initialize should be called before any other SilverEngine or SilverScreen API function. The typical place to call it from MFC applications is InitInstance().

 

 

See Also

engine_quit, engine_set_frame_window

 

 

Example

For a complete example, see the SilverEngine, EngineShell sample program. The following code shows a typical initialization of SilverEngine from the standard startup environment file:

 

C++ Code

 

 #include "silvere.h"

 

 . . .

 

 EngineInitStruct eis = {0};

 

 eis.bits = EI_USE_ENV;

 strcpy(eis.env_file, "silver");

 engine_initialize(&eis);