Merge 4854:4872 from trunk:
- Ignore some more files (*.d, *.layout, *.depend) - Fixed issue with missing separate blending entry in OpenGL query feature. - ISceneNode::deserializeAttributes uses now old values for parameters which are not in the attributes git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@4928 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
61581047fa
commit
ee30e8b369
|
@ -7,6 +7,7 @@ Changes in ogl-es (not yet released - will be merged with trunk at some point)
|
|||
--------------------------
|
||||
Changes in 1.9 (not yet released)
|
||||
|
||||
- ISceneNode::deserializeAttributes uses now old values for parameters which are not in the attributes (thx @entity for noticing).
|
||||
- Add interface for easier access to scrollbars for IGUIListBox, IGUITreeView and IGUITable
|
||||
- Fix serializing colors as strings. Was previously mixing up strings with number-arrays and hex color values. Now using hex color values always, but also fixed the the handling when it get's number-array strings.
|
||||
- Fix IAttributes::setAttribute implementation for textures (did do nothing before).
|
||||
|
|
|
@ -730,23 +730,26 @@ namespace scene
|
|||
{
|
||||
if (!in)
|
||||
return;
|
||||
Name = in->getAttributeAsString("Name");
|
||||
ID = in->getAttributeAsInt("Id");
|
||||
Name = in->getAttributeAsString("Name", Name);
|
||||
ID = in->getAttributeAsInt("Id", ID);
|
||||
|
||||
setPosition(in->getAttributeAsVector3d("Position"));
|
||||
setRotation(in->getAttributeAsVector3d("Rotation"));
|
||||
setScale(in->getAttributeAsVector3d("Scale"));
|
||||
setPosition(in->getAttributeAsVector3d("Position", RelativeTranslation));
|
||||
setRotation(in->getAttributeAsVector3d("Rotation", RelativeRotation));
|
||||
setScale(in->getAttributeAsVector3d("Scale", RelativeRotation));
|
||||
|
||||
IsVisible = in->getAttributeAsBool("Visible");
|
||||
s32 tmpState = in->getAttributeAsEnumeration("AutomaticCulling",
|
||||
scene::AutomaticCullingNames);
|
||||
if (tmpState != -1)
|
||||
AutomaticCullingState = (u32)tmpState;
|
||||
else
|
||||
AutomaticCullingState = in->getAttributeAsInt("AutomaticCulling");
|
||||
IsVisible = in->getAttributeAsBool("Visible", IsVisible);
|
||||
if (in->existsAttribute("AutomaticCulling"))
|
||||
{
|
||||
s32 tmpState = in->getAttributeAsEnumeration("AutomaticCulling",
|
||||
scene::AutomaticCullingNames);
|
||||
if (tmpState != -1)
|
||||
AutomaticCullingState = (u32)tmpState;
|
||||
else
|
||||
AutomaticCullingState = in->getAttributeAsInt("AutomaticCulling");
|
||||
}
|
||||
|
||||
DebugDataVisible = in->getAttributeAsInt("DebugDataVisible");
|
||||
IsDebugObject = in->getAttributeAsBool("IsDebugObject");
|
||||
DebugDataVisible = in->getAttributeAsInt("DebugDataVisible", DebugDataVisible);
|
||||
IsDebugObject = in->getAttributeAsBool("IsDebugObject", IsDebugObject);
|
||||
|
||||
updateAbsolutePosition();
|
||||
}
|
||||
|
|
|
@ -802,19 +802,11 @@ bool COpenGLExtensionHandler::queryFeature(E_VIDEO_DRIVER_FEATURE feature) const
|
|||
return (Version>=140) || FeatureAvailable[IRR_EXT_blend_minmax] ||
|
||||
FeatureAvailable[IRR_EXT_blend_subtract] || FeatureAvailable[IRR_EXT_blend_logic_op];
|
||||
case EVDF_BLEND_SEPARATE:
|
||||
return (Version >= 140) || FeatureAvailable[IRR_EXT_blend_func_separate];
|
||||
return (Version>=140) || FeatureAvailable[IRR_EXT_blend_func_separate];
|
||||
case EVDF_TEXTURE_MATRIX:
|
||||
return true;
|
||||
case EVDF_TEXTURE_COMPRESSED_DXT:
|
||||
return FeatureAvailable[IRR_EXT_texture_compression_s3tc];
|
||||
case EVDF_TEXTURE_COMPRESSED_PVRTC: // Currently disabled, but in future maybe special extension will be available.
|
||||
case EVDF_TEXTURE_COMPRESSED_PVRTC2:
|
||||
case EVDF_TEXTURE_COMPRESSED_ETC1:
|
||||
return false;
|
||||
case EVDF_TEXTURE_COMPRESSED_ETC2:
|
||||
return FeatureAvailable[IRR_ARB_ES3_compatibility];
|
||||
case EVDF_TEXTURE_CUBE_MAP:
|
||||
return FeatureAvailable[IRR_ARB_texture_cube_map];
|
||||
default:
|
||||
return false;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue