Functions | |
CLcolour * | clCopyColour (CLcolour *dest, const CLcolour *src) |
CLvertex * | clCopyVertex (CLvertex *dest, const CLvertex *src) |
CLnormal * | clCopyNormal (CLnormal *dest, const CLnormal *src) |
CLtexcoord * | clCopyTexCoord (CLtexcoord *dest, const CLtexcoord *src) |
CLedgeflag * | clCopyEdgeFlag (CLedgeflag *dest, const CLedgeflag *src) |
CLmatrix * | clCopyMatrix (CLmatrix *dest, const CLmatrix *src) |
CLimage * | clCopyImage (CLimage *dest, const CLimage *src) |
CLlight * | clCopyLight (CLlight *dest, const CLlight *src) |
CLmaterial * | clCopyMaterial (CLmaterial *dest, const CLmaterial *src) |
CLtexture * | clCopyTexture (CLtexture *dest, const CLtexture *src) |
CLprimitiveset * | clCopyPrimitiveSet (CLprimitiveset *dest, const CLprimitiveset *src) |
CLmesh * | clCopyMesh (CLmesh *dest, const CLmesh *src) |
CLcontext * | clCopyContext (CLcontext *dest, const CLcontext *src) |
CLmodel * | clCopyModel (CLmodel *dest, const CLmodel *src) |
CL[name]* clCopy[Name](CL[name]* dest, const CL[name]* src)
"deep" copy CL structs. These functions are analogous to the standard "memcpy" function. Unlike the memcpy function, the size of the structs to copy is known. Thus the function does not accept the number of bytes to copy as an argument. Also, it returns a pointer to the dest as a CL[name]* rather than a void* since the type is known.
|
Definition at line 6 of file clcopy.c. References CL_MEMCPY. Referenced by clCopyMesh(). |
|
Definition at line 200 of file clcopy.c. References CL_MALLOC, clClearContext(), clCopyMaterial(), clNewContext(), clNewMaterial(), CLcontext::materials, and CLcontext::num_materials. |
|
Definition at line 60 of file clcopy.c. References clClearLight(), and CLlight::display_list. |
|
Definition at line 79 of file clcopy.c. References clClearMaterial(), and CLmaterial::display_list. Referenced by clCopyContext(). |
|
Definition at line 137 of file clcopy.c. References CL_MALLOC, CL_MEMCPY, clClearMesh(), clCopyColour(), clCopyPrimitiveSet(), clNewColour(), clNewPrimitiveSet(), CLmesh::colour, CLmesh::colours, CLmesh::edgeflags, CLmesh::normals, CLmesh::num_primitivesets, CLmesh::num_vertices, CLmesh::primitivesets, CLmesh::texcoords, and CLmesh::vertices. Referenced by clCopyModel(). |
|
Definition at line 98 of file clcopy.c. References clClearTexture(), clCopyImage(), CLtexture::image, and CLtexture::texture_object. |