mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[cpp][ue4] Attempted fix for linker errors in UE4.
This commit is contained in:
parent
90112276d4
commit
8de7a66920
@ -65,11 +65,7 @@ enum TextureWrap {
|
|||||||
TextureWrap_Repeat
|
TextureWrap_Repeat
|
||||||
};
|
};
|
||||||
|
|
||||||
class
|
class AtlasPage : public SpineObject, public HasRendererObject {
|
||||||
#ifdef SPINE_UE4
|
|
||||||
SPINEPLUGIN_API
|
|
||||||
#endif
|
|
||||||
AtlasPage : public SpineObject, public HasRendererObject {
|
|
||||||
public:
|
public:
|
||||||
String name;
|
String name;
|
||||||
Format format;
|
Format format;
|
||||||
@ -87,11 +83,7 @@ public:
|
|||||||
virtual ~AtlasPage() { }
|
virtual ~AtlasPage() { }
|
||||||
};
|
};
|
||||||
|
|
||||||
class
|
class AtlasRegion : public SpineObject {
|
||||||
#ifdef SPINE_UE4
|
|
||||||
SPINEPLUGIN_API
|
|
||||||
#endif
|
|
||||||
AtlasRegion : public SpineObject {
|
|
||||||
public:
|
public:
|
||||||
AtlasPage *page;
|
AtlasPage *page;
|
||||||
String name;
|
String name;
|
||||||
@ -107,11 +99,7 @@ public:
|
|||||||
|
|
||||||
class TextureLoader;
|
class TextureLoader;
|
||||||
|
|
||||||
class
|
class Atlas : public SpineObject {
|
||||||
#ifdef SPINE_UE4
|
|
||||||
SPINEPLUGIN_API
|
|
||||||
#endif
|
|
||||||
Atlas : public SpineObject {
|
|
||||||
public:
|
public:
|
||||||
Atlas(const String &path, TextureLoader *textureLoader);
|
Atlas(const String &path, TextureLoader *textureLoader);
|
||||||
|
|
||||||
|
|||||||
@ -34,10 +34,12 @@
|
|||||||
#include <new>
|
#include <new>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#include <spine/dll.h>
|
||||||
|
|
||||||
namespace spine {
|
namespace spine {
|
||||||
class String;
|
class String;
|
||||||
|
|
||||||
class SpineObject {
|
class SP_API SpineObject {
|
||||||
public:
|
public:
|
||||||
void *operator new(size_t sz);
|
void *operator new(size_t sz);
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,12 @@ void ASpineboyCppPawn::BeginPlay()
|
|||||||
void ASpineboyCppPawn::Tick(float DeltaTime)
|
void ASpineboyCppPawn::Tick(float DeltaTime)
|
||||||
{
|
{
|
||||||
Super::Tick(DeltaTime);
|
Super::Tick(DeltaTime);
|
||||||
|
USpineSkeletonAnimationComponent* animation = FindComponentByClass<USpineSkeletonAnimationComponent>();
|
||||||
|
spine::AnimationState *state = animation->GetAnimationState();
|
||||||
|
spine::TrackEntry *entry = state->getCurrent(0);
|
||||||
|
if (entry) {
|
||||||
|
GEngine->AddOnScreenDebugMessage(-1, 0.5f, FColor::Yellow, FString(entry->getAnimation()->getName().buffer()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called to bind functionality to input
|
// Called to bind functionality to input
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user