Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Severity Code Description Project File Line Suppression State
- Error C2280 'World::World(const World &)': attempting to reference a
- deleted function
- World wd = World(&vp, am);
- class World{
- public:
- KDtree tree;
- ViewPlane *vp;
- DrawPanel * paintArea = &(DrawPanel(wxString("test"), wxDefaultPosition, 400,400));
- wxApp app;
- Vector3d backGround;
- vector <Geometry*> objects;
- Shader shader;
- vector<Light*>lights;
- World(ViewPlane*, Vector3d& Am);
- ....
- }
- World::World(ViewPlane * v, Vector3d &Ambient){
- vp = v;
- shader = (Shader(Ambient));
- }
- Bar b = Bar(...)
- World wd(&vp, am);
- World wd = World(&vp, am);
- World wd{&vp, am};
- World *wd = World(&vp, am);
- World wd(&vp, am);
- World *wd = new World(&vp, am);
Add Comment
Please, Sign In to add comment