librtl

rtl_groupmem Class Reference

A renderable object which is a member of a group. More...

#include <groupobject.h>

Inherits rtl_subobject.

Inherited by rtl_soft::rtl_softvoxel and rtl_triangle.

List of all members.

Public Members

Protected Members


Detailed Description

A renderable object which is a member of a group.

Group membership naturally entails common properties, this class holds an index which points to a material in a rtl_groupobj's material table.


Member Function Documentation

jInt rtl_groupmem::materialindex() const

Returns the index that has been set for this group member.

void rtl_groupmem::materialindex( jInt mi )

Sets the index for this group member.

virtual inline rtl_material* rtl_groupmem::material() [virtual]

Returns the material for this group member. Returns the default value from the base class if the index has not been set.

Reimplemented from rtl_subobject.

Reimplemented in rtl_triangle.

inline const rtl_object* rtl_groupmem::group() const

Returns the group of which this sub-object is a member.

Reimplemented from rtl_subobject.

rtl_groupmem::rtl_groupmem() [protected]


Member Data Documentation

jInt rtl_groupmem::m_idx [protected]

The index into the containing rtl_groupobj's material table.

rtl_groupobj* rtl_groupmem::mobj [protected]

The containing massed object.


The documentation for this class was generated from the following file:
JSP / librtl v0.2 mtigges@cpsc.ucalgary.ca