![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
![]()
|
IndexE3d_PrintMaterial E3d_MaterialAppend2DTexture E3d_MaterialInsert2DTexture E3d_MaterialAdd2DTexture E3d_MaterialRemove2DTexture E3d_MaterialDefault E3d_MaterialAllocate E3d_MaterialCopyContents E3d_MaterialFree E3d_PrintMaterialPrint out the attributes of a MaterialSyntax void E3d_PrintMaterial(E3dMaterial* LMaterial)Argument E3dMaterial* LMaterial The Material to dump outDescription Prints the attributes of the given Material to the standard output. Return value None. E3d_MaterialAppend2DTextureAppend a 2DTexture to a MaterialSyntax void E3d_MaterialAppend2DTexture(E3dMaterial* LMaterial, E3d2DTexture* L2DTexture)Arguments E3dMaterial* LMaterial Pointer to the Material E3d2DTexture* L2DTexture Pointer to the 2DTextureDescription Appends the given 2DTexture to the given Material's dynamically allocated Textures2D array. Return value None. E3d_MaterialInsert2DTextureAppend a 2DTexture to a MaterialSyntax void E3d_MaterialInsert2DTexture(E3dMaterial* LMaterial, E3d2DTexture* L2DTexture, int LWhere)Arguments E3dMaterial* LMaterial Pointer to the Material E3d2DTexture* L2DTexture Pointer to the 2DTexture int LWhere Position in the arrayDescription Inserts the given 2DTexture to the given Material's dynamically allocated Textures2D array, before the index LWhere. Return value None. E3d_MaterialAdd2DTextureAdd a 2DTexture to a MaterialSyntax E3d2DTexture* E3d_MaterialAdd2DTexture(E3dMaterial* LMaterial)Arguments E3dMaterial* LMaterial Pointer to the MaterialkDescription Creates a new 2DTexture and adds it to the given Material. Return value Pointer to the new 2DTexture, or NULL in case of an error E3d_MaterialRemove2DTextureRemove a 2DTexture from a MaterialSyntax void E3d_MaterialRemove2DTexture(E3dMaterial* LMaterial, E3d2DTexture* L2DTexture)Arguments E3dMaterial* LMaterial Pointer to the Material E3d2DTexture* L2DTexture Pointer to the 2DTextureDescription Removes the given 2DTexture from the given Material's dynamically allocated Textures2D array. Return value None. E3d_MaterialDefaultInitialize a Material to defaultSyntax void E3d_MaterialDefault(E3dMaterial* LMaterial, E3dShaderClass* LShaderClass)Argument E3dMaterial* LMaterial The E3dMaterial to be initializedDescription Prints the attributes of the given Material to the standard output. Return value None. See also E3d_MaterialAllocate, E3d_MaterialFree E3d_MaterialAllocateAllocate memory for a MaterialSyntax E3dMaterial* E3d_MaterialAllocate(E3dShaderClass* LShaderClass)Argument E3dShaderClass* LShaderClass Class of shader for the new MaterialDescription Allocates memory for an E3dMaterial structure and returns the pointer to the allocated memory block, or NULL in case of an error. Return value None. See also E3d_MaterialFree, E3d_MaterialDefault E3d_MaterialCopyContentsCopy contents to a Material into another oneSyntax void E3d_MaterialCopyContents(E3dMaterial* LSrcMaterial, E3dMaterial* LDstMaterial)Arguments E3dMaterial* LSrcMaterial Source Material E3dMaterial* LDstMaterial Destination MaterialDescription Copies fields of LSrcMaterial to LDstMaterial without interfering with reference counting etc. Return value None. See also E3d_MaterialFree, E3d_MaterialDefault E3d_MaterialFreeFree memory associated with a MaterialSyntax void E3d_MaterialFree(E3dMaterial* LMaterial)Argument E3dMaterial* LMaterial Pointer to the Material structure to be freedDescription This function first checks whether the reference count of the Material after decrementing is 0. If not, it means that the Material is still being referenced somewhere, so the function just exits. If the RefCnt is 0 after decrementing, the function will remove the Material from the scene, free its textures and the Material structure itself. Return value None. See also E3d_MaterialAllocate, E3d_MaterialDefault |