Browse Source

GL: no, not even I know what this sentence means anymore. Fix.

pull/547/head
Vladimír Vondruš 4 years ago
parent
commit
5888dae6ec
  1. 11
      src/Magnum/GL/Mesh.h

11
src/Magnum/GL/Mesh.h

@ -384,11 +384,12 @@ calling @ref AbstractShaderProgram::draw():
@ref MAGNUM_TARGET_WEBGL "WebGL" puts some restrictions on vertex buffer @ref MAGNUM_TARGET_WEBGL "WebGL" puts some restrictions on vertex buffer
layout, see @ref addVertexBuffer() documentation for details. layout, see @ref addVertexBuffer() documentation for details.
The @ref Buffer binding restriction transitively affects meshes as well, A WebGL restriction that allows @ref Buffer "Buffers" to be bound only to one
requiring @ref Buffer::TargetHint::ElementArray to be used for index buffers. unique target transitively affects meshes as well, requiring
To simplify debugging, the @ref addVertexBuffer() and @ref setIndexBuffer() @ref Buffer::TargetHint::ElementArray to be used for index buffers. To simplify
functions checks proper target hint when adding vertex and index buffers under dealing with this restriction, the @ref addVertexBuffer() and
WebGL. @ref setIndexBuffer() functions check proper target hint when adding vertex and
index buffers under WebGL.
@section GL-Mesh-performance-optimization Performance optimizations @section GL-Mesh-performance-optimization Performance optimizations

Loading…
Cancel
Save