Castle Game Engine: X3DNodes: Class TMFNodeShaders

# Class TMFNodeShaders
Description | Hierarchy | Fields | Methods | Properties
## Unit X3DNodes ## Declaration `type TMFNodeShaders = class(TMFNode)` ## Description no description available, 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 TPersistent TNonRefCountedInterfacedPersistent TX3DFileItem TX3DFieldOrEvent TX3DField TX3DMultField TMFNode TMFNodeShaders ## Overview ### Methods
| `class function ExposedEventsFieldClass: TX3DFieldClass; override;`
| `function GLSLShader(Index: Integer): TComposedShaderNode;`
## Description ### Methods
| `class function ExposedEventsFieldClass: TX3DFieldClass; override;`
| `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.13.0 on 2015-06-15 04:43:14