Castle Game Engine: CastleRenderer: Class TGLTextureNodes

# Class TGLTextureNodes
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleRenderer ## Declaration `type TGLTextureNodes = class(TResourceRendererList)` ## Description no description available, TResourceRendererList description follows ## Hierarchy TFPGObjectList TResourceRendererList TGLTextureNodes ## Overview ### Methods
| `function TextureNodeIndex(ANode: TAbstractTextureNode): Integer;`
| `function TextureNode(ANode: TAbstractTextureNode): TGLTextureNode;`
| `function Prepare(State: TX3DGraphTraverseState; ANode: TAbstractTextureNode; ARenderer: TGLRenderer): TGLTextureNode;`
| `function Bind(ANode: TAbstractTextureNode; const TextureUnit: Cardinal): boolean;`
| `function Enable(ANode: TAbstractTextureNode; const TextureUnit: Cardinal; Shader: TShader; const Env: TTextureEnv): boolean;`
| `procedure PrepareInterfaceDeclarationsTextures(const ANode: TX3DNode; const State: TX3DGraphTraverseState; const Renderer: TGLRenderer);`
| `procedure UnprepareInterfaceDeclarationsTextures(const ANode: TX3DNode; const Renderer: TGLRenderer);`
### Properties
| `property Items[Index:Integer]: TGLTextureNode read GetItems;`
## Description ### Methods
| `function TextureNodeIndex(ANode: TAbstractTextureNode): Integer;`
Looks for item with given ANode. Returns -1 if not found.
| `function TextureNode(ANode: TAbstractTextureNode): TGLTextureNode;`
Looks for item with given ANode. Returns `Nil` if not found.
| `function Prepare(State: TX3DGraphTraverseState; ANode: TAbstractTextureNode; ARenderer: TGLRenderer): TGLTextureNode;`
Prepare texture node, adding it to the list, if not prepared already. Accepts multi texture or not-multi texture nodes, accepts (and ignores) also `Nil` as TextureNode. Ignore not handled node classes. Returns created (or already existing) TGLTextureNode, it may be useful in case of TGLMultiTextureNode.Prepare implementation. Returns `Nil` if Node not suitable for TGLTextureNode (not handled, or not really a texture node at all).
| `function Bind(ANode: TAbstractTextureNode; const TextureUnit: Cardinal): boolean;`
Only bind texture node. Calls TGLTextureNode.Enable method. If no texture renderer is prepared for this node, returns `False`.
| `function Enable(ANode: TAbstractTextureNode; const TextureUnit: Cardinal; Shader: TShader; const Env: TTextureEnv): boolean;`
Enable and bind texture node. Calls TGLTextureNode.Enable method. If no texture renderer is prepared for this node, returns `False`.
| `procedure PrepareInterfaceDeclarationsTextures(const ANode: TX3DNode; const State: TX3DGraphTraverseState; const Renderer: TGLRenderer);`
Prepare / unprepare all textures inside Node.InterfaceDeclarations SFNode / MFNode fields.
| `procedure UnprepareInterfaceDeclarationsTextures(const ANode: TX3DNode; const Renderer: TGLRenderer);`
### Properties
| `property Items[Index:Integer]: TGLTextureNode read GetItems;`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:11