NVIDIA IndeX API nvidia_logo_transpbg.gif Up
nv::index::xac::Material_phong Class Reference

Generic phong material struct. More...

#include <xac_interface_scene_elements_doc.h>

Public Member Functions

 Material_phong (const float3 &color_ambient, const float3 &color_diffuse, const float3 &color_specular, const float spec_coeff, const float mat_opacity=1.0f)
 Constructor using predefined material parameters. More...
 
const float3 & get_ambient () const
 Get the ambient component of the material. More...
 
const float3 & get_diffuse () const
 Get the diffuse component of the material. More...
 
const float3 & get_specular () const
 Get the specular component of the material. More...
 
float get_shininess () const
 Get the shininess parameter of the Phong meterial. More...
 
float get_opacity () const
 Get the opacity value of the material. More...
 

Detailed Description

Generic phong material struct.

Constructor & Destructor Documentation

 Material_phong()

nv::index::xac::Material_phong::Material_phong ( const float3 &  color_ambient,
const float3 &  color_diffuse,
const float3 &  color_specular,
const float  spec_coeff,
const float  mat_opacity = 1.0f 
)
inline

Constructor using predefined material parameters.

Member Function Documentation

 get_ambient()

const float3 & nv::index::xac::Material_phong::get_ambient ( ) const

Get the ambient component of the material.

 get_diffuse()

const float3 & nv::index::xac::Material_phong::get_diffuse ( ) const

Get the diffuse component of the material.

 get_opacity()

float nv::index::xac::Material_phong::get_opacity ( ) const

Get the opacity value of the material.

 get_shininess()

float nv::index::xac::Material_phong::get_shininess ( ) const

Get the shininess parameter of the Phong meterial.

 get_specular()

const float3 & nv::index::xac::Material_phong::get_specular ( ) const

Get the specular component of the material.


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