fastest 3D software for linux

Linux 3D
interactive ray-tracing

Index

 E3dMaterial_Print
 E3dMaterial_AppendTexture
 E3dMaterial_InsertTexture
 E3dMaterial_AddTexture
 E3dMaterial_RemoveTexture
 E3dMaterial_SetShader
 E3dMaterial_ConvertShader


E3dMaterial_Print

Print out the attributes of a Material

Syntax
void E3dMaterial_Print(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.

E3dMaterial_AppendTexture

Append a Texture to a Material

Syntax
void E3dMaterial_AppendTexture(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.

E3dMaterial_InsertTexture

Append a Texture to a Material

Syntax
void E3dMaterial_InsertTexture(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.

E3dMaterial_AddTexture

Add a Texture to a Material

Syntax
E3d2DTexture* E3dMaterial_AddTexture(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

E3dMaterial_RemoveTexture

Remove a Texture from a Material

Syntax
void E3dMaterial_RemoveTexture(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.

E3dMaterial_SetShader

Set a Material's Shader

Syntax
void E3dMaterial_SetShader(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

E3dMaterial_ConvertShader

Set a Material's Shader

Syntax
void E3dMaterial_ConvertShader(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