|
|
|
Represents a single material in the material palette.
More...
#include "fltMaterial.h"
List of all members.
Public Types |
| enum | Flags { F_materials_used = 0x80000000
} |
Public Member Functions |
|
| FltMaterial (FltHeader *header) |
| bool | build_14_record (Datagram &datagram) |
| | Fills up the current record on the FltRecordWriter with data for this record, formatted as a part of a v14 material palette.
|
| bool | extract_14_record (int index, DatagramIterator &di) |
| | Fills in the information in this record based on the information from the current position within the v14 material palette.
|
|
virtual TypeHandle | force_init_type () |
|
virtual TypeHandle | get_type () const |
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
| static void | init_type () |
| | This function is declared non-inline to work around a compiler bug in g++ 2.96.
|
Public Attributes |
|
float | _alpha |
|
RGBColorf | _ambient |
|
RGBColorf | _diffuse |
|
RGBColorf | _emissive |
|
unsigned int | _flags |
|
int | _material_index |
|
string | _material_name |
|
float | _shininess |
|
RGBColorf | _specular |
Protected Member Functions |
| virtual bool | build_record (FltRecordWriter &writer) const |
| | Fills up the current record on the FltRecordWriter with data for this record, but does not advance the writer.
|
| virtual bool | extract_record (FltRecordReader &reader) |
| | Fills in the information in this record based on the information given in the indicated datagram, whose opcode has already been read.
|
Friends |
|
class | FltHeader |
Detailed Description
Represents a single material in the material palette.
Definition at line 30 of file fltMaterial.h.
Member Function Documentation
| bool FltMaterial::build_14_record |
( |
Datagram & |
datagram | ) |
|
| bool FltMaterial::build_record |
( |
FltRecordWriter & |
writer | ) |
const [protected, virtual] |
| bool FltMaterial::extract_record |
( |
FltRecordReader & |
reader | ) |
[protected, virtual] |
| static void FltMaterial::init_type |
( |
| ) |
[inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from FltRecord.
Definition at line 64 of file fltMaterial.h.
The documentation for this class was generated from the following files:
| | |