|
|
|
|
@ -1209,8 +1209,11 @@ class MAGNUM_SHADERS_EXPORT MeshVisualizerGL2D::Configuration {
|
|
|
|
|
* bound on how many joint matrices get supplied to each draw with |
|
|
|
|
* @ref setJointMatrices() / @ref setJointMatrix(). If |
|
|
|
|
* @ref Flag::UniformBuffers is set, @p count describes size of a |
|
|
|
|
* @ref TransformationUniform2D buffer bound with @ref bindJointBuffer(); |
|
|
|
|
* as uniform buffers are required to have a statically defined size. |
|
|
|
|
* @ref TransformationUniform2D buffer bound with |
|
|
|
|
* @ref bindJointBuffer(). Uniform buffers have a statically defined |
|
|
|
|
* size and @cpp count*sizeof(TransformationUniform2D) @ce has to be |
|
|
|
|
* within @ref GL::AbstractShaderProgram::maxUniformBlockSize(). |
|
|
|
|
* |
|
|
|
|
* The per-vertex joints then index into the array offset by |
|
|
|
|
* @ref MeshVisualizerDrawUniform2D::jointOffset. If @p count is |
|
|
|
|
* @cpp 0 @ce, skinning is not performed. |
|
|
|
|
@ -1252,9 +1255,12 @@ class MAGNUM_SHADERS_EXPORT MeshVisualizerGL2D::Configuration {
|
|
|
|
|
* |
|
|
|
|
* If @ref Flag::UniformBuffers is set, describes size of a |
|
|
|
|
* @ref MeshVisualizerMaterialUniform buffer bound with |
|
|
|
|
* @ref bindMaterialBuffer(); as uniform buffers are required to have a |
|
|
|
|
* statically defined size. The per-draw materials are then specified |
|
|
|
|
* via @ref MeshVisualizerDrawUniform2D::materialId. Default value is |
|
|
|
|
* @ref bindMaterialBuffer(). Uniform buffers have a statically defined |
|
|
|
|
* size and @cpp count*sizeof(MeshVisualizerMaterialUniform) @ce has to |
|
|
|
|
* be within @ref GL::AbstractShaderProgram::maxUniformBlockSize(). |
|
|
|
|
* |
|
|
|
|
* The per-draw materials are then specified via |
|
|
|
|
* @ref MeshVisualizerDrawUniform2D::materialId. Default value is |
|
|
|
|
* @cpp 1 @ce. |
|
|
|
|
* |
|
|
|
|
* If @ref Flag::UniformBuffers isn't set, this value is ignored. |
|
|
|
|
@ -1264,8 +1270,8 @@ class MAGNUM_SHADERS_EXPORT MeshVisualizerGL2D::Configuration {
|
|
|
|
|
* @requires_gles30 Uniform buffers are not available in OpenGL ES 2.0. |
|
|
|
|
* @requires_webgl20 Uniform buffers are not available in WebGL 1.0. |
|
|
|
|
*/ |
|
|
|
|
Configuration& setMaterialCount(UnsignedInt materialCount) { |
|
|
|
|
_materialCount = materialCount; |
|
|
|
|
Configuration& setMaterialCount(UnsignedInt count) { |
|
|
|
|
_materialCount = count; |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -1284,10 +1290,15 @@ class MAGNUM_SHADERS_EXPORT MeshVisualizerGL2D::Configuration {
|
|
|
|
|
* @ref TransformationProjectionUniform2D / |
|
|
|
|
* @ref MeshVisualizerDrawUniform2D / @ref TextureTransformationUniform |
|
|
|
|
* buffer bound with @ref bindTransformationProjectionBuffer(), |
|
|
|
|
* @ref bindDrawBuffer() and @ref bindTextureTransformationBuffer(); as |
|
|
|
|
* uniform buffers are required to have a statically defined size. The |
|
|
|
|
* draw offset is then set via @ref setDrawOffset(). Default value is |
|
|
|
|
* @cpp 1 @ce. |
|
|
|
|
* @ref bindDrawBuffer() and @ref bindTextureTransformationBuffer(). |
|
|
|
|
* Uniform buffers have a statically defined size and the maximum of |
|
|
|
|
* @cpp count*sizeof(TransformationProjectionUniform2D) @ce, |
|
|
|
|
* @cpp count*sizeof(MeshVisualizerDrawUniform2D) @ce and |
|
|
|
|
* @cpp count*sizeof(TextureTransformationUniform) @ce has to be within |
|
|
|
|
* @ref GL::AbstractShaderProgram::maxUniformBlockSize(). |
|
|
|
|
* |
|
|
|
|
* The draw offset is then set via @ref setDrawOffset(). Default value |
|
|
|
|
* is @cpp 1 @ce. |
|
|
|
|
* |
|
|
|
|
* If @ref Flag::UniformBuffers isn't set, this value is ignored. |
|
|
|
|
* @see @ref setFlags(), @ref setMaterialCount(), |
|
|
|
|
@ -1296,8 +1307,8 @@ class MAGNUM_SHADERS_EXPORT MeshVisualizerGL2D::Configuration {
|
|
|
|
|
* @requires_gles30 Uniform buffers are not available in OpenGL ES 2.0. |
|
|
|
|
* @requires_webgl20 Uniform buffers are not available in WebGL 1.0. |
|
|
|
|
*/ |
|
|
|
|
Configuration& setDrawCount(UnsignedInt drawCount) { |
|
|
|
|
_drawCount = drawCount; |
|
|
|
|
Configuration& setDrawCount(UnsignedInt count) { |
|
|
|
|
_drawCount = count; |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
@ -3191,8 +3202,11 @@ class MeshVisualizerGL3D::Configuration {
|
|
|
|
|
* bound on how many joint matrices get supplied to each draw with |
|
|
|
|
* @ref setJointMatrices() / @ref setJointMatrix(). If |
|
|
|
|
* @ref Flag::UniformBuffers is set, @p count describes size of a |
|
|
|
|
* @ref TransformationUniform3D buffer bound with @ref bindJointBuffer(); |
|
|
|
|
* as uniform buffers are required to have a statically defined size. |
|
|
|
|
* @ref TransformationUniform3D buffer bound with |
|
|
|
|
* @ref bindJointBuffer(). Uniform buffers have a statically defined |
|
|
|
|
* size and @cpp count*sizeof(TransformationUniform3D) @ce has to be |
|
|
|
|
* within @ref GL::AbstractShaderProgram::maxUniformBlockSize(). |
|
|
|
|
* |
|
|
|
|
* The per-vertex joints then index into the array offset by |
|
|
|
|
* @ref MeshVisualizerDrawUniform3D::jointOffset. If @p count is |
|
|
|
|
* @cpp 0 @ce, skinning is not performed. |
|
|
|
|
@ -3234,9 +3248,12 @@ class MeshVisualizerGL3D::Configuration {
|
|
|
|
|
* |
|
|
|
|
* If @ref Flag::UniformBuffers is set, describes size of a |
|
|
|
|
* @ref MeshVisualizerMaterialUniform buffer bound with |
|
|
|
|
* @ref bindMaterialBuffer(); as uniform buffers are required to have a |
|
|
|
|
* statically defined size. The per-draw materials are then specified |
|
|
|
|
* via @ref MeshVisualizerDrawUniform3D::materialId. Default value is |
|
|
|
|
* @ref bindMaterialBuffer(). Uniform buffers have a statically defined |
|
|
|
|
* size and @cpp count*sizeof(MeshVisualizerMaterialUniform) @ce has to |
|
|
|
|
* be within @ref GL::AbstractShaderProgram::maxUniformBlockSize(). |
|
|
|
|
* |
|
|
|
|
* The per-draw materials are then specified via |
|
|
|
|
* @ref MeshVisualizerDrawUniform3D::materialId. Default value is |
|
|
|
|
* @cpp 1 @ce. |
|
|
|
|
* |
|
|
|
|
* If @ref Flag::UniformBuffers isn't set, this value is ignored. |
|
|
|
|
@ -3246,8 +3263,8 @@ class MeshVisualizerGL3D::Configuration {
|
|
|
|
|
* @requires_gles30 Uniform buffers are not available in OpenGL ES 2.0. |
|
|
|
|
* @requires_webgl20 Uniform buffers are not available in WebGL 1.0. |
|
|
|
|
*/ |
|
|
|
|
Configuration& setMaterialCount(UnsignedInt materialCount) { |
|
|
|
|
_materialCount = materialCount; |
|
|
|
|
Configuration& setMaterialCount(UnsignedInt count) { |
|
|
|
|
_materialCount = count; |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -3266,9 +3283,15 @@ class MeshVisualizerGL3D::Configuration {
|
|
|
|
|
* @ref TransformationUniform3D / @ref MeshVisualizerDrawUniform3D / |
|
|
|
|
* @ref TextureTransformationUniform buffer bound with |
|
|
|
|
* @ref bindTransformationBuffer(), @ref bindDrawBuffer() and |
|
|
|
|
* @ref bindTextureTransformationBuffer(); as uniform buffers are |
|
|
|
|
* required to have a statically defined size. The draw offset is then |
|
|
|
|
* set via @ref setDrawOffset(). Default value is @cpp 1 @ce. |
|
|
|
|
* @ref bindTextureTransformationBuffer(). Uniform buffers have a |
|
|
|
|
* statically defined size and the maximum of |
|
|
|
|
* @cpp count*sizeof(TransformationUniform3D) @ce, |
|
|
|
|
* @cpp count*sizeof(MeshVisualizerDrawUniform3D) @ce and |
|
|
|
|
* @cpp count*sizeof(TextureTransformationUniform) @ce has to be within |
|
|
|
|
* @ref GL::AbstractShaderProgram::maxUniformBlockSize(). |
|
|
|
|
* |
|
|
|
|
* The draw offset is then set via @ref setDrawOffset(). Default value |
|
|
|
|
* is @cpp 1 @ce. |
|
|
|
|
* |
|
|
|
|
* If @ref Flag::UniformBuffers isn't set, this value is ignored. |
|
|
|
|
* @see @ref setFlags(), @ref setMaterialCount(), |
|
|
|
|
@ -3277,8 +3300,8 @@ class MeshVisualizerGL3D::Configuration {
|
|
|
|
|
* @requires_gles30 Uniform buffers are not available in OpenGL ES 2.0. |
|
|
|
|
* @requires_webgl20 Uniform buffers are not available in WebGL 1.0. |
|
|
|
|
*/ |
|
|
|
|
Configuration& setDrawCount(UnsignedInt drawCount) { |
|
|
|
|
_drawCount = drawCount; |
|
|
|
|
Configuration& setDrawCount(UnsignedInt count) { |
|
|
|
|
_drawCount = count; |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|