axmol/tests/live2d-tests/Source/LAppPal.hpp

76 lines
1.9 KiB
C++
Raw Normal View History

/**
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
#pragma once
#include <CubismFramework.hpp>
/**
* @brief Cubism Platform Abstraction Layer.
*
*
*
*/
class LAppPal
{
public:
/**
* @brief
*
*
*
* @param[in] filePath
* @param[out] outSize
* @return
*/
static Csm::csmByte* LoadFileAsBytes(const Csm::csmChar* filePath,Csm::csmSizeInt* outSize);
/**
* @brief
*
*
*
* @param[in] byteData
*/
static void ReleaseBytes(Csm::csmByte* byteData);
/**
* @biref
*
* @return [ms]
*
*/
static Csm::csmFloat32 GetDeltaTime();
/**
* @brief
*
*
*
* @param[in] format
* @param[in] ... ()
*
*/
static void PrintLog(const Csm::csmChar* format, ...);
/**
* @brief
*
*
*
* @param[in] message
*
*/
static void PrintMessage(const Csm::csmChar* message);
private:
LAppPal();
};