CD3D11_BOX structure (d3d11.h)

Represents a box and provides convenience methods for creating boxes.

Syntax

struct CD3D11_BOX : D3D11_BOX {
  void CD3D11_BOX();
  void CD3D11_BOX(
    const D3D11_BOX & o
  );
  void CD3D11_BOX(
    LONG Left,
    LONG Top,
    LONG Front,
    LONG Right,
    LONG Bottom,
    LONG Back
  );
  void ~CD3D11_BOX();
};

Inheritance

The CD3D11_BOX structure implements D3D11_BOX.

Members

void CD3D11_BOX()

Instantiates a new instance of an uninitialized CD3D11_BOX structure.

void CD3D11_BOX( const D3D11_BOX & o)

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

void CD3D11_BOX( LONG Left, LONG Top, LONG Front, LONG Right, LONG Bottom, LONG Back)

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

void ~CD3D11_BOX()

Destroys an instance of a CD3D11_BOX structure.

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

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Header d3d11.h

See also

CD3D11 Helper Structures