|
@@ -55,7 +55,7 @@ inline aiReturn aiMaterial::GetTexture( aiTextureType type,
|
|
|
C_STRUCT aiString* path,
|
|
|
aiTextureMapping* mapping /*= NULL*/,
|
|
|
unsigned int* uvindex /*= NULL*/,
|
|
|
- float* blend /*= NULL*/,
|
|
|
+ ai_real* blend /*= NULL*/,
|
|
|
aiTextureOp* op /*= NULL*/,
|
|
|
aiTextureMapMode* mapmode /*= NULL*/) const
|
|
|
{
|
|
@@ -123,7 +123,7 @@ inline aiReturn aiMaterial::Get(const char* pKey,unsigned int type,
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
inline aiReturn aiMaterial::Get(const char* pKey,unsigned int type,
|
|
|
- unsigned int idx,float* pOut,
|
|
|
+ unsigned int idx,ai_real* pOut,
|
|
|
unsigned int* pMax) const
|
|
|
{
|
|
|
return ::aiGetMaterialFloatArray(this,pKey,type,idx,pOut,pMax);
|
|
@@ -137,7 +137,7 @@ inline aiReturn aiMaterial::Get(const char* pKey,unsigned int type,
|
|
|
}
|
|
|
// ---------------------------------------------------------------------------
|
|
|
inline aiReturn aiMaterial::Get(const char* pKey,unsigned int type,
|
|
|
- unsigned int idx,float& pOut) const
|
|
|
+ unsigned int idx,ai_real& pOut) const
|
|
|
{
|
|
|
return aiGetMaterialFloat(this,pKey,type,idx,&pOut);
|
|
|
}
|
|
@@ -209,7 +209,7 @@ inline aiReturn aiMaterial::AddProperty(const double* pInput,
|
|
|
unsigned int index)
|
|
|
{
|
|
|
return AddBinaryProperty((const void*)pInput,
|
|
|
- pNumValues * sizeof(float),
|
|
|
+ pNumValues * sizeof(double),
|
|
|
pKey,type,index,aiPTI_Double);
|
|
|
}
|
|
|
|
|
@@ -222,7 +222,7 @@ inline aiReturn aiMaterial::AddProperty(const aiUVTransform* pInput,
|
|
|
{
|
|
|
return AddBinaryProperty((const void*)pInput,
|
|
|
pNumValues * sizeof(aiUVTransform),
|
|
|
- pKey,type,index,aiPTI_Float);
|
|
|
+ pKey,type,index,aiPTI_Float); //TODO could be Double ...
|
|
|
}
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
@@ -234,7 +234,7 @@ inline aiReturn aiMaterial::AddProperty(const aiColor4D* pInput,
|
|
|
{
|
|
|
return AddBinaryProperty((const void*)pInput,
|
|
|
pNumValues * sizeof(aiColor4D),
|
|
|
- pKey,type,index,aiPTI_Float);
|
|
|
+ pKey,type,index,aiPTI_Float); //TODO could be Double ...
|
|
|
}
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
@@ -246,7 +246,7 @@ inline aiReturn aiMaterial::AddProperty(const aiColor3D* pInput,
|
|
|
{
|
|
|
return AddBinaryProperty((const void*)pInput,
|
|
|
pNumValues * sizeof(aiColor3D),
|
|
|
- pKey,type,index,aiPTI_Float);
|
|
|
+ pKey,type,index,aiPTI_Float); //TODO could be Double ...
|
|
|
}
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
@@ -258,7 +258,7 @@ inline aiReturn aiMaterial::AddProperty(const aiVector3D* pInput,
|
|
|
{
|
|
|
return AddBinaryProperty((const void*)pInput,
|
|
|
pNumValues * sizeof(aiVector3D),
|
|
|
- pKey,type,index,aiPTI_Float);
|
|
|
+ pKey,type,index,aiPTI_Float); //TODO could be Double ...
|
|
|
}
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
@@ -293,6 +293,19 @@ inline aiReturn aiMaterial::AddProperty<float>(const float* pInput,
|
|
|
pKey,type,index,aiPTI_Float);
|
|
|
}
|
|
|
|
|
|
+// ---------------------------------------------------------------------------
|
|
|
+template<>
|
|
|
+inline aiReturn aiMaterial::AddProperty<double>(const double* pInput,
|
|
|
+ const unsigned int pNumValues,
|
|
|
+ const char* pKey,
|
|
|
+ unsigned int type,
|
|
|
+ unsigned int index)
|
|
|
+{
|
|
|
+ return AddBinaryProperty((const void*)pInput,
|
|
|
+ pNumValues * sizeof(double),
|
|
|
+ pKey,type,index,aiPTI_Double);
|
|
|
+}
|
|
|
+
|
|
|
// ---------------------------------------------------------------------------
|
|
|
template<>
|
|
|
inline aiReturn aiMaterial::AddProperty<aiUVTransform>(const aiUVTransform* pInput,
|