RobLoach / raylib-cpp

C++ Object Oriented Wrapper for raylib
https://robloach.github.io/raylib-cpp/
zlib License
675 stars 87 forks source link

Is there any reason why `Texture::GetSize()` returns `struct Vector2` not `class Vector2`? #335

Open gim-hangil opened 1 month ago

gim-hangil commented 1 month ago

I've noticed that Texture::GetSize() returns struct not class.

Because of that, we cannot use expressions like below which I was trying.

texture.Draw(position - texture.GetSize() / 2.0f)

I think this might be confusing.

gim-hangil commented 1 month ago

363d576e4a126942a2c99df2beb91b7a1d9592db

Didn't tested...