Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MeshTools: deprecate mesh/buffer-modifying vertex/index tools.
The point of this change is to allow greater flexibility and reduce confusion. When instanced meshes are implemented, MeshTools::interleave() can be used for creating interleaved buffers with per-instance data and then the call to Mesh::setCount() will be harmful and/or confusing, becuase the user would in fact want to call Mesh::setInstanceCount() instead. Similarly, MeshTools::compressIndices() can be used to create index buffer for more than one mesh. GL 4.4 has ARB_buffer_storage, which (in relatively distant future) will mean that the current way of Buffer::setData() will be deprecated in favor of Buffer::setStorage(), similarly as Texture::setStorage() replaced Texture::setImage(). Thus any function which calls Buffer::setData() internally is not future-proof. The old MeshTools::compressIndices() and MeshTools::interleave() overloads are marked as deprecated and will be removed in future release.
- Loading branch information
Showing
9 changed files
with
216 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.