2017-05-23 12:26:36 +08:00
|
|
|
#pragma once
|
2017-05-24 18:17:29 +08:00
|
|
|
#include "MiniEngine.h"
|
2017-05-23 12:26:36 +08:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace MiniEngine
|
|
|
|
{
|
|
|
|
|
|
|
|
namespace Test
|
|
|
|
{
|
|
|
|
|
|
|
|
std::string GetMD5(unsigned char* buffer,unsigned int bufferLen);
|
|
|
|
void GetMD5Raw(unsigned char* buffer,unsigned int bufferLen,unsigned char* outbuff);
|
2017-05-24 18:17:29 +08:00
|
|
|
int CompareSurface(const Surface& surface1,const Surface& surface2,int allowableError);
|
2017-05-23 12:26:36 +08:00
|
|
|
|
2017-06-06 18:38:28 +08:00
|
|
|
class UniRandom
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/// Default Constructor is based on system current time.
|
|
|
|
UniRandom();
|
|
|
|
UniRandom(unsigned int A,unsigned int B);
|
|
|
|
uint32_t get();
|
|
|
|
private:
|
|
|
|
struct _impl;
|
|
|
|
std::shared_ptr<_impl> _sp;
|
|
|
|
};
|
|
|
|
|
2017-05-23 12:26:36 +08:00
|
|
|
}/// End of namespace MiniEngine::Test
|
|
|
|
|
|
|
|
}/// End of namespace MiniEngine
|