MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                            cgSetBufferData(3)



NAME
     cgSetBufferData - resize and completely update a buffer
     object

SYNOPSIS
       #include 

       void cgSetBufferData( CGbuffer buffer,
                             int size,
                             const void * data );


PARAMETERS
     buffer  The buffer which will be updated.

     size    Specifies a new size for the buffer object. Zero for
             size means use the existing size of the buffer as
             the effective size.

     data    Pointer to the data to copy into the buffer. The
             number of bytes to copy is determined by the size
             parameter.

RETURN VALUES
     None.

DESCRIPTION
     cgSetBufferData resizes and completely updates an existing
     buffer object.

     A buffer which has been mapped into an applications address
     space with cgMapBuffer must be unmapped using cgUnmapBuffer
     before it can be updated with cgSetBufferData.

EXAMPLES
     cgSetBufferData( myBuffer, sizeof( myData ), myData );

ERORS
     CGINVALIDBUFERHANDLEROR is generated if buffer is not
     a valid buffer.

     CGBUFERUPDATENOTALOWEDEROR is generated if buffer is
     currently mapped.

HISTORY
     cgSetBufferData was introduced in Cg 2.0.

SEE ALSO
     cgCreateBuffer, cgGLCreateBuffer, cgSetBufferSubData,
     cgMapBuffer, cgUnmapBuffer





Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™