Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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.
Color ambient
 Ambient color.
Color specular
 Specular color.

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.


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