Colobot
Public Member Functions | Public Attributes | List of all members
Gfx::Material Struct Reference

Material of a surface. More...

#include <material.h>

Public Member Functions

bool operator== (const Material &mat) const
 
bool operator!= (const Material &mat) const
 

Public Attributes

Color diffuse
 Diffuse color. More...
 
Color ambient
 Ambient color. More...
 
Color specular
 Specular color. More...
 

Detailed Description

Material of a surface.

This structure was created as analog to DirectX's D3DMATERIAL.

It contains values of 3 material colors: diffuse, ambient and specular. In D3DMATERIAL there are other fields, but they are not used by the graphics engine.

Member Data Documentation

Color Gfx::Material::diffuse

Diffuse color.

Color Gfx::Material::ambient

Ambient color.

Color Gfx::Material::specular

Specular color.


The documentation for this struct was generated from the following file: