KiCad PCB EDA Suite
MODEL_3D::MATERIAL Struct Reference
Inheritance diagram for MODEL_3D::MATERIAL:
SMATERIAL

Public Member Functions

 MATERIAL (const SMATERIAL &aOther)
 
bool IsTransparent () const
 

Public Attributes

unsigned int m_render_idx_buffer_offset = 0
 
unsigned int m_render_idx_count = 0
 
SFVEC3F m_Ambient
 
SFVEC3F m_Diffuse
 Default diffuse color if m_Color is NULL. More...
 
SFVEC3F m_Emissive
 
SFVEC3F m_Specular
 
float m_Shininess
 
float m_Transparency
 1.0 is completely transparent, 0.0 completely opaque More...
 

Detailed Description

Definition at line 134 of file 3d_model.h.

Constructor & Destructor Documentation

◆ MATERIAL()

MODEL_3D::MATERIAL::MATERIAL ( const SMATERIAL aOther)
inline

Definition at line 139 of file 3d_model.h.

139 : SMATERIAL( aOther ) { }

Member Function Documentation

◆ IsTransparent()

bool MODEL_3D::MATERIAL::IsTransparent ( ) const
inline

Definition at line 140 of file 3d_model.h.

140 { return m_Transparency > FLT_EPSILON; }
float m_Transparency
1.0 is completely transparent, 0.0 completely opaque
Definition: c3dmodel.h:44

References SMATERIAL::m_Transparency.

Member Data Documentation

◆ m_Ambient

SFVEC3F SMATERIAL::m_Ambient
inherited

Definition at line 39 of file c3dmodel.h.

Referenced by formatMaterial(), RENDER_3D_RAYTRACE::getModelMaterial(), and OglSetMaterial().

◆ m_Diffuse

SFVEC3F SMATERIAL::m_Diffuse
inherited

Default diffuse color if m_Color is NULL.

Definition at line 40 of file c3dmodel.h.

Referenced by RENDER_3D_RAYTRACE::addModels(), formatMaterial(), RENDER_3D_RAYTRACE::getModelMaterial(), and OglSetMaterial().

◆ m_Emissive

SFVEC3F SMATERIAL::m_Emissive
inherited

Definition at line 41 of file c3dmodel.h.

Referenced by formatMaterial(), RENDER_3D_RAYTRACE::getModelMaterial(), and OglSetMaterial().

◆ m_render_idx_buffer_offset

unsigned int MODEL_3D::MATERIAL::m_render_idx_buffer_offset = 0

Definition at line 136 of file 3d_model.h.

◆ m_render_idx_count

unsigned int MODEL_3D::MATERIAL::m_render_idx_count = 0

Definition at line 137 of file 3d_model.h.

◆ m_Shininess

float SMATERIAL::m_Shininess
inherited

Definition at line 43 of file c3dmodel.h.

Referenced by formatMaterial(), RENDER_3D_RAYTRACE::getModelMaterial(), and OglSetMaterial().

◆ m_Specular

SFVEC3F SMATERIAL::m_Specular
inherited

Definition at line 42 of file c3dmodel.h.

Referenced by formatMaterial(), RENDER_3D_RAYTRACE::getModelMaterial(), and OglSetMaterial().

◆ m_Transparency

float SMATERIAL::m_Transparency
inherited

1.0 is completely transparent, 0.0 completely opaque

Definition at line 44 of file c3dmodel.h.

Referenced by formatMaterial(), RENDER_3D_RAYTRACE::getModelMaterial(), IsTransparent(), and OglSetMaterial().


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