mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@12541 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5592836f83
commit
1afd02ba06
6 changed files with 18 additions and 1 deletions
|
|
@ -17,5 +17,6 @@ void ClippingExample(Painter& sw);
|
|||
void PolyPolygon(Painter& sw);
|
||||
void TextOnPath(Painter& sw);
|
||||
void Dash(Painter& sw);
|
||||
void SomeRocks(Painter& sw);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ file
|
|||
Clipping.cpp,
|
||||
PolyPolygon.cpp,
|
||||
TextOnPath.cpp,
|
||||
SomeRocks.cpp,
|
||||
main.cpp,
|
||||
info.txt;
|
||||
|
||||
|
|
|
|||
13
benchmarks/LionBenchmark/SomeRocks.cpp
Normal file
13
benchmarks/LionBenchmark/SomeRocks.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "LionBenchmark.h"
|
||||
|
||||
void SomeRocks(Painter& sw)
|
||||
{
|
||||
static Painting rocks;
|
||||
|
||||
ONCELOCK {
|
||||
rocks.Serialize(FileIn(GetDataFile("SomeRocks.painting")));
|
||||
}
|
||||
|
||||
sw.EvenOdd();
|
||||
sw.Paint(rocks);
|
||||
}
|
||||
BIN
benchmarks/LionBenchmark/SomeRocks.painting
Normal file
BIN
benchmarks/LionBenchmark/SomeRocks.painting
Normal file
Binary file not shown.
|
|
@ -19,3 +19,4 @@ void TextOnPath(Painter& sw)
|
|||
pos += w;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,9 @@ void Task(Painter& sw)
|
|||
// Demo(sw);
|
||||
// ClippingExample(sw);
|
||||
// PolyPolygon(sw);
|
||||
TextOnPath(sw);
|
||||
// TextOnPath(sw);
|
||||
// Dash(sw);
|
||||
SomeRocks(sw);
|
||||
|
||||
sw.End();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue