CD3D11_BOX class

Represents a box and provides convenience methods for creating boxes.

Members

The CD3D11_BOX class inherits from D3D11_BOX. CD3D11_BOX also has these types of members:

  • Constructors
  • Methods

Constructors

The CD3D11_BOX class has these constructors.

Constructor Description
CD3D11_BOX()

Instantiates a new instance of an uninitialized CD3D11_BOX structure.

CD3D11_BOX(LONG,LONG,LONG,LONG,LONG,LONG)(LONG,LONG,LONG,LONG,LONG,LONG)

Instantiates a new instance of a CD3D11_BOX structure that is initialized with the dimensions of a box.

 

Methods

The CD3D11_BOX class has these methods.

Method Description
CD3D11_BOX

Destroys an instance of a CD3D11_BOX structure.

CD3D11_BOX(D3D11_BOX&)(const &D3D11_BOX)

Instantiates a new instance of a CD3D11_BOX structure that is initialized with a D3D11_BOX structure.

D3D11_BOX()

This operator returns the address of a D3D11_BOX structure that contains the data from the CD3D11_BOX instance.

 

Remarks

Here is how D3D11.h defines CD3D11_BOX:


struct CD3D11_BOX : public D3D11_BOX
{
    CD3D11_BOX()
    {}
    explicit CD3D11_BOX( const D3D11_BOX& o ) :
        D3D11_BOX( o )
    {}
    explicit CD3D11_BOX(
        LONG Left,
        LONG Top,
        LONG Front,
        LONG Right,
        LONG Bottom,
        LONG Back )
    {
        left = Left;
        top = Top;
        front = Front;
        right = Right;
        bottom = Bottom;
        back = Back;
    }
    ~CD3D11_BOX() {}
    operator const D3D11_BOX&() const { return *this; }
};

Requirements

Minimum supported client

Windows 7 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | UWP apps]

Header

D3D11.h

Library

D3D11.lib

See also

D3D11_BOX

CD3D11 Helper Structures