SDL  2.0
VULKAN_HPP_NAMESPACE::Viewport Struct Reference

#include <vulkan.hpp>

Public Member Functions

VULKAN_HPP_CONSTEXPR Viewport (float x_={}, float y_={}, float width_={}, float height_={}, float minDepth_={}, float maxDepth_={}) VULKAN_HPP_NOEXCEPT
 
VULKAN_HPP_CONSTEXPR Viewport (Viewport const &rhs) VULKAN_HPP_NOEXCEPT=default
 
 Viewport (VkViewport const &rhs) VULKAN_HPP_NOEXCEPT
 
Viewportoperator= (VkViewport const &rhs) VULKAN_HPP_NOEXCEPT
 
Viewportoperator= (Viewport const &rhs) VULKAN_HPP_NOEXCEPT
 
ViewportsetX (float x_) VULKAN_HPP_NOEXCEPT
 
ViewportsetY (float y_) VULKAN_HPP_NOEXCEPT
 
ViewportsetWidth (float width_) VULKAN_HPP_NOEXCEPT
 
ViewportsetHeight (float height_) VULKAN_HPP_NOEXCEPT
 
ViewportsetMinDepth (float minDepth_) VULKAN_HPP_NOEXCEPT
 
ViewportsetMaxDepth (float maxDepth_) VULKAN_HPP_NOEXCEPT
 
 operator VkViewport const & () const VULKAN_HPP_NOEXCEPT
 
 operator VkViewport & () VULKAN_HPP_NOEXCEPT
 
bool operator== (Viewport const &rhs) const VULKAN_HPP_NOEXCEPT
 
bool operator!= (Viewport const &rhs) const VULKAN_HPP_NOEXCEPT
 

Data Fields

float x = {}
 
float y = {}
 
float width = {}
 
float height = {}
 
float minDepth = {}
 
float maxDepth = {}
 

Detailed Description

Definition at line 34517 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ Viewport() [1/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::Viewport::Viewport ( float  x_ = {},
float  y_ = {},
float  width_ = {},
float  height_ = {},
float  minDepth_ = {},
float  maxDepth_ = {} 
)
inline

Definition at line 34522 of file vulkan.hpp.

34522  {}, float y_ = {}, float width_ = {}, float height_ = {}, float minDepth_ = {}, float maxDepth_ = {}) VULKAN_HPP_NOEXCEPT
34523  : x( x_ ), y( y_ ), width( width_ ), height( height_ ), minDepth( minDepth_ ), maxDepth( maxDepth_ )
34524  {}
#define VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:179

