Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gim-hangil opened this issue Oct 25, 2024 · 1 comment · May be fixed by #339
Open

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

gim-hangil opened this issue Oct 25, 2024 · 1 comment · May be fixed by #339

Comments

@gim-hangil
Copy link

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
Copy link
Author

363d576

Didn't tested...

@RobLoach RobLoach linked a pull request Nov 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant