SDL 2.0
VULKAN_HPP_NAMESPACE::Viewport Struct Reference

#include <vulkan.hpp>

Public Member Functions

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

Data Fields

float x
 
float y
 
float width
 
float height
 
float minDepth
 
float maxDepth
 

Detailed Description

Definition at line 5354 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ Viewport() [1/2]

VULKAN_HPP_NAMESPACE::Viewport::Viewport ( float  x_ = 0,
float  y_ = 0,
float  width_ = 0,
float  height_ = 0,
float  minDepth_ = 0,
float  maxDepth_ = 0 
)
inline

Definition at line 5356 of file vulkan.hpp.

5362 : x( x_ )
5363 , y( y_ )
5364 , width( width_ )
5365 , height( height_ )
5366 , minDepth( minDepth_ )
5367 , maxDepth( maxDepth_ )
5368 {
5369 }

◆ Viewport() [2/2]

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

Definition at line 5371 of file vulkan.hpp.

5372 {
5373 memcpy( this, &rhs, sizeof( Viewport ) );
5374 }
#define memcpy
Definition: SDL_malloc.c:630
Viewport(float x_=0, float y_=0, float width_=0, float height_=0, float minDepth_=0, float maxDepth_=0)
Definition: vulkan.hpp:5356

References memcpy.

Member Function Documentation

◆ operator VkViewport &()

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

Definition at line 5422 of file vulkan.hpp.

5423 {
5424 return *reinterpret_cast<VkViewport*>(this);
5425 }

◆ operator VkViewport const &()

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

Definition at line 5417 of file vulkan.hpp.

5418 {
5419 return *reinterpret_cast<const VkViewport*>(this);
5420 }

◆ operator!=()

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

Definition at line 5437 of file vulkan.hpp.

5438 {
5439 return !operator==( rhs );
5440 }
bool operator==(Viewport const &rhs) const
Definition: vulkan.hpp:5427

References operator==().

◆ operator=()

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

Definition at line 5376 of file vulkan.hpp.

5377 {
5378 memcpy( this, &rhs, sizeof( Viewport ) );
5379 return *this;
5380 }

References memcpy.

◆ operator==()

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

Definition at line 5427 of file vulkan.hpp.

5428 {
5429 return ( x == rhs.x )
5430 && ( y == rhs.y )
5431 && ( width == rhs.width )
5432 && ( height == rhs.height )
5433 && ( minDepth == rhs.minDepth )
5434 && ( maxDepth == rhs.maxDepth );
5435 }
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

References height, maxDepth, minDepth, width, x, and y.

Referenced by operator!=().

◆ setHeight()

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

Definition at line 5399 of file vulkan.hpp.

5400 {
5401 height = height_;
5402 return *this;
5403 }

◆ setMaxDepth()

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

Definition at line 5411 of file vulkan.hpp.

5412 {
5413 maxDepth = maxDepth_;
5414 return *this;
5415 }

References maxDepth.

◆ setMinDepth()

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

Definition at line 5405 of file vulkan.hpp.

5406 {
5407 minDepth = minDepth_;
5408 return *this;
5409 }

References minDepth.

◆ setWidth()

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

Definition at line 5393 of file vulkan.hpp.

5394 {
5395 width = width_;
5396 return *this;
5397 }

◆ setX()

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

Definition at line 5381 of file vulkan.hpp.

5382 {
5383 x = x_;
5384 return *this;
5385 }

◆ setY()

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

Definition at line 5387 of file vulkan.hpp.

5388 {
5389 y = y_;
5390 return *this;
5391 }

Field Documentation

◆ height

float VULKAN_HPP_NAMESPACE::Viewport::height

Definition at line 5445 of file vulkan.hpp.

Referenced by operator==().

◆ maxDepth

float VULKAN_HPP_NAMESPACE::Viewport::maxDepth

Definition at line 5447 of file vulkan.hpp.

Referenced by operator==(), and setMaxDepth().

◆ minDepth

float VULKAN_HPP_NAMESPACE::Viewport::minDepth

Definition at line 5446 of file vulkan.hpp.

Referenced by operator==(), and setMinDepth().

◆ width

float VULKAN_HPP_NAMESPACE::Viewport::width

Definition at line 5444 of file vulkan.hpp.

Referenced by operator==().

◆ x

float VULKAN_HPP_NAMESPACE::Viewport::x

Definition at line 5442 of file vulkan.hpp.

Referenced by operator==().

◆ y

float VULKAN_HPP_NAMESPACE::Viewport::y

Definition at line 5443 of file vulkan.hpp.

Referenced by operator==().


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