OpenSiv3D
OpenSiv3D copied to clipboard
C++20 framework for creative coding 🎮🎨🎹 / Cross-platform support (Windows, macOS, Linux, and the Web)
**追加する機能の内容 | Describe the solution you'd like** Vec2 Math::Clamp(const Vec2& v, const Vec2& min, const Vec2& max) { return { Clamp(v.x, min.x, max.x), Clamp(v.y, min.y, max.y) }; } 的なことが出来る関数オーバーロードを追加 Vec3,Point,Float2…などにも...
- reported by: https://discord.com/channels/443310697397354506/998781438264623155/1235960258149748757
現状の Script へ v0.8 で望む機能の提案です。 **追加する機能の内容 | Describe the solution you'd like** - Lua ラッパ の [sol](https://github.com/ThePhD/sol2) のように、ユーザー側でもクラスや関数を簡単に定義できるようにする。 - AngelScript をバインドするラッパを実装することにより、ユーザー側でもスクリプト登録が手軽にできるうえに、Siv3D内部でのAPIバインドの作業も捗ると考えます。 - HashTable のスクリプト対応 - 現状では辞書オブジェクトに対応するものがスクリプトで扱えなさそうなので、HashTable をスクリプトで対応して欲しいと思います。 - https://www.angelcode.com/angelscript/sdk/docs/manual/doc_datatypes_dictionary.html -...
- `FileSystem::BaseName()` - `FileSystem::Extension()` など
**エラーの内容 | Describe the build error** ``` FAILED: OpenSiv3D/Linux/CMakeFiles/Siv3D.dir/__/Siv3D/src/Siv3D-Platform/Linux/Siv3D/ChildProcess/ChildProcessDetail.cpp.o /nix/store/ld6dvi0n7qai3gzdrb85ykj4s4r0h4r7-clang-wrapper-18.1.1/bin/clang++ -DAS_USE_NAMESPACE -DMUPARSER_STATIC -DWITH_MINIAUDIO -DWITH_NOSOUND -D_GLFW_X11 -D_UNICODE -D__LINUX_ALSA__ -I/home/wrath/GAME/OpenSiv3D/Linux -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/include -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/include/ThirdParty -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src/Siv3D-Platform/Linux -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src/Siv3D-Platform/macOS_Linux -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src/Siv3D-Platform/OpenGL4 -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src/Siv3D-Platform/OpenGLES3 -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src/ThirdParty -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src/ThirdParty/asio -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src/ThirdParty/freetype -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src/ThirdParty/skia -I/home/wrath/GAME/OpenSiv3D/Linux/../Siv3D/src/ThirdParty/soloud/include...
サイズが1の `LineString` に対して `.calculateRoundBuffer()` を呼んだとき、現在は空のポリゴンが返りますが、円のポリゴンを返すようにすることを提案します。 この方がより自然な挙動だと思います。 ```c++ # include void Main() { const LineString lineString { Vec2{ 400, 300 }, }; // 円ができるほうが自然ではないか? const auto polygon = lineString.calculateRoundBuffer(10); while (System::Update())...
- 関連: https://discord.com/channels/443310697397354506/998714520040116354/1212929831533019227