Panda3D
|
This class is seperated from the converter file because otherwise it would get too big and needlessly complicated. More...
#include "daeMaterials.h"
Classes | |
struct | DaeBlendSettings |
struct | DaeMaterial |
struct | DaeVertexInputBinding |
Public Member Functions | |
DaeMaterials (const FCDGeometryInstance *geometry_instance) | |
void | add_material_instance (const FCDMaterialInstance *instance) |
Adds a material instance. | |
void | apply_to (const string semantic, const PT(EggPrimitive) to) |
Applies the stuff to the given EggPrimitive. | |
void | apply_to (const string semantic, const PT(EggGroup) to) |
Applies the colorblend stuff to the given EggGroup. | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
const string | get_uvset_name (const string semantic, FUDaeGeometryInput::Semantic input_semantic, int32 input_set) |
Returns the semantic of the uvset with the specified input set, or an empty string if the given material has no input set. | |
Static Public Member Functions | |
static EggTexture::FilterType | convert_filter_type (const FUDaeTextureFilterFunction::FilterFunction orig_type) |
Converts an FCollada filter function to the EggTexture wrap type equivalent. | |
static EggTexture::TextureType | convert_texture_type (const FCDEffectParameterSampler::SamplerType orig_type) |
Converts an FCollada sampler type to the EggTexture texture type equivalent. | |
static EggTexture::WrapMode | convert_wrap_mode (const FUDaeTextureWrapMode::WrapMode orig_mode) |
Converts an FCollada wrap mode to the EggTexture wrap mode equivalent. | |
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. |
This class is seperated from the converter file because otherwise it would get too big and needlessly complicated.
Definition at line 41 of file daeMaterials.h.
void DaeMaterials::add_material_instance | ( | const FCDMaterialInstance * | instance | ) |
Adds a material instance.
Normally automatically done by constructor.
Definition at line 53 of file daeMaterials.cxx.
void DaeMaterials::apply_to | ( | const string | semantic, |
const PT(EggPrimitive) | to | ||
) |
Applies the stuff to the given EggPrimitive.
Definition at line 224 of file daeMaterials.cxx.
References EggPrimitive::add_texture(), EggPrimitive::set_bface_flag(), and EggPrimitive::set_material().
void DaeMaterials::apply_to | ( | const string | semantic, |
const PT(EggGroup) | to | ||
) |
Applies the colorblend stuff to the given EggGroup.
Definition at line 241 of file daeMaterials.cxx.
EggTexture::FilterType DaeMaterials::convert_filter_type | ( | const FUDaeTextureFilterFunction::FilterFunction | orig_type | ) | [static] |
Converts an FCollada filter function to the EggTexture wrap type equivalent.
Definition at line 346 of file daeMaterials.cxx.
EggTexture::TextureType DaeMaterials::convert_texture_type | ( | const FCDEffectParameterSampler::SamplerType | orig_type | ) | [static] |
Converts an FCollada sampler type to the EggTexture texture type equivalent.
Definition at line 295 of file daeMaterials.cxx.
EggTexture::WrapMode DaeMaterials::convert_wrap_mode | ( | const FUDaeTextureWrapMode::WrapMode | orig_mode | ) | [static] |
Converts an FCollada wrap mode to the EggTexture wrap mode equivalent.
Definition at line 318 of file daeMaterials.cxx.
const string DaeMaterials::get_uvset_name | ( | const string | semantic, |
FUDaeGeometryInput::Semantic | input_semantic, | ||
int32 | input_set | ||
) |
Returns the semantic of the uvset with the specified input set, or an empty string if the given material has no input set.
Definition at line 261 of file daeMaterials.cxx.
static void DaeMaterials::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 TypedReferenceCount.
Definition at line 94 of file daeMaterials.h.