From: <jo...@us...> - 2004-09-30 15:42:52
|
Update of /cvsroot/crystal/CS/include/ivideo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23443/include/ivideo Modified Files: graph3d.h Log Message: - Jorrit fixed the API of iGraphics3D->CreateInterleavedRenderBuffers. It would accept a csRefArray and then modify it. This is not legal in a plugin context. Changed it by accepting a normal array which should be allocated by the caller. This is also more efficient as there will be less growing array operations needed. Index: graph3d.h =================================================================== RCS file: /cvsroot/crystal/CS/include/ivideo/graph3d.h,v retrieving revision 1.91 retrieving revision 1.92 diff -u -d -r1.91 -r1.92 --- graph3d.h 30 Sep 2004 07:40:01 -0000 1.91 +++ graph3d.h 30 Sep 2004 15:42:07 -0000 1.92 @@ -1021,11 +1021,13 @@ /** * Create an interleaved renderbuffer (You would use this then set stride to * determine offset and stride of the interleaved buffer - * \param size Size of the buffer in bytes - * \param count Number of renderbuffers you want + * \param size size of the buffer in bytes + * \param count number of render buffers you want + * \param buffers should be an array of render buffer references that can hold + * at least 'count' render buffers. */ virtual void CreateInterleavedRenderBuffers (size_t size, - csRenderBufferType type, int count, csRefArray<iRenderBuffer>& buffers) = 0; + csRenderBufferType type, int count, csRef<iRenderBuffer>* buffers) = 0; /** * Activate or deactivate all given buffers depending on the value of |