diff --git a/Dev/Cpp/EditorCommon/IO/FileReader.h b/Dev/Cpp/EditorCommon/IO/FileReader.h index c586678db4..df9b0866f0 100644 --- a/Dev/Cpp/EditorCommon/IO/FileReader.h +++ b/Dev/Cpp/EditorCommon/IO/FileReader.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include @@ -39,4 +40,4 @@ class StaticFileReader #endif -} // namespace Effekseer \ No newline at end of file +} // namespace Effekseer diff --git a/Dev/Cpp/Effekseer/Effekseer/Parameter/GpuParticlesParameter.cpp b/Dev/Cpp/Effekseer/Effekseer/Parameter/GpuParticlesParameter.cpp index cbc86ece02..270f491c71 100644 --- a/Dev/Cpp/Effekseer/Effekseer/Parameter/GpuParticlesParameter.cpp +++ b/Dev/Cpp/Effekseer/Effekseer/Parameter/GpuParticlesParameter.cpp @@ -22,26 +22,26 @@ GpuParticles::ParamSet LoadGpuParticlesParameter(uint8_t*& pos, int32_t version) paramSet.Basic.EmitOffset = Read(pos); paramSet.Basic.LifeTime = Read>(pos); - paramSet.EmitShape.Type = (EmitShape)Read(pos); + paramSet.EmitShape.Type = (EmitShapeT)Read(pos); paramSet.EmitShape.RotationApplied = Read(pos) != 0; switch (paramSet.EmitShape.Type) { - case EmitShape::Point: + case EmitShapeT::Point: break; - case EmitShape::Line: + case EmitShapeT::Line: paramSet.EmitShape.Line.Start = Read(pos); paramSet.EmitShape.Line.End = Read(pos); paramSet.EmitShape.Line.Width = Read(pos); break; - case EmitShape::Circle: + case EmitShapeT::Circle: paramSet.EmitShape.Circle.Axis = Read(pos); paramSet.EmitShape.Circle.Inner = Read(pos); paramSet.EmitShape.Circle.Outer = Read(pos); break; - case EmitShape::Sphere: + case EmitShapeT::Sphere: paramSet.EmitShape.Sphere.Radius = Read(pos); break; - case EmitShape::Model: + case EmitShapeT::Model: paramSet.EmitShape.Model.Index = Read(pos); paramSet.EmitShape.Model.Size = Read(pos); break; @@ -105,7 +105,7 @@ GpuParticles::ParamSet LoadGpuParticlesParameter(uint8_t*& pos, int32_t version) paramSet.RenderBasic.ZWrite = Read(pos); paramSet.RenderBasic.ZTest = Read(pos); - paramSet.RenderShape.Type = (RenderShape)Read(pos); + paramSet.RenderShape.Type = (RenderShapeT)Read(pos); paramSet.RenderShape.Data = Read(pos); paramSet.RenderShape.Size = Read(pos); diff --git a/Dev/Cpp/Effekseer/Effekseer/Renderer/Effekseer.GpuParticles.h b/Dev/Cpp/Effekseer/Effekseer/Renderer/Effekseer.GpuParticles.h index a952f53fc4..441dedf84b 100644 --- a/Dev/Cpp/Effekseer/Effekseer/Renderer/Effekseer.GpuParticles.h +++ b/Dev/Cpp/Effekseer/Effekseer/Renderer/Effekseer.GpuParticles.h @@ -100,7 +100,7 @@ inline vector4 operator*(vector4 a, T b) } -enum class EmitShape : uint32_t +enum class EmitShapeT : uint32_t { Point, Line, Circle, Sphere, Model, }; @@ -116,7 +116,7 @@ enum class ColorSpaceType : uint32_t { RGBA, HSVA, }; -enum class RenderShape : uint32_t +enum class RenderShapeT : uint32_t { Sprite, Model, Trail, }; @@ -162,7 +162,7 @@ struct ParamSet float Size; }; - EmitShape Type; + EmitShapeT Type; bool RotationApplied; union { @@ -241,7 +241,7 @@ struct ParamSet struct RenderShapeParams { - RenderShape Type; + RenderShapeT Type; uint32_t Data; float Size; }; diff --git a/Dev/Cpp/EffekseerRendererCommon/EffekseerRendererCommon/EffekseerRenderer.GpuParticles.cpp b/Dev/Cpp/EffekseerRendererCommon/EffekseerRendererCommon/EffekseerRenderer.GpuParticles.cpp index 630d8fe68a..6d93c2a55e 100644 --- a/Dev/Cpp/EffekseerRendererCommon/EffekseerRendererCommon/EffekseerRenderer.GpuParticles.cpp +++ b/Dev/Cpp/EffekseerRendererCommon/EffekseerRendererCommon/EffekseerRenderer.GpuParticles.cpp @@ -507,7 +507,7 @@ void GpuParticleSystem::ComputeFrame() } } - if (paramSet.EmitShape.Type == EmitShape::Model) + if (paramSet.EmitShape.Type == EmitShapeT::Model) { if (!emitter.resource->emitPoints) { @@ -673,9 +673,9 @@ void GpuParticleSystem::RenderFrame() Effekseer::ModelRef model; switch (paramSet.RenderShape.Type) { - case RenderShape::Sprite: model = m_modelSprite; break; - case RenderShape::Model: model = effect->GetModel(paramSet.RenderShape.Data); break; - case RenderShape::Trail: model = m_modelTrail; break; + case RenderShapeT::Sprite: model = m_modelSprite; break; + case RenderShapeT::Model: model = effect->GetModel(paramSet.RenderShape.Data); break; + case RenderShapeT::Trail: model = m_modelTrail; break; } if (model) @@ -747,7 +747,7 @@ GpuParticleSystem::EmitterID GpuParticleSystem::NewEmitter(Effekseer::GpuParticl emitter.data.ParticleHead = particleBlock.offset; emitter.data.ParticleSize = particleBlock.size; - if (paramSet.RenderShape.Type == RenderShape::Trail) + if (paramSet.RenderShape.Type == RenderShapeT::Trail) { Block trailBlock = m_trailAllocator.Allocate(particlesMaxCount * paramSet.RenderShape.Data); if (trailBlock.size == 0)