SDL  2.0
VULKAN_HPP_NAMESPACE::XYColorEXT Struct Reference

#include <vulkan.hpp>

Public Member Functions

 XYColorEXT (float x_=0, float y_=0)
 
 XYColorEXT (VkXYColorEXT const &rhs)
 
XYColorEXToperator= (VkXYColorEXT const &rhs)
 
XYColorEXTsetX (float x_)
 
XYColorEXTsetY (float y_)
 
 operator VkXYColorEXT const & () const
 
 operator VkXYColorEXT & ()
 
bool operator== (XYColorEXT const &rhs) const
 
bool operator!= (XYColorEXT const &rhs) const
 

Data Fields

float x
 
float y
 

Detailed Description

Definition at line 7397 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ XYColorEXT() [1/2]

VULKAN_HPP_NAMESPACE::XYColorEXT::XYColorEXT ( float  x_ = 0,
float  y_ = 0 
)
inline

Definition at line 7399 of file vulkan.hpp.

7401  : x( x_ )
7402  , y( y_ )
7403  {
7404  }

◆ XYColorEXT() [2/2]

VULKAN_HPP_NAMESPACE::XYColorEXT::XYColorEXT ( VkXYColorEXT const &  rhs)
inline

Definition at line 7406 of file vulkan.hpp.

References memcpy.

7407  {
7408  memcpy( this, &rhs, sizeof( XYColorEXT ) );
7409  }
XYColorEXT(float x_=0, float y_=0)
Definition: vulkan.hpp:7399
#define memcpy
Definition: SDL_malloc.c:630

Member Function Documentation

◆ operator VkXYColorEXT &()

VULKAN_HPP_NAMESPACE::XYColorEXT::operator VkXYColorEXT & ( )
inline

Definition at line 7433 of file vulkan.hpp.

7434  {
7435  return *reinterpret_cast<VkXYColorEXT*>(this);
7436  }

◆ operator VkXYColorEXT const &()

VULKAN_HPP_NAMESPACE::XYColorEXT::operator VkXYColorEXT const & ( ) const
inline

Definition at line 7428 of file vulkan.hpp.

7429  {
7430  return *reinterpret_cast<const VkXYColorEXT*>(this);
7431  }

◆ operator!=()

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

Definition at line 7444 of file vulkan.hpp.

7445  {
7446  return !operator==( rhs );
7447  }
bool operator==(XYColorEXT const &rhs) const
Definition: vulkan.hpp:7438

◆ operator=()

XYColorEXT& VULKAN_HPP_NAMESPACE::XYColorEXT::operator= ( VkXYColorEXT const &  rhs)
inline

Definition at line 7411 of file vulkan.hpp.

References memcpy.

7412  {
7413  memcpy( this, &rhs, sizeof( XYColorEXT ) );
7414  return *this;
7415  }
XYColorEXT(float x_=0, float y_=0)
Definition: vulkan.hpp:7399
#define memcpy
Definition: SDL_malloc.c:630

◆ operator==()

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

Definition at line 7438 of file vulkan.hpp.

References x, and y.

7439  {
7440  return ( x == rhs.x )
7441  && ( y == rhs.y );
7442  }
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574

◆ setX()

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

Definition at line 7416 of file vulkan.hpp.

7417  {
7418  x = x_;
7419  return *this;
7420  }
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574

◆ setY()

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

Definition at line 7422 of file vulkan.hpp.

7423  {
7424  y = y_;
7425  return *this;
7426  }
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574

Field Documentation

◆ x

float VULKAN_HPP_NAMESPACE::XYColorEXT::x

Definition at line 7449 of file vulkan.hpp.

Referenced by operator==().

◆ y

float VULKAN_HPP_NAMESPACE::XYColorEXT::y

Definition at line 7450 of file vulkan.hpp.

Referenced by operator==().


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