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).
| Name | Kind | Items |
|---|---|---|
Live2DAllocator | class | 4 |
Live2DAnimator | class | 15 |
MotionPriority | enum | 4 |
Live2DModel | class | 20 |
Live2DRenderer | class | 10 |
class Live2DAllocator : public Csm::ICubismAllocator 4
void* Allocate(const Csm::csmSizeType size) overridevoid Deallocate(void* memory) overridevoid* AllocateAligned(const Csm::csmSizeType size, const Csm::csmUint32 alignment) overridevoid DeallocateAligned(void* alignedMemory) overrideclass Live2DAnimator 15
explicit Live2DAnimator(Live2DModel* model) noexceptLive2DAnimator(const Live2DAnimator&) = deleteLive2DAnimator& operator=(const Live2DAnimator&) = deletevoid 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 noexceptvoid Update(float deltaTime)void SetAutoIdleEnabled(bool enabled) noexceptvoid SetAutoIdleInterval(float interval) noexceptenum MotionPriority : int 4
None = 0Idle = 1Normal = 2Force = 3class Live2DModel : public Csm::CubismUserModel 20
explicit Live2DModel(const std::string& modelJsonPath)~Live2DModel() overrideLive2DModel(const Live2DModel&) = deleteLive2DModel& operator=(const Live2DModel&) = deletevoid 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() constvoid SetLipSyncEnabled(bool enabled) noexceptvoid SetLipSyncValue(float value) noexcept[[nodiscard]] Csm::ICubismModelSetting* GetModelSetting() const noexcept[[nodiscard]] const std::string& GetModelDir() const noexcept[[nodiscard]] int GetMotionCount(const std::string& group) constinline 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&) = deleteLive2DRenderer& operator=(const Live2DRenderer&) = deleteLive2DRenderer(Live2DRenderer&&) = deleteLive2DRenderer& operator=(Live2DRenderer&&) = delete[[nodiscard]] Csm::CubismViewMatrix& viewMatrix() noexcept[[nodiscard]] Csm::CubismMatrix44& projectionMatrix() noexceptvoid 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.