LLGL 0.05 Beta
Loading...
Searching...
No Matches
Global operators for basic data structures.

Functions

LLGL_EXPORT Extent2D LLGL::operator+ (const Extent2D &lhs, const Extent2D &rhs)
 Returns the sum of left hand side extent 'lhs' and the right hand side extent 'rhs'.
LLGL_EXPORT Extent2D LLGL::operator- (const Extent2D &lhs, const Extent2D &rhs)
 Returns the subtraction of left hand side extent 'lhs' and the right hand side extent 'rhs'.
LLGL_EXPORT Extent3D LLGL::operator+ (const Extent3D &lhs, const Extent3D &rhs)
 Returns the sum of left hand side extent 'lhs' and the right hand side extent 'rhs'.
LLGL_EXPORT Extent3D LLGL::operator- (const Extent3D &lhs, const Extent3D &rhs)
 Returns the subtraction of left hand side extent 'lhs' and the right hand side extent 'rhs'.
LLGL_EXPORT Offset2D LLGL::operator+ (const Offset2D &lhs, const Offset2D &rhs)
 Returns the sum of left hand side offset 'lhs' and the right hand side offset 'rhs'.
LLGL_EXPORT Offset2D LLGL::operator- (const Offset2D &lhs, const Offset2D &rhs)
 Returns the subtraction of left hand side offset 'lhs' and the right hand side offset 'rhs'.
LLGL_EXPORT Offset3D LLGL::operator+ (const Offset3D &lhs, const Offset3D &rhs)
 Returns the sum of left hand side offset 'lhs' and the right hand side offset 'rhs'.
LLGL_EXPORT Offset3D LLGL::operator- (const Offset3D &lhs, const Offset3D &rhs)
 Returns the subtraction of left hand side offset 'lhs' and the right hand side offset 'rhs'.
bool LLGL::operator== (const Offset2D &lhs, const Offset2D &rhs)
 Returns true if the left hand side offset 'lhs' is equal to the right hand side offset 'rhs'.
bool LLGL::operator!= (const Offset2D &lhs, const Offset2D &rhs)
 Returns true if the left hand side offset 'lhs' is unequal to the right hand side offset 'rhs'.
bool LLGL::operator== (const Offset3D &lhs, const Offset3D &rhs)
 Returns true if the left hand side offset 'lhs' is equal to the right hand side offset 'rhs'.
bool LLGL::operator!= (const Offset3D &lhs, const Offset3D &rhs)
 Returns true if the left hand side offset 'lhs' is unequal to the right hand side offset 'rhs'.
bool LLGL::operator== (const Extent2D &lhs, const Extent2D &rhs)
 Returns true if the left hand side extent 'lhs' is equal to the right hand side extent 'rhs'.
bool LLGL::operator!= (const Extent2D &lhs, const Extent2D &rhs)
 Returns true if the left hand side extent 'lhs' is unequal to the right hand side extent 'rhs'.
bool LLGL::operator== (const Extent3D &lhs, const Extent3D &rhs)
 Returns true if the left hand side extent 'lhs' is equal to the right hand side extent 'rhs'.
bool LLGL::operator!= (const Extent3D &lhs, const Extent3D &rhs)
 Returns true if the left hand side extent 'lhs' is unequal to the right hand side extent 'rhs'.

Detailed Description

Function Documentation

◆ operator!=() [1/4]

bool LLGL::operator!= ( const Extent2D & lhs,
const Extent2D & rhs )
inline

Returns true if the left hand side extent 'lhs' is unequal to the right hand side extent 'rhs'.

◆ operator!=() [2/4]

bool LLGL::operator!= ( const Extent3D & lhs,
const Extent3D & rhs )
inline

Returns true if the left hand side extent 'lhs' is unequal to the right hand side extent 'rhs'.

◆ operator!=() [3/4]

bool LLGL::operator!= ( const Offset2D & lhs,
const Offset2D & rhs )
inline

Returns true if the left hand side offset 'lhs' is unequal to the right hand side offset 'rhs'.

◆ operator!=() [4/4]

