Array of PathNV objects and related operations. More...
#include </home/chochlik/devel/oglplus/include/oglplus/ext/NV_path_rendering/path_array.hpp>


Public Types | |
| typedef Reference< PathNV > | reference |
| Reference to elements. | |
| typedef const reference | const_reference |
| Reference to const elements. | |
| typedef SeqIterator< PathNV > | iterator |
| Iterator type. | |
| typedef iterator | const_iterator |
| Const-iterator type. | |
Public Member Functions | |
| PathArrayNV (GLsizei count) | |
Creates a sequence of count paths. | |
| template<typename CharType > | |
| PathArrayNV & | Glyphs (PathNVFontTarget font_target, const GLchar *font_name, Bitfield< PathNVFontStyle > font_style, GLsizei num_glyphs, const CharType *char_codes, PathNVMissingGlyph handle_missing_glyphs, GLuint parameter_template, GLfloat em_scale) |
| Creates a range of paths from specified font for specified chars. More... | |
| template<typename CharType > | |
| PathArrayNV & | Glyphs (PathNVFontTarget font_target, const GLchar *font_name, Bitfield< PathNVFontStyle > font_style, const std::vector< CharType > &char_codes, PathNVMissingGlyph handle_missing_glyphs, GLuint parameter_template, GLfloat em_scale) |
| Creates a range of paths from specified font for specified chars. More... | |
| PathArrayNV & | Glyphs (PathNVFontTarget font_target, const GLchar *font_name, Bitfield< PathNVFontStyle > font_style, StrCRef char_codes, PathNVMissingGlyph handle_missing_glyphs, GLuint parameter_template, GLfloat em_scale) |
| Creates a range of paths from specified font for specified chars. More... | |
| PathArrayNV & | GlyphRange (PathNVFontTarget font_target, const GLchar *font_name, Bitfield< PathNVFontStyle > font_style, GLuint first_glyph, GLsizei num_glyphs, PathNVMissingGlyph handle_missing_glyphs, GLuint parameter_template, GLfloat em_scale) |
| Creates a range of paths from specified font. More... | |
| template<typename IndexType > | |
| PathArrayNV & | GetSpacing (PathNVListMode list_mode, GLsizei num_indices, const IndexType *indices, GLfloat advance_scale, GLfloat kerning_scale, PathNVTransformType transform_type, GLfloat *returned_values) |
| Queries the glyph spacing for paths in the array. More... | |
| template<typename IndexType > | |
| PathArrayNV & | GetSpacing (PathNVListMode list_mode, const std::vector< IndexType > &indices, GLfloat advance_scale, GLfloat kerning_scale, PathNVTransformType transform_type, std::vector< GLfloat > &returned_values) |
| Queries the glyph spacing for paths in the array. More... | |
| PathArrayNV & | GetSpacing (PathNVListMode list_mode, StrCRef indices, GLfloat advance_scale, GLfloat kerning_scale, PathNVTransformType transform_type, std::vector< GLfloat > &returned_values) |
| Queries the glyph spacing for paths in the array. More... | |
| template<typename IndexType > | |
| PathArrayNV & | GetMetrics (Bitfield< PathNVMetricQuery > query_mask, GLsizei num_indices, const IndexType *indices, GLsizei stride, GLfloat *returned_values) |
| Queries the glyph metrics associated with a sequence of path objects. More... | |
| template<typename IndexType > | |
| PathArrayNV & | GetMetrics (Bitfield< PathNVMetricQuery > query_mask, const std::vector< IndexType > &indices, GLsizei stride, GLfloat *returned_values) |
| Queries the glyph metrics associated with a sequence of path objects. More... | |
| PathArrayNV & | GetMetrics (Bitfield< PathNVMetricQuery > query_mask, StrCRef indices, GLsizei stride, GLfloat *returned_values) |
| Queries the glyph metrics associated with a sequence of path objects. More... | |
| PathArrayNV & | GetMetricRange (Bitfield< PathNVMetricQuery > query_mask, GLsizei num_paths, GLsizei stride, GLfloat *returned_values) |
| Queries the glyph metrics associated with a range of path objects. More... | |
| template<typename IndexType > | |
| PathArrayNV & | StencilFillInstanced (GLsizei num_paths, const IndexType *paths, PathNVFillMode mode, GLuint mask, PathNVTransformType transform_type, const GLfloat *transform_values) |
| Writes the path interiors (fill) into the stencil buffer. More... | |
| template<typename IndexType > | |
| PathArrayNV & | StencilFillInstanced (const std::vector< IndexType > &paths, PathNVFillMode mode, GLuint mask, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values) |
| Writes the path interiors (fill) into the stencil buffer. More... | |
| PathArrayNV & | StencilFillInstanced (StrCRef paths, PathNVFillMode mode, GLuint mask, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values) |
| Writes the path interiors (fill) into the stencil buffer. More... | |
| template<typename IndexType > | |
| PathArrayNV & | CoverFillInstanced (GLsizei num_paths, const IndexType *paths, PathNVFillCoverMode mode, PathNVTransformType transform_type, const GLfloat *transform_values) |
| Covers the path interiors (fill) More... | |
| template<typename IndexType > | |
| PathArrayNV & | CoverFillInstanced (const std::vector< IndexType > &paths, PathNVFillCoverMode mode, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values) |
| Covers the path interiors (fill) More... | |
| PathArrayNV & | CoverFillInstanced (StrCRef paths, PathNVFillCoverMode mode, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values) |
| Covers the path interiors (fill) More... | |
| template<typename IndexType > | |
| PathArrayNV & | StencilStrokeInstanced (GLsizei num_paths, const IndexType *paths, GLint reference, GLuint mask, PathNVTransformType transform_type, const GLfloat *transform_values) |
| Writes the path interiors strokes to the stencil buffer. More... | |
| template<typename IndexType > | |
| PathArrayNV & | StencilStrokeInstanced (const std::vector< IndexType > &paths, GLint reference, GLuint mask, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values) |
| Writes the path interiors strokes to the stencil buffer. More... | |
| PathArrayNV & | StencilStrokeInstanced (StrCRef paths, GLint reference, GLuint mask, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values) |
| Writes the path interiors strokes to the stencil buffer. More... | |
| template<typename IndexType > | |
| PathArrayNV & | CoverStrokeInstanced (GLsizei num_paths, const IndexType *paths, PathNVStrokeCoverMode mode, PathNVTransformType transform_type, const GLfloat *transform_values) |
| Covers the path strokes. More... | |
| template<typename IndexType > | |
| PathArrayNV & | CoverStrokeInstanced (const std::vector< IndexType > &paths, PathNVStrokeCoverMode mode, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values) |
| Covers the path strokes. More... | |
| PathArrayNV & | CoverStrokeInstanced (StrCRef paths, PathNVStrokeCoverMode mode, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values) |
| Covers the path strokes. More... | |
| bool | empty (void) const |
| Returns true if the array is empty. | |
| std::size_t | size (void) const |
| Returns the number of instances in the array. | |
| reference | at (std::size_t index) |
| Returns a reference to the i-th instance in the array. | |
| const_reference | at (NameT index) const |
| Returns a const reference to the i-th instance in the array. | |
| reference | operator[] (std::size_t index) |
| Returns a reference to the i-th instance in the array. | |
| const_reference | operator[] (std::size_t index) const |
| Returns a const reference to the i-th instance in the array. | |
| const_iterator | begin (void) const |
| Returns an iterator pointing to the first element. | |
| const_iterator | end (void) const |
| Returns an iterator pointing past the last element. | |
Array of PathNV objects and related operations.
| PathArrayNV& oglplus::PathArrayNV::CoverFillInstanced | ( | GLsizei | num_paths, |
| const IndexType * | paths, | ||
| PathNVFillCoverMode | mode, | ||
| PathNVTransformType | transform_type, | ||
| const GLfloat * | transform_values | ||
| ) |
Covers the path interiors (fill)
| PathArrayNV& oglplus::PathArrayNV::CoverFillInstanced | ( | const std::vector< IndexType > & | paths, |
| PathNVFillCoverMode | mode, | ||
| PathNVTransformType | transform_type, | ||
| const std::vector< GLfloat > & | transform_values | ||
| ) |
Covers the path interiors (fill)
| PathArrayNV& oglplus::PathArrayNV::CoverFillInstanced | ( | StrCRef | paths, |
| PathNVFillCoverMode | mode, | ||
| PathNVTransformType | transform_type, | ||
| const std::vector< GLfloat > & | transform_values | ||
| ) |
Covers the path interiors (fill)
References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().
| PathArrayNV& oglplus::PathArrayNV::CoverStrokeInstanced | ( | GLsizei | num_paths, |
| const IndexType * | paths, | ||
| PathNVStrokeCoverMode | mode, | ||
| PathNVTransformType | transform_type, | ||
| const GLfloat * | transform_values | ||
| ) |
Covers the path strokes.
| PathArrayNV& oglplus::PathArrayNV::CoverStrokeInstanced | ( | const std::vector< IndexType > & | paths, |
| PathNVStrokeCoverMode | mode, | ||
| PathNVTransformType | transform_type, | ||
| const std::vector< GLfloat > & | transform_values | ||
| ) |
Covers the path strokes.
| PathArrayNV& oglplus::PathArrayNV::CoverStrokeInstanced | ( | StrCRef | paths, |
| PathNVStrokeCoverMode | mode, | ||
| PathNVTransformType | transform_type, | ||
| const std::vector< GLfloat > & | transform_values | ||
| ) |
Covers the path strokes.
References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().
| PathArrayNV& oglplus::PathArrayNV::GetMetricRange | ( | Bitfield< PathNVMetricQuery > | query_mask, |
| GLsizei | num_paths, | ||
| GLsizei | stride, | ||
| GLfloat * | returned_values | ||
| ) |
Queries the glyph metrics associated with a range of path objects.
| PathArrayNV& oglplus::PathArrayNV::GetMetrics | ( | Bitfield< PathNVMetricQuery > | query_mask, |
| GLsizei | num_indices, | ||
| const IndexType * | indices, | ||
| GLsizei | stride, | ||
| GLfloat * | returned_values | ||
| ) |
Queries the glyph metrics associated with a sequence of path objects.
| PathArrayNV& oglplus::PathArrayNV::GetMetrics | ( | Bitfield< PathNVMetricQuery > | query_mask, |
| const std::vector< IndexType > & | indices, | ||
| GLsizei | stride, | ||
| GLfloat * | returned_values | ||
| ) |
Queries the glyph metrics associated with a sequence of path objects.
| PathArrayNV& oglplus::PathArrayNV::GetMetrics | ( | Bitfield< PathNVMetricQuery > | query_mask, |
| StrCRef | indices, | ||
| GLsizei | stride, | ||
| GLfloat * | returned_values | ||
| ) |
Queries the glyph metrics associated with a sequence of path objects.
References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().
| PathArrayNV& oglplus::PathArrayNV::GetSpacing | ( | PathNVListMode | list_mode, |
| GLsizei | num_indices, | ||
| const IndexType * | indices, | ||
| GLfloat | advance_scale, | ||
| GLfloat | kerning_scale, | ||
| PathNVTransformType | transform_type, | ||
| GLfloat * | returned_values | ||
| ) |
Queries the glyph spacing for paths in the array.
| PathArrayNV& oglplus::PathArrayNV::GetSpacing | ( | PathNVListMode | list_mode, |
| const std::vector< IndexType > & | indices, | ||
| GLfloat | advance_scale, | ||
| GLfloat | kerning_scale, | ||
| PathNVTransformType | transform_type, | ||
| std::vector< GLfloat > & | returned_values | ||
| ) |
Queries the glyph spacing for paths in the array.
| PathArrayNV& oglplus::PathArrayNV::GetSpacing | ( | PathNVListMode | list_mode, |
| StrCRef | indices, | ||
| GLfloat | advance_scale, | ||
| GLfloat | kerning_scale, | ||
| PathNVTransformType | transform_type, | ||
| std::vector< GLfloat > & | returned_values | ||
| ) |
Queries the glyph spacing for paths in the array.
References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().
| PathArrayNV& oglplus::PathArrayNV::GlyphRange | ( | PathNVFontTarget | font_target, |
| const GLchar * | font_name, | ||
| Bitfield< PathNVFontStyle > | font_style, | ||
| GLuint | first_glyph, | ||
| GLsizei | num_glyphs, | ||
| PathNVMissingGlyph | handle_missing_glyphs, | ||
| GLuint | parameter_template, | ||
| GLfloat | em_scale | ||
| ) |
Creates a range of paths from specified font.
| PathArrayNV& oglplus::PathArrayNV::Glyphs | ( | PathNVFontTarget | font_target, |
| const GLchar * | font_name, | ||
| Bitfield< PathNVFontStyle > | font_style, | ||
| GLsizei | num_glyphs, | ||
| const CharType * | char_codes, | ||
| PathNVMissingGlyph | handle_missing_glyphs, | ||
| GLuint | parameter_template, | ||
| GLfloat | em_scale | ||
| ) |
Creates a range of paths from specified font for specified chars.
| PathArrayNV& oglplus::PathArrayNV::Glyphs | ( | PathNVFontTarget | font_target, |
| const GLchar * | font_name, | ||
| Bitfield< PathNVFontStyle > | font_style, | ||
| const std::vector< CharType > & | char_codes, | ||
| PathNVMissingGlyph | handle_missing_glyphs, | ||
| GLuint | parameter_template, | ||
| GLfloat | em_scale | ||
| ) |
Creates a range of paths from specified font for specified chars.
| PathArrayNV& oglplus::PathArrayNV::Glyphs | ( | PathNVFontTarget | font_target, |
| const GLchar * | font_name, | ||
| Bitfield< PathNVFontStyle > | font_style, | ||
| StrCRef | char_codes, | ||
| PathNVMissingGlyph | handle_missing_glyphs, | ||
| GLuint | parameter_template, | ||
| GLfloat | em_scale | ||
| ) |
Creates a range of paths from specified font for specified chars.
References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().
| PathArrayNV& oglplus::PathArrayNV::StencilFillInstanced | ( | GLsizei | num_paths, |
| const IndexType * | paths, | ||
| PathNVFillMode | mode, | ||
| GLuint | mask, | ||
| PathNVTransformType | transform_type, | ||
| const GLfloat * | transform_values | ||
| ) |
Writes the path interiors (fill) into the stencil buffer.
| PathArrayNV& oglplus::PathArrayNV::StencilFillInstanced | ( | const std::vector< IndexType > & | paths, |
| PathNVFillMode | mode, | ||
| GLuint | mask, | ||
| PathNVTransformType | transform_type, | ||
| const std::vector< GLfloat > & | transform_values | ||
| ) |
Writes the path interiors (fill) into the stencil buffer.
| PathArrayNV& oglplus::PathArrayNV::StencilFillInstanced | ( | StrCRef | paths, |
| PathNVFillMode | mode, | ||
| GLuint | mask, | ||
| PathNVTransformType | transform_type, | ||
| const std::vector< GLfloat > & | transform_values | ||
| ) |
Writes the path interiors (fill) into the stencil buffer.
References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().
| PathArrayNV& oglplus::PathArrayNV::StencilStrokeInstanced | ( | GLsizei | num_paths, |
| const IndexType * | paths, | ||
| GLint | reference, | ||
| GLuint | mask, | ||
| PathNVTransformType | transform_type, | ||
| const GLfloat * | transform_values | ||
| ) |
Writes the path interiors strokes to the stencil buffer.
| PathArrayNV& oglplus::PathArrayNV::StencilStrokeInstanced | ( | const std::vector< IndexType > & | paths, |
| GLint | reference, | ||
| GLuint | mask, | ||
| PathNVTransformType | transform_type, | ||
| const std::vector< GLfloat > & | transform_values | ||
| ) |
Writes the path interiors strokes to the stencil buffer.
| PathArrayNV& oglplus::PathArrayNV::StencilStrokeInstanced | ( | StrCRef | paths, |
| GLint | reference, | ||
| GLuint | mask, | ||
| PathNVTransformType | transform_type, | ||
| const std::vector< GLfloat > & | transform_values | ||
| ) |
Writes the path interiors strokes to the stencil buffer.
References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().