Untyped mapping of the buffer to the client address space.  
 More...
#include </home/chochlik/devel/oglplus/include/oglplus/dsa/buffer_map.hpp>
Inherits oglplus::DSABufferRawMap.
|  | 
|  | DSABufferTypedMap (BufferName buffer, BufferTypedSize< Type > offset, BufferTypedSize< Type > size, Bitfield< BufferMapAccess > access) | 
|  | Maps a range of the buffer.  More... 
 | 
|  | 
|  | DSABufferTypedMap (BufferName buffer, Bitfield< BufferMapAccess > access) | 
|  | Maps the whole buffer.  More... 
 | 
|  | 
|  | DSABufferTypedMap (DSABufferTypedMap &&temp) | 
|  | Move construction is enabled. 
 | 
|  | 
| GLsizeiptr | Count (void) const | 
|  | Returns the count of elements of Type in the mapped buffer. 
 | 
|  | 
| const Type * | Data (void) const | 
|  | Returns a const pointer to the mapped data. 
 | 
|  | 
| Type * | Data (void) | 
|  | Returns a pointer to the mapped data. 
 | 
|  | 
| const Type & | At (GLuint index) const | 
|  | Returns a const reference to the element at the specified index. 
 | 
|  | 
| Type & | At (GLuint index) | 
|  | Returns a reference to the element at the specified index. 
 | 
|  | 
| void | Unmap (void) | 
|  | Unmaps the buffer from client address space.  More... 
 | 
|  | 
| bool | Mapped (void) const | 
|  | Returns true if the buffer is mapped. 
 | 
|  | 
| GLsizeiptr | Size (void) const | 
|  | Returns the size (in bytes) of the mapped buffer. 
 | 
|  | 
| const GLvoid * | RawData (void) const | 
|  | Returns a const pointer to the mapped data.  More... 
 | 
|  | 
| GLvoid * | RawData (void) | 
|  | Returns a pointer to the mapped data.  More... 
 | 
|  | 
| void | FlushRange (BufferSize offset, BufferSize length) | 
|  | Indicate modifications to a mapped range.  More... 
 | 
|  | 
template<typename Type>
class oglplus::DSABufferTypedMap< Type >
Untyped mapping of the buffer to the client address space. 
Maps a range of the buffer. 
- Parameters
- 
  
    | target | use the buffer bound to the target specified |  | offset | map offset in units of Type |  | size | map size in units of Type |  | access | the access specifier for the buffer mapping |  
 
- Exceptions
- 
  
  
 
 
Maps the whole buffer. 
- Parameters
- 
  
    | target | use the buffer bound to the target specified |  | access | the access specifier for the buffer mapping |  
 
This class is non-copyable.
- Exceptions
- 
  
  
 
 
  
  | 
        
          | const GLvoid* oglplus::DSABufferRawMap::RawData | ( | void |  | ) | const |  | inherited | 
 
Returns a const pointer to the mapped data. 
- Precondition
- Mapped() 
 
 
  
  | 
        
          | GLvoid* oglplus::DSABufferRawMap::RawData | ( | void |  | ) |  |  | inherited | 
 
Returns a pointer to the mapped data. 
- Precondition
- Mapped() 
 
 
  
  | 
        
          | void oglplus::DSABufferRawMap::Unmap | ( | void |  | ) |  |  | inherited | 
 
Unmaps the buffer from client address space. 
- Related OpenGL symbols:
- glUnmapNamedBuffer
- Exceptions
- 
  
  
 
 
The documentation for this class was generated from the following file: