次の方法で共有


CreatePhysicsEngine (Windows Embedded CE 6.0)

1/6/2010

This function creates a physics engine and returns a handle to the new physics engine. You must create a PHYSICSENGINEINIT structure to define the parameters for the physics engine and then pass it to CreatePhysicsEngine.

Syntax

HRESULT CreatePhysicsEngine(
    __in const PHYSICSENGINEINIT* pEngineInit,
    __out HPHYSICSENGINE* phResult
);

Parameters

  • pEngineInit
    [in] Points to a PHYSICSENGINEINIT structure that defines the configuration parameters for the physics engine.
  • phResult
    [out] Points to an HPHYSICSENGINE variable that receives the handle to the new physics engine.

Return Value

  • S_OK
    Indicates that the physics engine is successfully created.
  • E_INVALIDARG
    Indicates that a parameter is invalid.
  • E_OUTOFMEMORY
    Indicates that there is not enough memory in the system to create the physics engine.

Requirements

Header physicsengine.h, pwinuser.h
sysgen SYSGEN_PHYSICSENGINE

See Also

Reference

PHYSICSENGINEINIT

Other Resources

Physics Engine Functions
Physics Engine Reference