mitiru::live2d

Namespace catalog extracted from docs/API_CATALOG.md (5 types, 53 items).

Namespace catalog extracted from docs/API_CATALOG.md (5 types, 53 items).

NameKindItems
Live2DAllocatorclass4
Live2DAnimatorclass15
MotionPriorityenum4
Live2DModelclass20
Live2DRendererclass10
class Live2DAllocator : public Csm::ICubismAllocator 4
void* Allocate(const Csm::csmSizeType size) override
void Deallocate(void* memory) override
void* AllocateAligned(const Csm::csmSizeType size, const Csm::csmUint32 alignment) override
void DeallocateAligned(void* alignedMemory) override
class Live2DAnimator 15
explicit Live2DAnimator(Live2DModel* model) noexcept
Live2DAnimator(const Live2DAnimator&) = delete
Live2DAnimator& operator=(const Live2DAnimator&) = delete
void PlayMotion(const std::string& group, int index, MotionPriority priority = MotionPriority::Normal)
void PlayRandomMotion(const std::string& group, MotionPriority priority = MotionPriority::Normal)
void SetExpression(const std::string& name)
void SetRandomExpression()
void SetLipSync(float value)
void DisableLipSync()
void SetEyeTracking(float x, float y)
void SetAutoBlinkEnabled(bool enabled) noexcept
[[nodiscard]] bool IsAutoBlinkEnabled() const noexcept
void Update(float deltaTime)
void SetAutoIdleEnabled(bool enabled) noexcept
void SetAutoIdleInterval(float interval) noexcept
enum MotionPriority : int 4
None = 0
Idle = 1
Normal = 2
Force = 3
class Live2DModel : public Csm::CubismUserModel 20
explicit Live2DModel(const std::string& modelJsonPath)
~Live2DModel() override
Live2DModel(const Live2DModel&) = delete
Live2DModel& operator=(const Live2DModel&) = delete
void Update(float deltaTime)
void Draw(Csm::CubismMatrix44& viewProjection)
void SetExpression(const std::string& name)
Csm::CubismMotionQueueEntryHandle StartMotion( const std::string& group, int index, MotionPriority priority)
bool HitTest(const std::string& areaName, float x, float y)
void SetParameterValue(const std::string& paramId, float value)
[[nodiscard]] std::pair<float, float> GetCanvasSize() const
void SetLipSyncEnabled(bool enabled) noexcept
void SetLipSyncValue(float value) noexcept
[[nodiscard]] Csm::ICubismModelSetting* GetModelSetting() const noexcept
[[nodiscard]] const std::string& GetModelDir() const noexcept
[[nodiscard]] int GetMotionCount(const std::string& group) const
inline Csm::csmByte* ReadFileBytes(const char* path, Csm::csmSizeInt* outSize)
inline Csm::csmByte* LoadFileAsBytes(const std::string filePath, Csm::csmSizeInt* outSize)
inline void ReleaseBytes(Csm::csmByte* byteData)
inline GLuint LoadTextureFromFile(const std::string& filePath)
class Live2DRenderer 10
Live2DRenderer()
~Live2DRenderer()
Live2DRenderer(const Live2DRenderer&) = delete
Live2DRenderer& operator=(const Live2DRenderer&) = delete
Live2DRenderer(Live2DRenderer&&) = delete
Live2DRenderer& operator=(Live2DRenderer&&) = delete
[[nodiscard]] Csm::CubismViewMatrix& viewMatrix() noexcept
[[nodiscard]] Csm::CubismMatrix44& projectionMatrix() noexcept
void setProjection(float windowWidth, float windowHeight, float modelWidth)
[[nodiscard]] Csm::CubismMatrix44 getViewProjectionMatrix()

Sourced from docs/API_CATALOG.md, auto-generated by tools/generate_api_catalog.py.