Пример #1
0
 /// <summary>
 /// Maps a region/range on a named buffer.
 /// </summary>
 /// <param name="BufferID">id of buffer to map.</param>
 /// <param name="target">Target of buffer to map.</param>
 /// <param name="Offset">Offset in bytes from start of buffer to start of range.</param>
 /// <param name="Length">Length in bytes from start of range to end of range.</param>
 /// <param name="access">Desired access for mapping.</param>
 /// <returns></returns>
 public static IntPtr MapNamedBufferRangeEXT(uint BufferID, BufferTarget target, long Offset, long Length, MapBufferRangeAccessFlags access)
 {
     return Delegates.glMapNamedBufferRangeEXT(BufferID, target, (IntPtr)Offset, (IntPtr)Length, access);
 }
Пример #2
0
 /// <summary>
 /// Maps a region/range on a named buffer.
 /// </summary>
 /// <param name="BufferID">id of buffer to map.</param>
 /// <param name="target">Target of buffer to map.</param>
 /// <param name="Offset">Offset in bytes from start of buffer to start of range.</param>
 /// <param name="Length">Length in bytes from start of range to end of range.</param>
 /// <param name="access">Desired access for mapping.</param>
 /// <returns></returns>
 public static IntPtr MapNamedBufferRangeEXT(uint BufferID, BufferTarget target, long Offset, long Length, MapBufferRangeAccessFlags access)
 {
     return(Delegates.glMapNamedBufferRangeEXT(BufferID, target, (IntPtr)Offset, (IntPtr)Length, access));
 }
Пример #3
0
 /// <summary>
 /// Maps a region/range of a buffer.
 /// </summary>
 /// <param name="target">Buffertarget containing buffer to map.</param>
 /// <param name="Offset">Offset in bytes from start of buffer to start of region/range to map.</param>
 /// <param name="Length">Length in bytes from start of region/range.</param>
 /// <param name="access">Desired access pattern of this mapping.</param>
 /// <returns></returns>
 public static IntPtr MapBufferRange(BufferTarget target, long Offset, long Length, MapBufferRangeAccessFlags access)
 {
     return Delegates.glMapBufferRange(target, (IntPtr)Offset, (IntPtr)Length, access);
 }