FMX.Types3D.TContextManager.CreateFromWindow
Delphi
class function CreateFromWindow(const AParent: TWindowHandle; const AWidth, AHeight: Integer; const AMultisample: TMultisample; const ADepthStencil: Boolean): TContext3D;
C++
__classmethod TContext3D* __fastcall CreateFromWindow(Fmx::Types::TWindowHandle* const AParent, const int AWidth, const int AHeight, const TMultisample AMultisample, const bool ADepthStencil);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | TContextManager |
Description
Creates a 3D context from a specified window handle.
AParent specifies the window handle.
The AWidth and AHeight parameters specify the width and height of the created 3D context.
The AMultisample parameter specifies the value of the antialiasing to use on the created 3D context.
The ADepthStencil parameter specifies whether to create depth stencil surfaces in a call to CreateBuffer.