mirror of
https://github.com/GayPizzaSpecifications/cxx-swift-interop.git
synced 2025-08-05 22:21:31 +00:00
restore c++ backend using swift 6's improved interop
This commit is contained in:
@ -30,6 +30,8 @@ void Ball::update(float deltaTime) noexcept {
|
||||
}
|
||||
|
||||
|
||||
BallWorld::BallWorld() noexcept : balls() {}
|
||||
|
||||
void BallWorld::add(Ball::vec2f pos, float angle, float ballSize) noexcept {
|
||||
balls.emplace_back(Ball{ pos, angle, ballSize });
|
||||
}
|
||||
|
Reference in New Issue
Block a user