Class TGLTextureNodes

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGLTextureNodes = class(TResourceRendererList)

Description

no description available, TResourceRendererList description follows

Hierarchy

Overview

Methods

Public function TextureNodeIndex(ANode: TAbstractTextureNode): Integer;
Public function TextureNode(ANode: TAbstractTextureNode): TGLTextureNode;
Public function Prepare(State: TX3DGraphTraverseState; ANode: TAbstractTextureNode; ARenderer: TGLRenderer): TGLTextureNode;
Public function Bind(ANode: TAbstractTextureNode; const TextureUnit: Cardinal): boolean;
Public function Enable(ANode: TAbstractTextureNode; const TextureUnit: Cardinal; Shader: TShader; const Env: TTextureEnv): boolean;
Public procedure PrepareInterfaceDeclarationsTextures(const ANode: TX3DNode; const State: TX3DGraphTraverseState; const Renderer: TGLRenderer);
Public procedure UnprepareInterfaceDeclarationsTextures(const ANode: TX3DNode; const Renderer: TGLRenderer);

Properties

Public property Items[Index:Integer]: TGLTextureNode read GetItems;

Description

Methods

Public function TextureNodeIndex(ANode: TAbstractTextureNode): Integer;

Looks for item with given ANode. Returns -1 if not found.

Public function TextureNode(ANode: TAbstractTextureNode): TGLTextureNode;

Looks for item with given ANode. Returns Nil if not found.

Public 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).

Public 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.

Public 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.

Public procedure PrepareInterfaceDeclarationsTextures(const ANode: TX3DNode; const State: TX3DGraphTraverseState; const Renderer: TGLRenderer);

Prepare / unprepare all textures inside Node.InterfaceDeclarations SFNode / MFNode fields.

Public procedure UnprepareInterfaceDeclarationsTextures(const ANode: TX3DNode; const Renderer: TGLRenderer);
 

Properties

Public property Items[Index:Integer]: TGLTextureNode read GetItems;
 

Generated by PasDoc 0.13.0 on 2014-04-30 22:06:44