The IColored property interface. More...

#include "murl_graph_i_colored.h"

Inheritance diagram for Murl::Graph::IColored:

Public Member Functions

virtual Bool SetColor (IEnums::LightingComponent component, const Color &color)=0
 Set the color value of a given lighting component. More...
 
virtual const ColorGetColor (IEnums::LightingComponent component) const =0
 Get the color value set for a given lighting component. More...
 

Detailed Description

The IColored property interface.

This interface provides a generic way to specify individual colors for any of the possible components found in a regular lighting equation, in particular ambient, diffuse, specular and emissive components.

Animation controllers may call the SetColor() method when color keys are present in a given Resource::IAnimation.

Member Function Documentation

◆ SetColor()

virtual Bool Murl::Graph::IColored::SetColor ( IEnums::LightingComponent  component,
const Color color 
)
pure virtual

Set the color value of a given lighting component.

Parameters
componentThe lighting component.
colorThe color to set.
Returns
true if successful.

◆ GetColor()

virtual const Color& Murl::Graph::IColored::GetColor ( IEnums::LightingComponent  component) const
pure virtual

Get the color value set for a given lighting component.

Parameters
componentThe lighting component.
Returns
The current color.

The documentation for this interface was generated from the following file:
  • murl_graph_i_colored.h


Copyright © 2011-2018 Spraylight GmbH.