Class TMFNodeShaders

Unit

Declaration

type TMFNodeShaders = class(TMFNode)

Description

No description available, ancestor TMFNode description follows

VRML/X3D field holding a list of nodes.

Just like SFNode, it's defined in this unit, as it uses TX3DNode. Note that items of MFNode cannot be nil (i.e. VRML/X3D doesn't allow to use NULL inside MFNode), contrary to SFNode.

Note that TMFNode implementation doesn't use TX3DSimpleMultField. One reason is that we don't want to parse MFNode items by SFNode parser, because MFNode doesn't allow NULL items. (In the past, another argument was that we want to use TX3DNodeList and it wasn't compatible with TX3DSimpleMultField. But now TX3DNodeList descends from TFPSList, so it isn't a problem.)

Just like for TSFNode: Note that we store AllowedChildren list, which is a list of classes allowed as Items. But this is used only to produce warnings for a user. You should never assert that every item actually is one the requested classes.

Hierarchy

Overview

Methods

Public function GLSLShader(Index: Integer): TComposedShaderNode;

Description

Methods

Public function GLSLShader(Index: Integer): TComposedShaderNode;

Returns Items[Index], if it's a shader node suitable for GLSL shader. Otherwise returns Nil. Checks the class of Items[Index] and it's language field.


Generated by PasDoc 0.15.0.