Path Tracer
Classes | Functions
Material.h File Reference

Defines the Material class and some functions around it. More...

#include "Ray.h"
Include dependency graph for Material.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Material
 Abstrat class that models a material. More...
 

Functions

std::ostream & operator<< (std::ostream &stream, const Material &material)
 Ostream operator. More...
 

Detailed Description

Defines the Material class and some functions around it.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const Material material 
)

Ostream operator.

Calls the Material::getDescription() method.

Parameters
streamThe ostream before.
materialThe material that will be added to the stream.
Returns
The stream with the material added.
See also
Material::getDescription()