template<UnsignedInt dimensions>
Magnum::Shaders::AbstractVector class

Base for vector shaders.

See DistanceFieldVector and Vector for more information.

Base classes

class Magnum::GL::AbstractShaderProgram
Base for shader program implementations.

Derived classes

template<UnsignedInt dimensions>
class DistanceFieldVector
Distance field vector shader.
template<UnsignedInt dimensions>
class Vector
Vector shader.

Public types

using Position = Generic<dimensions>::Position
Vertex position.
using TextureCoordinates = Generic<dimensions>::TextureCoordinates
2D texture coordinates

Public functions

auto bindVectorTexture(GL::Texture2D& texture) -> AbstractVector<dimensions>&
Bind vector texture.
auto setVectorTexture(GL::Texture2D& texture) -> AbstractVector<dimensions>& deprecated
Bind vector texture.

Typedef documentation

template<UnsignedInt dimensions>
typedef Generic<dimensions>::Position Magnum::Shaders::AbstractVector<dimensions>::Position

Vertex position.

Generic attribute, Vector2 in 2D, Vector3 in 3D.

template<UnsignedInt dimensions>
typedef Generic<dimensions>::TextureCoordinates Magnum::Shaders::AbstractVector<dimensions>::TextureCoordinates

2D texture coordinates

Generic attribute, Vector2.

Function documentation

template<UnsignedInt dimensions>
AbstractVector<dimensions>& Magnum::Shaders::AbstractVector<dimensions>::bindVectorTexture(GL::Texture2D& texture)

Bind vector texture.

Returns Reference to self (for method chaining)

template<UnsignedInt dimensions>
AbstractVector<dimensions>& Magnum::Shaders::AbstractVector<dimensions>::setVectorTexture(GL::Texture2D& texture)

Bind vector texture.