Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::io::obj::MTLMaterial Struct Reference

#include <obj_export_mtl.hh>

Public Member Functions

 MTLMaterial ()
 
const tex_map_XXtex_map_of_type (const eMTLSyntaxElement key) const
 
tex_map_XXtex_map_of_type (const eMTLSyntaxElement key)
 

Public Attributes

std::string name
 
float Ns {-1.0f}
 
float3 Ka {-1.0f}
 
float3 Kd {-1.0f}
 
float3 Ks {-1.0f}
 
float3 Ke {-1.0f}
 
float Ni {-1.0f}
 
float d {-1.0f}
 
int illum {-1}
 
Map< const eMTLSyntaxElement, tex_map_XXtexture_maps
 
float map_Bump_strength {-1.0f}
 

Detailed Description

Container suited for storing Material data for/from a .MTL file.

Definition at line 50 of file obj_export_mtl.hh.

Constructor & Destructor Documentation

◆ MTLMaterial()

blender::io::obj::MTLMaterial::MTLMaterial ( )
inline

Member Function Documentation

◆ tex_map_of_type() [1/2]

tex_map_XX& blender::io::obj::MTLMaterial::tex_map_of_type ( const eMTLSyntaxElement  key)
inline

Definition at line 67 of file obj_export_mtl.hh.

References BLI_assert, and texture_maps.

◆ tex_map_of_type() [2/2]

const tex_map_XX& blender::io::obj::MTLMaterial::tex_map_of_type ( const eMTLSyntaxElement  key) const
inline

Definition at line 62 of file obj_export_mtl.hh.

References BLI_assert, and texture_maps.

Referenced by blender::io::obj::TEST_F().

Member Data Documentation

◆ d

float blender::io::obj::MTLMaterial::d {-1.0f}

◆ illum

int blender::io::obj::MTLMaterial::illum {-1}

◆ Ka

float3 blender::io::obj::MTLMaterial::Ka {-1.0f}

◆ Kd

float3 blender::io::obj::MTLMaterial::Kd {-1.0f}

◆ Ke

float3 blender::io::obj::MTLMaterial::Ke {-1.0f}

◆ Ks

float3 blender::io::obj::MTLMaterial::Ks {-1.0f}

◆ map_Bump_strength

float blender::io::obj::MTLMaterial::map_Bump_strength {-1.0f}

◆ name

std::string blender::io::obj::MTLMaterial::name

◆ Ni

float blender::io::obj::MTLMaterial::Ni {-1.0f}

◆ Ns

float blender::io::obj::MTLMaterial::Ns {-1.0f}

◆ texture_maps

Map<const eMTLSyntaxElement, tex_map_XX> blender::io::obj::MTLMaterial::texture_maps

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