![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
#include <Disc.hpp>
Public Types | |
| using | position_type = Vec3 |
| using | size_type = position_type::value_type |
| using | value_type = position_type::value_type |
Public Member Functions | |
| SIV3D_NODISCARD_CXX20 | Disc ()=default |
| constexpr SIV3D_NODISCARD_CXX20 | Disc (double _r) noexcept |
| constexpr SIV3D_NODISCARD_CXX20 | Disc (double cx, double cy, double cz, double _r) noexcept |
| constexpr SIV3D_NODISCARD_CXX20 | Disc (const Vec3 &_center, double _r) noexcept |
| constexpr Disc & | setPos (value_type cx, value_type cy, value_type cz) noexcept |
| constexpr Disc & | setPos (position_type _center) noexcept |
| constexpr Disc & | setR (size_type _r) noexcept |
| constexpr Disc | movedBy (value_type _x, value_type _y, value_type _z) const noexcept |
| constexpr Disc | movedBy (position_type v) const noexcept |
| constexpr Disc & | moveBy (value_type _x, value_type _y, value_type _z) noexcept |
| constexpr Disc & | moveBy (position_type v) noexcept |
| constexpr Disc | stretched (value_type _r) const noexcept |
| constexpr Disc | scaled (double s) const noexcept |
| constexpr bool | hasArea () const noexcept |
| constexpr Disc | lerp (const Disc &other, double f) const noexcept |
| const Disc & | draw (const ColorF &color=Palette::White) const |
| const Disc & | draw (const Texture &texture, const ColorF &color=Palette::White) const |
| const Disc & | draw (const Quaternion &rotation, const ColorF &color=Palette::White) const |
| const Disc & | draw (const Quaternion &rotation, const Texture &texture, const ColorF &color=Palette::White) const |
| const Disc & | draw (const Mat4x4 &mat, const ColorF &color=Palette::White) const |
| const Disc & | draw (const Mat4x4 &mat, const Texture &texture, const ColorF &color=Palette::White) const |
| const Disc & | draw (const PhongMaterial &material) const |
| const Disc & | draw (const Texture &texture, const PhongMaterial &material) const |
| const Disc & | draw (const Quaternion &rotation, const PhongMaterial &material) const |
| const Disc & | draw (const Quaternion &rotation, const Texture &texture, const PhongMaterial &material) const |
| const Disc & | draw (const Mat4x4 &mat, const PhongMaterial &material) const |
| const Disc & | draw (const Mat4x4 &mat, const Texture &texture, const PhongMaterial &material) const |
Public Attributes | |
| union { | |
| position_type center | |
| struct { | |
| value_type x | |
| value_type y | |
| value_type z | |
| } | |
| }; | |
| size_type | r |
| using s3d::Disc::position_type = Vec3 |
|
default |
|
explicitconstexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
| const Disc& s3d::Disc::draw | ( | const Mat4x4 & | mat, |
| const PhongMaterial & | material | ||
| ) | const |
| const Disc& s3d::Disc::draw | ( | const Mat4x4 & | mat, |
| const Texture & | texture, | ||
| const ColorF & | color = Palette::White |
||
| ) | const |
| const Disc& s3d::Disc::draw | ( | const Mat4x4 & | mat, |
| const Texture & | texture, | ||
| const PhongMaterial & | material | ||
| ) | const |
| const Disc& s3d::Disc::draw | ( | const PhongMaterial & | material | ) | const |
| const Disc& s3d::Disc::draw | ( | const Quaternion & | rotation, |
| const ColorF & | color = Palette::White |
||
| ) | const |
| const Disc& s3d::Disc::draw | ( | const Quaternion & | rotation, |
| const PhongMaterial & | material | ||
| ) | const |
| const Disc& s3d::Disc::draw | ( | const Quaternion & | rotation, |
| const Texture & | texture, | ||
| const ColorF & | color = Palette::White |
||
| ) | const |
| const Disc& s3d::Disc::draw | ( | const Quaternion & | rotation, |
| const Texture & | texture, | ||
| const PhongMaterial & | material | ||
| ) | const |
| const Disc& s3d::Disc::draw | ( | const Texture & | texture, |
| const ColorF & | color = Palette::White |
||
| ) | const |
| const Disc& s3d::Disc::draw | ( | const Texture & | texture, |
| const PhongMaterial & | material | ||
| ) | const |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
| union { ... } |
| position_type s3d::Disc::center |
| size_type s3d::Disc::r |
| value_type s3d::Disc::x |
| value_type s3d::Disc::y |
| value_type s3d::Disc::z |