We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally reported by: Anonymous
In http://www.arcsynthesis.org/gltut/Positioning/Tutorial%2003.html, Example 3.2, this: #!c++ memcpy(&fNewData[0], vertexPositions, sizeof(vertexPositions));
should really be this: #!c++ std::copy(vertexPositions, vertexPositions+sizeof(vertexPositions), fNewData.begin());
or even better: #!c++ std::vector fNewData(vertexPositions, vertexPositions+sizeof(vertexPositions));
(std::begin / std::end could be used, but I doubt the tutorials should require C++11 compliance)
The text was updated successfully, but these errors were encountered:
Original comment by Jason McKesson (Bitbucket: alfonse, GitHub: alfonse):
I'll consider it.
Sorry, something went wrong.
No branches or pull requests
Originally reported by: Anonymous
In http://www.arcsynthesis.org/gltut/Positioning/Tutorial%2003.html, Example 3.2,
this:
#!c++
memcpy(&fNewData[0], vertexPositions, sizeof(vertexPositions));
should really be this:
#!c++
std::copy(vertexPositions, vertexPositions+sizeof(vertexPositions), fNewData.begin());
or even better:
#!c++
std::vector fNewData(vertexPositions, vertexPositions+sizeof(vertexPositions));
(std::begin / std::end could be used, but I doubt the tutorials should require C++11 compliance)
The text was updated successfully, but these errors were encountered: