CDXBnds Constructors

This section lists the different ways you can create and initialize a CDXBnds object.

Member Functions

  • CDXBnds::CDXBnds
  • CDXBnds::CDXBnds( BOOL bInit )
  • CDXBnds::CDXBnds( const DXBNDS &Other )
  • CDXBnds::CDXBnds( const CDXB_C &Other )
  • CDXBnds::CDXBnds( const RECT &Rect )
  • CDXBnds::CDXBnds( TYPE Width, TYPE Height)
  • CDXBnds::CDXBnds( IDXSurface *pSurface, HRESULT &hr )
  • CDXBnds::CDXBnds( IDirect3DRMMeshBuilder3 *pMesh, HRESULT &hr )
  • CDXBnds::CDXBnds( const CDXV_C &VecPoint )
  • CDXBnds::Copy( const DXBNDS &Other )
  • CDXBnds::Copy( const CDXB_C &Other )

CDXBnds::CDXBnds

Constructs an uninitialized CDXBnds object.

Syntax

  CDXBnds();

Return Value

No return value.

Remarks

The default constructor sets the object to DXBT_DISCRETE and calls the CDXBnds::SetEmpty method.

CDXBnds::CDXBnds( BOOL bInit )

Constructs and conditionally initializes the data object.

Syntax

    CDXBnds(
         BOOL bInit 
    );

Parameters

bInit

  \[in\] TRUE specifies that the object should be set to empty. FALSE specifies that no initialization action should be taken.

Return Value

No return value.

Remarks

Initializing with FALSE improves performance, if you know the next operation will be used to set the bounds (for example, by calling the IDXSurfaceModifier::SetBounds method).

CDXBnds::CDXBnds( const DXBNDS &Other )

Copies the specified bounds and converts the type, if necessary.

Syntax

    CDXBnds(
        const DXBNDS Other 
    );

Parameters

Other

  \[in\] [**DXBNDS**](aa753420\(v=vs.85\).md) structure to use for initialization.

Return Value

No return value.

Remarks

If Other is not of the same union type as the template class, the constructor converts it. For example, Other can be DXBT_CONTINUOUS, and the template can be DXBT_DISCRETE.

CDXBnds::CDXBnds( const CDXB_C &Other )

Creates a CDXBnds object by copying an existing object.

Syntax

    CDXBnds(
        const CDXB_C &Other 
    );

Parameters

Other

  \[in\] Bounds class to use for initialization.

Return Value

No return value.

CDXBnds::CDXBnds( const RECT &Rect )

Initializes the data object, using the specified rectangle to set the x and y bounds.

Syntax

    CDXBnds(
        const RECT &Rect 
    );

Parameters

Rect

  \[in\] Rectangle to use for initialization.

Return Value

No return value.

Remarks

The minimum values for the z and t dimensions are set to zero. The maximum values are set to one.

CDXBnds::CDXBnds( TYPE Width, TYPE Height)

Initializes the data object, using the specified width and height to set the x and y bounds.

Syntax

    CDXBnds(
        TYPE Width,
        TYPE Height
    );

Parameters

Width

  \[in\] Width of the x-dimension.

Height

  \[in\] Width of the y-dimension.

Return Value

No return value.

Remarks

The minimum values for all dimensions are set to zero. The maximum values for z and t are set to one.

CDXBnds::CDXBnds( IDXSurface *pSurface, HRESULT &hr )

Initializes the data object with the bounds of the specified surface.

Syntax

    CDXBnds(
        IDXSurface *pSurface,
        HRESULT &hr
    );

Parameters

pSurface

  \[in\] Pointer to a surface from which to acquire the bounds.

hr

  \[out\] **HRESULT** return code from calling the [**IDXSurface::GetBounds**](aa743614\(v=vs.85\).md) method.

Return Value

See the return codes for IDXSurface::GetBounds.

CDXBnds::CDXBnds( IDirect3DRMMeshBuilder3 *pMesh, HRESULT &hr )

Not supported.

CDXBnds::CDXBnds( const CDXV_C &VecPoint )

Creates a CDXBnds object from a CDXVec object.

Syntax

    CDXBnds(
        const CDXV_C &VecPoint 
    );

Parameters

VecPoint

  \[in\] Vector class to use for initialization.

Return Value

No return value.

CDXBnds::Copy( const DXBNDS &Other )

Copies the specified bounds and converts the type, if necessary.

Syntax

    Copy(
        const DXBNDS &Other 
    );

Parameters

Other

  \[in\] [**DXBNDS**](aa753420\(v=vs.85\).md) structure to use for initialization.

Return Value

No return value.

Remarks

If Other is not of the same union type as the template class, the constructor converts. For example, Other can be DXBT_CONTINUOUS and the template can be DXBT_DISCRETE.

CDXBnds::Copy( const CDXB_C &Other )

Performs a simple copy operation.

Syntax

    Copy(
        const CDXB_C &Other 
    );

Parameters

Other

  \[in\] Bounds class to use for initialization.

Other

  \[in\] Bounds class to use for initialization.

Return Value

No return value.