bool LLGL::operator!= ( const Offset3D & lhs,
const Offset3D & rhs )
inline

Returns true if the left hand side offset 'lhs' is unequal to the right hand side offset 'rhs'.

◆ operator+() [1/4]

LLGL_EXPORT Extent2D LLGL::operator+ ( const Extent2D & lhs,
const Extent2D & rhs )

Returns the sum of left hand side extent 'lhs' and the right hand side extent 'rhs'.

Remarks
If the operation results in a numerical overflow, the respective components will be clamped to its maximum, i.e. UINT32_MAX.

◆ operator+() [2/4]

LLGL_EXPORT Extent3D LLGL::operator+ ( const Extent3D & lhs,
const Extent3D & rhs )

Returns the sum of left hand side extent 'lhs' and the right hand side extent 'rhs'.

Remarks
If the operation results in a numerical overflow, the respective components will be clamped to its maximum, i.e. UINT32_MAX.

◆ operator+() [3/4]

LLGL_EXPORT Offset2D LLGL::operator+ ( const Offset2D & lhs,
const Offset2D & rhs )

Returns the sum of left hand side offset 'lhs' and the right hand side offset 'rhs'.

Remarks
If the operation results in a numerical overflow or underflow, the respective components will be clamped into the range [INT32_MIN, INT32_MAX].

◆ operator+() [4/4]

LLGL_EXPORT Offset3D LLGL::operator+ ( const Offset3D & lhs,
const Offset3D & rhs )

Returns the sum of left hand side offset 'lhs' and the right hand side offset 'rhs'.

Remarks
If the operation results in a numerical overflow or underflow, the respective components will be clamped into the range [INT32_MIN, INT32_MAX].

◆ operator-() [1/4]

LLGL_EXPORT Extent2D LLGL::operator- ( const Extent2D & lhs,
const Extent2D & rhs )

Returns the subtraction of left hand side extent 'lhs' and the right hand side extent 'rhs'.

Remarks
If the operation results in a numerical underflow, the respective components will be clamped to its minimum, i.e. 0.

◆ operator-() [2/4]

LLGL_EXPORT Extent3D LLGL::operator- ( const Extent3D & lhs,
const Extent3D & rhs )

Returns the subtraction of left hand side extent 'lhs' and the right hand side extent 'rhs'.

Remarks
If the operation results in a numerical underflow, the respective components will be clamped to its minimum, i.e. 0.

◆ operator-() [3/4]

LLGL_EXPORT Offset2D LLGL::operator- ( const Offset2D & lhs,
const Offset2D & rhs )

Returns the subtraction of left hand side offset 'lhs' and the right hand side offset 'rhs'.

Remarks
If the operation results in a numerical overflow or underflow, the respective components will be clamped into the range [INT32_MIN, INT32_MAX].

◆ operator-() [4/4]

LLGL_EXPORT Offset3D LLGL::operator- ( const Offset3D & lhs,
const Offset3D & rhs )

Returns the subtraction of left hand side offset 'lhs' and the right hand side offset 'rhs'.

Remarks
If the operation results in a numerical overflow or underflow, the respective components will be clamped into the range [INT32_MIN, INT32_MAX].

◆ operator==() [1/4]

bool LLGL::operator== ( const Extent2D & lhs,
const Extent2D & rhs )
inline

Returns true if the left hand side extent 'lhs' is equal to the right hand side extent 'rhs'.

◆ operator==() [2/4]

bool LLGL::operator== ( const Extent3D & lhs,
const Extent3D & rhs )
inline

Returns true if the left hand side extent 'lhs' is equal to the right hand side extent 'rhs'.

◆ operator==() [3/4]

bool LLGL::operator== ( const Offset2D & lhs,
const Offset2D & rhs )
inline

Returns true if the left hand side offset 'lhs' is equal to the right hand side offset 'rhs'.

◆ operator==() [4/4]

bool LLGL::operator== ( const Offset3D & lhs,
const Offset3D & rhs )
inline

Returns true if the left hand side offset 'lhs' is equal to the right hand side offset 'rhs'.