Closed jose-villegas closed 7 years ago
Hi,
Buffer
is made non-copyable (because GL does not support object copying) by declaring the copy constructor private and You are getting this error probably because MSVC still does not use properly the move constructors or you are trying to copy the array of Buffers.
Consider using Array<Buffer>
or StaticGroup<Buffer, 3>
instead of array<Buffer, 3>
.
HTH
I solved the issue chaning this in TerrainChunkGenerator
// collection of all mesh chunks
std::vector<std::vector<TerrainChunk>> meshChunks;
for this
// collection of all mesh chunks
std::vector<std::vector<TerrainChunk *>> meshChunks;
You are right that for some reason it's requesting the copy constructor. Array
Thanks! I'll have a look at the problem with the move constructor in Array.
I'm getting this error declaring a buffer object as a member in my class, for some reason this is only happening in a single class, I have buffers declared all over many classes in my current project but this is only happening for this class.
This is the file where I'm getting this error.
Yet the buffer objects in TerrainChunkGenerator don't give any problem, same with some other buffers I have declared in other classes
This is using MSVC2013