A repository that sets up a C++ Project with the olcPixelGameEngine already loaded.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include <memory>
|
|
|
|
#define OLC_PGE_APPLICATION
|
|
|
|
#include "pixelGameEngine.h"
|
|
|
|
|
|
|
|
using namespace olc;
|
|
|
|
|
|
|
|
struct MyStruct{
|
|
|
|
int val=4;
|
|
|
|
friend std::ostream&operator<<(std::ostream&os,MyStruct&rhs){
|
|
|
|
printf("Called\n");
|
|
|
|
return os;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
MyStruct*st=new MyStruct({5});
|
|
|
|
std::cout<<*st<<std::endl;
|
|
|
|
return 0;
|
|
|
|
}
|