◆ Viewport() [2/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::Viewport::Viewport ( Viewport const &  rhs)
default

◆ Viewport() [3/3]

VULKAN_HPP_NAMESPACE::Viewport::Viewport ( VkViewport const &  rhs)
inline

Definition at line 34528 of file vulkan.hpp.

34529  {
34530  *this = rhs;
34531  }

Member Function Documentation

◆ operator VkViewport &()

VULKAN_HPP_NAMESPACE::Viewport::operator VkViewport & ( )
inline

Definition at line 34588 of file vulkan.hpp.

34589  {
34590  return *reinterpret_cast<VkViewport*>( this );
34591  }

◆ operator VkViewport const &()

VULKAN_HPP_NAMESPACE::Viewport::operator VkViewport const & ( ) const
inline

Definition at line 34583 of file vulkan.hpp.

34584  {
34585  return *reinterpret_cast<const VkViewport*>( this );
34586  }

◆ operator!=()

bool VULKAN_HPP_NAMESPACE::Viewport::operator!= ( Viewport const &  rhs) const
inline

Definition at line 34607 of file vulkan.hpp.

34608  {
34609  return !operator==( rhs );
34610  }
bool operator==(Viewport const &rhs) const VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:34597

References VULKAN_HPP_NAMESPACE::operator==().

◆ operator=() [1/2]

Viewport& VULKAN_HPP_NAMESPACE::Viewport::operator= ( Viewport const &  rhs)
inline

Definition at line 34540 of file vulkan.hpp.

34541  {
34542  memcpy( static_cast<void *>( this ), &rhs, sizeof( Viewport ) );
34543  return *this;
34544  }
#define memcpy
Definition: SDL_malloc.c:630
VULKAN_HPP_CONSTEXPR Viewport(float x_={}, float y_={}, float width_={}, float height_={}, float minDepth_={}, float maxDepth_={}) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:34522

References memcpy.

◆ operator=() [2/2]

Viewport& VULKAN_HPP_NAMESPACE::Viewport::operator= ( VkViewport const &  rhs)
inline

Definition at line 34534 of file vulkan.hpp.

34535  {
34536  *this = *reinterpret_cast<VULKAN_HPP_NAMESPACE::Viewport const *>( &rhs );
34537  return *this;
34538  }

◆ operator==()

bool VULKAN_HPP_NAMESPACE::Viewport::operator== ( Viewport const &  rhs) const
inline

Definition at line 34597 of file vulkan.hpp.

34598  {
34599  return ( x == rhs.x )
34600  && ( y == rhs.y )
34601  && ( width == rhs.width )
34602  && ( height == rhs.height )
34603  && ( minDepth == rhs.minDepth )
34604  && ( maxDepth == rhs.maxDepth );
34605  }
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574
GLint GLint GLsizei width
Definition: SDL_opengl.h:1572
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574
GLint GLint GLsizei GLsizei height
Definition: SDL_opengl.h:1572

◆ setHeight()

Viewport& VULKAN_HPP_NAMESPACE::Viewport::setHeight ( float  height_)
inline

Definition at line 34564 of file vulkan.hpp.

34565  {
34566  height = height_;
34567  return *this;
34568  }

◆ setMaxDepth()

Viewport& VULKAN_HPP_NAMESPACE::Viewport::setMaxDepth ( float  maxDepth_)
inline

Definition at line 34576 of file vulkan.hpp.

34577  {
34578  maxDepth = maxDepth_;
34579  return *this;
34580  }

◆ setMinDepth()

Viewport& VULKAN_HPP_NAMESPACE::Viewport::setMinDepth ( float  minDepth_)
inline

Definition at line 34570 of file vulkan.hpp.

34571  {
34572  minDepth = minDepth_;
34573  return *this;
34574  }

◆ setWidth()

Viewport& VULKAN_HPP_NAMESPACE::Viewport::setWidth ( float  width_)
inline

Definition at line 34558 of file vulkan.hpp.

34559  {
34560  width = width_;
34561  return *this;
34562  }

◆ setX()

Viewport& VULKAN_HPP_NAMESPACE::Viewport::setX ( float  x_)
inline

Definition at line 34546 of file vulkan.hpp.

34547  {
34548  x = x_;
34549  return *this;
34550  }

◆ setY()

Viewport& VULKAN_HPP_NAMESPACE::Viewport::setY ( float  y_)
inline

Definition at line 34552 of file vulkan.hpp.

34553  {
34554  y = y_;
34555  return *this;
34556  }

Field Documentation

◆ height

float VULKAN_HPP_NAMESPACE::Viewport::height = {}

Definition at line 34619 of file vulkan.hpp.

◆ maxDepth

float VULKAN_HPP_NAMESPACE::Viewport::maxDepth = {}

Definition at line 34621 of file vulkan.hpp.

◆ minDepth

float VULKAN_HPP_NAMESPACE::Viewport::minDepth = {}

Definition at line 34620 of file vulkan.hpp.

◆ width

float VULKAN_HPP_NAMESPACE::Viewport::width = {}

Definition at line 34618 of file vulkan.hpp.

◆ x

float VULKAN_HPP_NAMESPACE::Viewport::x = {}

Definition at line 34616 of file vulkan.hpp.

◆ y

float VULKAN_HPP_NAMESPACE::Viewport::y = {}

Definition at line 34617 of file vulkan.hpp.


The documentation for this struct was generated from the following file: