mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Add Surface compare function.
Build Notice!: I got a link error while compiling the full project. The link error is "undefined reference to SDL_GetRGBA" and "undefined reference to SDL_snprintf"... Currently there is one way to solve it : Link SDL2test.lib first (Before SDL2 and SDL2main)
This commit is contained in:
parent
1cdf7956f6
commit
d8e2bb9e2b
|
@ -31,6 +31,10 @@ std::string GetMD5(unsigned char* buffer,unsigned int bufferLen)
|
|||
return str;
|
||||
}
|
||||
|
||||
int CompareSurface(const Surface& surface1, const Surface& surface2, int allowableError)
|
||||
{
|
||||
return SDLTest_CompareSurfaces(surface1.getRawPointer(),surface2.getRawPointer(),allowableError);
|
||||
}
|
||||
|
||||
}/// End of namespace MiniEngine::Test
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#include "MiniEngine.h"
|
||||
#include <string>
|
||||
|
||||
namespace MiniEngine
|
||||
|
@ -9,6 +10,7 @@ namespace Test
|
|||
|
||||
std::string GetMD5(unsigned char* buffer,unsigned int bufferLen);
|
||||
void GetMD5Raw(unsigned char* buffer,unsigned int bufferLen,unsigned char* outbuff);
|
||||
int CompareSurface(const Surface& surface1,const Surface& surface2,int allowableError);
|
||||
|
||||
}/// End of namespace MiniEngine::Test
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user