fastest 3D software for linux

Linux 3D
interactive ray-tracing

Index

 E3d_MaterialPrint
 E3d_MaterialAppendTexture
 E3d_MaterialInsertTexture
 E3d_MaterialAddTexture
 E3d_MaterialRemoveTexture
 E3d_MaterialSetShader
 E3d_MaterialConvertShader


E3d_MaterialPrint

Print out the attributes of a Material

Syntax
void E3d_MaterialPrint(E3dMaterial* PMaterial, const int PIndent)

Argument
E3dMaterial* PMaterial The Material to dump out const int PIndent Indent each line by this many spaces
Description
Prints the attributes of the given Material to the standard output.

Return value
None.

E3d_MaterialAppendTexture

Append a Texture to a Material

Syntax
void E3d_MaterialAppendTexture(E3dMaterial* PMaterial, E3d2DTexture* PTexture)

Arguments
E3dMaterial* PMaterial Pointer to the Material E3d2DTexture* PTexture Pointer to the Texture
Description
Appends the given Texture to the given Material's dynamically allocated Textures array.

Return value
None.

E3d_MaterialInsertTexture

Append a Texture to a Material

Syntax
void E3d_MaterialInsertTexture(E3dMaterial* PMaterial, E3d2DTexture* PTexture, const EIndex PWhere)

Arguments
E3dMaterial* PMaterial Pointer to the Material E3d2DTexture* PTexture Pointer to the Texture const EIndex PWhere Position in the array
Description
Insert the given Texture to the given Material's Textures array, before the index LWhere.

Return value
None.

E3d_MaterialAddTexture

Add a Texture to a Material

Syntax
E3d2DTexture* E3d_MaterialAddTexture(E3dMaterial* PMaterial)

Arguments
E3dMaterial* PMaterial Pointer to the Material
Description
Creates a new Texture and adds it to the given Material.

Return value
Pointer to the new Texture, or NULL in case of an error

E3d_MaterialRemoveTexture

Remove a Texture from a Material

Syntax
void E3d_MaterialRemoveTexture(E3dMaterial* PMaterial, E3d2DTexture* PTexture)

Arguments
E3dMaterial* PMaterial Pointer to the Material E3d2DTexture* PTexture Pointer to the Texture
Description
Removes the given Texture from the given Material's dynamically allocated Textures array.

Return value
None.

E3d_MaterialSetShader

Set a Material's Shader

Syntax
void E3d_MaterialSetShader(E3dMaterial* PMaterial, E3dShader* PShader)

Argument
E3dMaterial* PMaterial The E3dMaterial to be initialized E3dShader* PShader Shader to be added to the Material
Description
Sets the Shader on PMaterial. If PMaterial already had a Shader, that Shader will be freed.

Return value
None.

See also
E3d_MaterialNew, E_Delete

E3d_MaterialConvertShader

Set a Material's Shader

Syntax
void E3d_MaterialConvertShader(E3dMaterial* PMaterial, E3dShader* PShader)

Argument
E3dMaterial* PMaterial The E3dMaterial to be initialized E3dShader* PShader Shader to be added to the Material
Description
Sets the Shader on PMaterial. If PMaterial already had a Shader, this funcion will attempt to convert that Shader to the Class of the new Shader and then free the old Shader.

Return value
None.

See also
E3d_MaterialNew, E_Delete
© 1992-2017 By Gabor Nagy