OGLplus (0.45.0) a C++ wrapper for OpenGL

oglplus::BoundTemplate< Base, BaseParam, BufferOps > Class Template Reference

Specialization of the BoundTemplate for BufferOps, implements Bound < Buffer >. More...

#include </home/chochlik/devel/oglplus/include/oglplus/bound/buffer.hpp>

Inherits Base< BaseParam, BufferOps >.

Public Member Functions

bool Mapped (void) const
 
template<typename GLtype >
const BoundTemplateData (GLsizei count, const GLtype *data, BufferUsage usage=BufferUsage::StaticDraw) const
 
template<typename GLtype , std::size_t Count>
const BoundTemplateData (const GLtype(&data)[Count], BufferUsage usage=BufferUsage::StaticDraw) const
 
template<typename GLtype >
const BoundTemplateData (const std::vector< GLtype > &data, BufferUsage usage=BufferUsage::StaticDraw) const
 
template<typename GLtype , std::size_t N>
const BoundTemplateData (const std::vector< Vector< GLtype, N > > &data, BufferUsage usage=BufferUsage::StaticDraw) const
 
template<typename GLtype >
const BoundTemplateSubData (GLintptr offset, GLsizei count, const GLtype *data) const
 
template<typename GLtype , std::size_t Count>
const BoundTemplateSubData (GLintptr offset, const GLtype(&data)[Count]) const
 
template<typename GLtype >
const BoundTemplateSubData (GLintptr offset, const std::vector< GLtype > &data) const
 
template<typename GLtype >
const BoundTemplateClearData (PixelDataInternalFormat internal_format, PixelDataFormat format, const GLtype *data) const
 
template<typename GLtype >
const BoundTemplateClearSubData (PixelDataInternalFormat internal_format, GLintptr offset, GLsizeiptr size, PixelDataFormat format, const GLtype *data) const
 
template<typename GLtype >
const BoundTemplateStorage (GLsizeiptr size, const void *data, Bitfield< BufferStorageBit > flags) const
 
bool ImmutableStorage (void) const
 
Bitfield< BufferStorageBitStorageFlags (void) const
 
GLsizei Size (void) const
 
BufferUsage Usage (void) const
 
Bitfield< BufferMapAccessAccess (void) const
 
const BoundTemplateMakeResident (AccessSpecifier access) const
 
const BoundTemplateMakeNonResident (void) const
 
BufferGPUAddress GPUAddress (void) const
 

Detailed Description

template<template< class, class > class Base, class BaseParam>
class oglplus::BoundTemplate< Base, BaseParam, BufferOps >

Specialization of the BoundTemplate for BufferOps, implements Bound < Buffer >.

This template implements wrappers around the member functions of Buffer, which have a BufferOps::Target parameter specifying the binding point on which they should operate.

Note
Do not use this template class directly use Bound < Buffer > or the Bind() function instead.
See Also
Bind()
Bound

Member Function Documentation

template<template< class, class > class Base, class BaseParam >
Bitfield< BufferMapAccess > oglplus::BoundTemplate< Base, BaseParam, BufferOps >::Access ( void  ) const
template<template< class, class > class Base, class BaseParam >
template<typename GLtype >
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::ClearData ( PixelDataInternalFormat  internal_format,
PixelDataFormat  format,
const GLtype *  data 
) const
template<template< class, class > class Base, class BaseParam >
template<typename GLtype >
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::ClearSubData ( PixelDataInternalFormat  internal_format,
GLintptr  offset,
GLsizeiptr  size,
PixelDataFormat  format,
const GLtype *  data 
) const
template<template< class, class > class Base, class BaseParam >
template<typename GLtype >
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::Data ( GLsizei  count,
const GLtype *  data,
BufferUsage  usage = BufferUsage::StaticDraw 
) const

Wrapper for Buffer::Data()

See Also
Buffer::Data()

References oglplus::BufferOps::Data().

template<template< class, class > class Base, class BaseParam >
template<typename GLtype , std::size_t Count>
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::Data ( const GLtype(&)  data[Count],
BufferUsage  usage = BufferUsage::StaticDraw 
) const

Wrapper for Buffer::Data()

See Also
Buffer::Data()

References oglplus::BufferOps::Data().

template<template< class, class > class Base, class BaseParam >
template<typename GLtype >
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::Data ( const std::vector< GLtype > &  data,
BufferUsage  usage = BufferUsage::StaticDraw 
) const

Wrapper for Buffer::Data()

See Also
Buffer::Data()

References oglplus::BufferOps::Data().

template<template< class, class > class Base, class BaseParam >
template<typename GLtype , std::size_t N>
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::Data ( const std::vector< Vector< GLtype, N > > &  data,
BufferUsage  usage = BufferUsage::StaticDraw 
) const

Wrapper for Buffer::Data()

See Also
Buffer::Data()

References oglplus::BufferOps::Data().

template<template< class, class > class Base, class BaseParam >
BufferGPUAddress oglplus::BoundTemplate< Base, BaseParam, BufferOps >::GPUAddress ( void  ) const
template<template< class, class > class Base, class BaseParam >
bool oglplus::BoundTemplate< Base, BaseParam, BufferOps >::ImmutableStorage ( void  ) const
template<template< class, class > class Base, class BaseParam >
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::MakeNonResident ( void  ) const
template<template< class, class > class Base, class BaseParam >
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::MakeResident ( AccessSpecifier  access) const
template<template< class, class > class Base, class BaseParam >
bool oglplus::BoundTemplate< Base, BaseParam, BufferOps >::Mapped ( void  ) const
template<template< class, class > class Base, class BaseParam >
GLsizei oglplus::BoundTemplate< Base, BaseParam, BufferOps >::Size ( void  ) const

Wrapper for Buffer::Size()

See Also
Buffer::Size()

References oglplus::BufferOps::Size().

template<template< class, class > class Base, class BaseParam >
template<typename GLtype >
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::Storage ( GLsizeiptr  size,
const void *  data,
Bitfield< BufferStorageBit flags 
) const
template<template< class, class > class Base, class BaseParam >
Bitfield< BufferStorageBit > oglplus::BoundTemplate< Base, BaseParam, BufferOps >::StorageFlags ( void  ) const
template<template< class, class > class Base, class BaseParam >
template<typename GLtype >
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::SubData ( GLintptr  offset,
GLsizei  count,
const GLtype *  data 
) const
template<template< class, class > class Base, class BaseParam >
template<typename GLtype , std::size_t Count>
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::SubData ( GLintptr  offset,
const GLtype(&)  data[Count] 
) const
template<template< class, class > class Base, class BaseParam >
template<typename GLtype >
const BoundTemplate& oglplus::BoundTemplate< Base, BaseParam, BufferOps >::SubData ( GLintptr  offset,
const std::vector< GLtype > &  data 
) const
template<template< class, class > class Base, class BaseParam >
BufferUsage oglplus::BoundTemplate< Base, BaseParam, BufferOps >::Usage ( void  ) const

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/bound/buffer.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Wed Apr 30 2014 by Doxygen (version 1.8.4).