Skip to content

Conversation

@Naruto
Copy link
Collaborator

@Naruto Naruto commented Sep 27, 2025

No description provided.

{
m_ResPlayer = resPlayer;

m_strAnimationSelected.resize(0);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • godot 4.5 から rezsize は廃止、clear() が代替
  • 一方で godot-cpp 4.5 では resize は現存、 clear はなし

empty string を入れることで両方対応する。

#ifdef SPRITESTUDIO_GODOT_EXTENSION
#include <godot_cpp/classes/resource.hpp>
#include <godot_cpp/classes/resource_loader.hpp>
#include <godot_cpp/templates/vmap.hpp>
Copy link
Collaborator Author

@Naruto Naruto Sep 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.5 から vmap が廃止、大体として hash_map を利用する。

// glRotatef( state->uvRotation, 0.0, 0.0, 1.0);
TranslationMatrix( transMat, uvw + uv_trans.x, uvh + uv_trans.y, 0 );
Matrix4RotationZ( rotateMat, state->uvRotation * Math_PI / 180.0 );
Matrix4RotationZ( rotateMat, state->uvRotation * 3.1415926535897932384626433833 / 180.0 );
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.4 から Math_PI, 4.5 からは Math::PI となる。

両方対応のため直値で利用する。

@SpriteStudio SpriteStudio merged commit a86e2f5 into main Sep 29, 2025
4 checks passed
@Naruto Naruto deleted the feature/4.5 branch September 29, 2025 01:15
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 this pull request may close these issues.

3 participants