alias_api.AlLayeredShader

class alias_api.AlLayeredShader

Bases: AlObject

Base object for representing shader data

This class encapsulates the basic functionality for checking and setting the name of a shader as well as accessing the textures that a particular shader refers to, and the animation on the shader. Shader objects are accessible through both the AlUniverse class and the objects that reference them (AlSurface and AlFace classes).

A layered shader object may reference shaders. The first_shader() and next_shader() methods are used to access these textures.

first_shader() returns the first shader that the shader object references. next_shader() moves from a given referenced shader to the next shader in order, as related to the layered shader object.

add_shader(self: alias_api.AlLayeredShader, shader: alias_api.AlShader) bool

Add a shader to the layer shader.

copy_wrapper(self: alias_api.AlLayeredShader) alias_api.AlObject

Return an exact duplicate of this AlLayeredShader wrapper.

create(self: alias_api.AlLayeredShader) int

Initialize and allocate space for the AlLayeredShader and add it to the global list of shaders in the Alias Universe.

delete_object(self: alias_api.AlLayeredShader) int

Delete the Alias shader object and return the status code of the delete operation.

get_first_shader(self: alias_api.AlLayeredShader) alias_api.AlShader

Returns the first shader.

get_next_shader(self: alias_api.AlLayeredShader, cur_shader: alias_api.AlShader) alias_api.AlShader

get the next shader.

is_used(self: alias_api.AlLayeredShader) int

Returns True if the AlLayeredShader object is assigned to a gemoetry node, else False.

property name

Get or set the AlLayeredShader name.

remove_shader(self: alias_api.AlLayeredShader, shader: alias_api.AlShader) bool

Remove a shader to the layer shader.

type(self: alias_api.AlLayeredShader) alias_api.AlObjectType

Return the AlLayeredShader type identifier.