Co-authored-by: sigonasr2 <sigonasr2@gmail.com>master
parent
b28d48eff1
commit
a002c81bce
@ -1,7 +1,7 @@ |
||||
build.sh:d5e4e98a6f677aa0a9759ba0afb2fb77 - |
||||
build.sh:f7da5b6f54c56658f5410e0df797b5a7 - |
||||
commit.sh:d03a46e721060c22ccb146e19d27e70a - |
||||
debug.sh:849488515cab075948653c15eec4177b - |
||||
lines.sh:3b907786f7fc9204025993016c9080de - |
||||
release.sh:6a96fb84ba64ed60d31be436ec069f05 - |
||||
release.sh:0ab321c3fa2f1a1b2f03b1aec3bce816 - |
||||
temp:d41d8cd98f00b204e9800998ecf8427e - |
||||
web.sh:b982212b88b80a59ad607b47d2ff3e94 - |
||||
web.sh:e317e1d492d00517a0ac0e460239daa0 - |
||||
|
Binary file not shown.
@ -0,0 +1,12 @@ |
||||
#include "Polygon.h" |
||||
|
||||
Polygon::Polygon(std::initializer_list<vf2d>ls){ |
||||
points.resize(ls.size()); |
||||
std::copy(ls.begin(),ls.end(),points.begin()); |
||||
} |
||||
|
||||
void Polygon::DrawPolygon(){ |
||||
for (int i=0;i<points.size();i++){ |
||||
|
||||
} |
||||
} |
@ -0,0 +1,10 @@ |
||||
#include "pixelGameEngine.h" |
||||
|
||||
using namespace olc; |
||||
|
||||
class Polygon{ |
||||
public: |
||||
std::vector<vf2d>points; |
||||
Polygon(std::initializer_list<vf2d>ls); |
||||
void DrawPolygon(); |
||||
}; |
@ -0,0 +1,2 @@ |
||||
#define OLC_PGE_APPLICATION |
||||
#include "pixelGameEngine.h" |
Binary file not shown.
Loading…
Reference in new issue