OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::Vertex2D Struct Reference

2D 図形の基本頂点データ More...

#include <Vertex2D.hpp>

Public Types

using IndexType = uint16
 2D 描画のインデックス配列に使われる型 More...
 

Public Member Functions

constexpr void set (float x, float y, Float4 _color) noexcept
 
constexpr void set (float x, float y, float u, float v) noexcept
 
constexpr void set (float x, float y, float u, float v, Float4 _color) noexcept
 
constexpr void set (Float2 _pos, Float4 _color) noexcept
 
constexpr void set (Float2 _pos, float u, float v, Float4 _color) noexcept
 
constexpr void set (Float2 _pos, Float2 _tex, Float4 _color) noexcept
 

Public Attributes

Float2 pos
 位置 More...
 
Float2 tex
 UV 座標 More...
 
Float4 color
 More...
 

Detailed Description

2D 図形の基本頂点データ

Member Typedef Documentation

◆ IndexType

2D 描画のインデックス配列に使われる型

Member Function Documentation

◆ set() [1/6]

constexpr void s3d::Vertex2D::set ( float  x,
float  y,
float  u,
float  v 
)
constexprnoexcept

◆ set() [2/6]

constexpr void s3d::Vertex2D::set ( float  x,
float  y,
float  u,
float  v,
Float4  _color 
)
constexprnoexcept

◆ set() [3/6]

constexpr void s3d::Vertex2D::set ( float  x,
float  y,
Float4  _color 
)
constexprnoexcept

◆ set() [4/6]

constexpr void s3d::Vertex2D::set ( Float2  _pos,
float  u,
float  v,
Float4  _color 
)
constexprnoexcept

◆ set() [5/6]

constexpr void s3d::Vertex2D::set ( Float2  _pos,
Float2  _tex,
Float4  _color 
)
constexprnoexcept

◆ set() [6/6]

constexpr void s3d::Vertex2D::set ( Float2  _pos,
Float4  _color 
)
constexprnoexcept

Member Data Documentation

◆ color

Float4 s3d::Vertex2D::color

◆ pos

Float2 s3d::Vertex2D::pos

位置

◆ tex

Float2 s3d::Vertex2D::tex

UV 座標


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