Guest User

Untitled

a guest
Nov 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Severity Code Description Project File Line Suppression State
  2. Error C2280 'World::World(const World &)': attempting to reference a
  3. deleted function
  4.  
  5. World wd = World(&vp, am);
  6.  
  7. class World{
  8. public:
  9. KDtree tree;
  10. ViewPlane *vp;
  11. DrawPanel * paintArea = &(DrawPanel(wxString("test"), wxDefaultPosition, 400,400));
  12. wxApp app;
  13. Vector3d backGround;
  14. vector <Geometry*> objects;
  15. Shader shader;
  16. vector<Light*>lights;
  17.  
  18. World(ViewPlane*, Vector3d& Am);
  19. ....
  20. }
  21.  
  22. World::World(ViewPlane * v, Vector3d &Ambient){
  23. vp = v;
  24. shader = (Shader(Ambient));
  25. }
  26.  
  27. Bar b = Bar(...)
  28.  
  29. World wd(&vp, am);
  30.  
  31. World wd = World(&vp, am);
  32.  
  33. World wd{&vp, am};
  34.  
  35. World *wd = World(&vp, am);
  36.  
  37. World wd(&vp, am);
  38.  
  39. World *wd = new World(&vp, am);
Add Comment
Please, Sign In to add comment