cImage Surface
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 450 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 450 KiB |
@@ -150,6 +150,7 @@
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="UTest\UTest.cpp" />
|
||||
<ClCompile Include="UtilityEngineTest\StringTest.cpp" />
|
||||
<ClCompile Include="VideoEngineTest\ImageTest.cpp" />
|
||||
<ClCompile Include="VideoEngineTest\RendererTest.cpp" />
|
||||
<ClCompile Include="VideoEngineTest\VideoTest.cpp" />
|
||||
</ItemGroup>
|
||||
@@ -158,6 +159,7 @@
|
||||
<ClInclude Include="GUIEngineTest\GUIXMLTest.hpp" />
|
||||
<ClInclude Include="UTest\UTest.hpp" />
|
||||
<ClInclude Include="UtilityEngineTest\StringTest.hpp" />
|
||||
<ClInclude Include="VideoEngineTest\ImageTest.hpp" />
|
||||
<ClInclude Include="VideoEngineTest\RendererTest.hpp" />
|
||||
<ClInclude Include="VideoEngineTest\VideoTest.hpp" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -39,6 +39,9 @@
|
||||
<ClInclude Include="VideoEngineTest\VideoTest.hpp">
|
||||
<Filter>VideoEngineTest</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="VideoEngineTest\ImageTest.hpp">
|
||||
<Filter>VideoEngineTest</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="UTest\UTest.cpp">
|
||||
@@ -60,6 +63,9 @@
|
||||
<ClCompile Include="VideoEngineTest\VideoTest.cpp">
|
||||
<Filter>VideoEngineTest</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="VideoEngineTest\ImageTest.cpp">
|
||||
<Filter>VideoEngineTest</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Xml Include="xml\GUI.xml">
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
#include "ImageTest.hpp"
|
||||
|
||||
#include "../UTest/UTest.hpp"
|
||||
|
||||
/*** TrooperEngine DLL Header Files ***/
|
||||
#include "TrooperEngine.hpp"
|
||||
|
||||
using VideoEngine::cImage;
|
||||
|
||||
using VideoEngine::cSprite;
|
||||
|
||||
void ImageTest()
|
||||
{
|
||||
// cRenderer
|
||||
printf("\nTesting cImage -----\n\n");
|
||||
|
||||
UTest u("cImage");
|
||||
|
||||
cImage* image = new cImage("ImageTest.bmp", "", false, 0, 0, 255, 255, true);
|
||||
|
||||
image->SaveImage("ImageTestSaved.bmp");
|
||||
|
||||
cSprite* sprite = new cSprite(&image);
|
||||
|
||||
sprite->Draw();
|
||||
|
||||
|
||||
u.report();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef __IMAGETEST__
|
||||
#define __IMAGETEST__
|
||||
|
||||
void ImageTest();
|
||||
|
||||
#endif // __IMAGETEST__
|
||||
@@ -23,6 +23,7 @@ see license.txt for details
|
||||
|
||||
/*** Video Engine Test ***/
|
||||
#include "VideoEngineTest/VideoTest.hpp"
|
||||
#include "VideoEngineTest/ImageTest.hpp"
|
||||
|
||||
/*** Utility Engine Test ***/
|
||||
#include "UtilityEngineTest/StringTest.hpp"
|
||||
@@ -52,6 +53,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
GUIXMLTest();
|
||||
|
||||
ImageTest();
|
||||
|
||||
|
||||
UTest::OverAllReport();
|
||||
SDL_Event event;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<Panel size="200,200">
|
||||
<debug/>
|
||||
<Layout>
|
||||
<Label text="Box Sizer" />
|
||||
<Boxsizer />
|
||||
<Label text="Box Sizer" />
|
||||
</Layout>
|
||||
</Panel>
|
||||
Reference in New Issue
Block a user