OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::BoundObjOps< tag::Buffer > Class Template Reference

Specialization of the BoundObjOps for Buffer >. More...

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

Public Member Functions

GLint GetIntParam (GLenum query) const
 
bool Mapped (void) const
 
const BoundObjOps & Resize (BufferSize size, BufferUsage usage=BufferUsage::StaticDraw) const
 
template<typename GLtype >
const BoundObjOps & Data (GLsizei count, const GLtype *data, BufferUsage usage=BufferUsage::StaticDraw) const
 
template<typename GLtype , std::size_t Count>
const BoundObjOps & Data (const GLtype(&data)[Count], BufferUsage usage=BufferUsage::StaticDraw) const
 
template<typename GLtype >
const BoundObjOps & Data (const std::vector< GLtype > &data, BufferUsage usage=BufferUsage::StaticDraw) const
 
template<typename GLtype , std::size_t N>
const BoundObjOps & Data (const std::vector< Vector< GLtype, N > > &data, BufferUsage usage=BufferUsage::StaticDraw) const
 
template<typename GLtype >
const BoundObjOps & SubData (BufferSize offset, GLsizei count, const GLtype *data) const
 
template<typename GLtype , std::size_t Count>
const BoundObjOps & SubData (BufferSize offset, const GLtype(&data)[Count]) const
 
template<typename GLtype >
const BoundObjOps & SubData (BufferSize offset, const std::vector< GLtype > &data) const
 
template<typename GLtype >
const BoundObjOps & ClearData (PixelDataInternalFormat internal_format, PixelDataFormat format, const GLtype *data) const
 
template<typename GLtype >
const BoundObjOps & ClearSubData (PixelDataInternalFormat internal_format, BufferSize offset, BufferSize size, PixelDataFormat format, const GLtype *data) const
 
const BoundObjOps & Storage (BufferSize 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 BoundObjOps & MakeResident (AccessSpecifier access) const
 
const BoundObjOps & MakeNonResident (void) const
 
BufferGPUAddress GPUAddress (void) const
 

Detailed Description

template<>
class oglplus::BoundObjOps< tag::Buffer >

Specialization of the BoundObjOps for Buffer >.

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

Note
Do not use this template class directly use Bound < Buffer > or the Context::Current() function instead.

Member Function Documentation

Bitfield< BufferMapAccess > oglplus::BoundObjOps< tag::Buffer >::Access ( void  ) const

Wrapper for Buffer::Access()

See Also
Buffer::Access()

References oglplus::Access.

template<typename GLtype >
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::ClearData ( PixelDataInternalFormat  internal_format,
PixelDataFormat  format,
const GLtype *  data 
) const

Wrapper for Buffer::ClearData()

See Also
Buffer::ClearData()
template<typename GLtype >
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::ClearSubData ( PixelDataInternalFormat  internal_format,
BufferSize  offset,
BufferSize  size,
PixelDataFormat  format,
const GLtype *  data 
) const

Wrapper for Buffer::ClearSubData()

See Also
Buffer::ClearSubData()
template<typename GLtype >
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::Data ( GLsizei  count,
const GLtype *  data,
BufferUsage  usage = BufferUsage::StaticDraw 
) const

Wrapper for Buffer::Data()

See Also
Buffer::Data()
template<typename GLtype , std::size_t Count>
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::Data ( const GLtype(&)  data[Count],
BufferUsage  usage = BufferUsage::StaticDraw 
) const

Wrapper for Buffer::Data()

See Also
Buffer::Data()
template<typename GLtype >
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::Data ( const std::vector< GLtype > &  data,
BufferUsage  usage = BufferUsage::StaticDraw 
) const

Wrapper for Buffer::Data()

See Also
Buffer::Data()
template<typename GLtype , std::size_t N>
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::Data ( const std::vector< Vector< GLtype, N > > &  data,
BufferUsage  usage = BufferUsage::StaticDraw 
) const

Wrapper for Buffer::Data()

See Also
Buffer::Data()
GLint oglplus::BoundObjOps< tag::Buffer >::GetIntParam ( GLenum  query) const

Wrapper for Buffer::GetIntParam()

See Also
Buffer::GetIntParam()
BufferGPUAddress oglplus::BoundObjOps< tag::Buffer >::GPUAddress ( void  ) const

Wrapper for Buffer::GPUAddress()

See Also
Buffer::GPUAddress()
bool oglplus::BoundObjOps< tag::Buffer >::ImmutableStorage ( void  ) const

Wrapper for Buffer::ImmutableStorage()

See Also
Buffer::ImmutableStorage()
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::MakeNonResident ( void  ) const

Wrapper for Buffer::MakeNonResident()

See Also
Buffer::MakeNonResident()
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::MakeResident ( AccessSpecifier  access) const

Wrapper for Buffer::MakeResident()

See Also
Buffer::MakeResident()
bool oglplus::BoundObjOps< tag::Buffer >::Mapped ( void  ) const

Wrapper for Buffer::Mapped()

See Also
Buffer::Mapped()
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::Resize ( BufferSize  size,
BufferUsage  usage = BufferUsage::StaticDraw 
) const

Wrapper for Buffer::Resize()

See Also
Buffer::Resize()
GLsizei oglplus::BoundObjOps< tag::Buffer >::Size ( void  ) const

Wrapper for Buffer::Size()

See Also
Buffer::Size()
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::Storage ( BufferSize  size,
const void *  data,
Bitfield< BufferStorageBit flags 
) const

Wrapper for Buffer::Storage()

See Also
Buffer::Storage()
Bitfield< BufferStorageBit > oglplus::BoundObjOps< tag::Buffer >::StorageFlags ( void  ) const

Wrapper for Buffer::StorageFlags()

See Also
Buffer::StorageFlags()
template<typename GLtype >
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::SubData ( BufferSize  offset,
GLsizei  count,
const GLtype *  data 
) const

Wrapper for Buffer::SubData()

See Also
Buffer::SubData()
template<typename GLtype , std::size_t Count>
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::SubData ( BufferSize  offset,
const GLtype(&)  data[Count] 
) const

Wrapper for Buffer::SubData()

See Also
Buffer::SubData()
template<typename GLtype >
const BoundObjOps& oglplus::BoundObjOps< tag::Buffer >::SubData ( BufferSize  offset,
const std::vector< GLtype > &  data 
) const

Wrapper for Buffer::SubData()

See Also
Buffer::SubData()
BufferUsage oglplus::BoundObjOps< tag::Buffer >::Usage ( void  ) const

Wrapper for Buffer::Usage()

See Also
Buffer::Usage()

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 Mon Sep 22 2014 by Doxygen (version 1.8.6).