Browse Source

Shaders: doc++

pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
549558b502
  1. 2
      src/Shaders/AbstractVectorShader.h
  2. 12
      src/Shaders/VectorShader.h

2
src/Shaders/AbstractVectorShader.h

@ -16,7 +16,7 @@
*/ */
/** @file /** @file
* @brief Class Magnum::Shaders::AbstractVectorShader * @brief Class Magnum::Shaders::AbstractVectorShader, typedef Magnum::Shaders::AbstractVectorShader2D, Magnum::Shaders::AbstractVectorShader3D
*/ */
#include "AbstractShaderProgram.h" #include "AbstractShaderProgram.h"

12
src/Shaders/VectorShader.h

@ -16,7 +16,7 @@
*/ */
/** @file /** @file
* @brief Class Magnum::Shaders::VectorShader * @brief Class Magnum::Shaders::VectorShader, typedef Magnum::Shaders::VectorShader2D, Magnum::Shaders::VectorShader3D
*/ */
#include "Math/Matrix3.h" #include "Math/Matrix3.h"
@ -36,13 +36,19 @@ template<UnsignedInt dimensions> class MAGNUM_SHADERS_EXPORT VectorShader: publi
public: public:
VectorShader(); VectorShader();
/** @brief Set transformation and projection matrix */ /**
* @brief Set transformation and projection matrix
* @return Pointer to self (for method chaining)
*/
inline VectorShader* setTransformationProjectionMatrix(const typename DimensionTraits<dimensions>::MatrixType& matrix) { inline VectorShader* setTransformationProjectionMatrix(const typename DimensionTraits<dimensions>::MatrixType& matrix) {
AbstractShaderProgram::setUniform(transformationProjectionMatrixUniform, matrix); AbstractShaderProgram::setUniform(transformationProjectionMatrixUniform, matrix);
return this; return this;
} }
/** @brief Set fill color */ /**
* @brief Set fill color
* @return Pointer to self (for method chaining)
*/
inline VectorShader* setColor(const Color4<>& color) { inline VectorShader* setColor(const Color4<>& color) {
AbstractShaderProgram::setUniform(colorUniform, color); AbstractShaderProgram::setUniform(colorUniform, color);
return this; return this;

Loading…
Cancel
Save