Class TGLTextureNodes
Unit
CastleRenderer
Declaration
type TGLTextureNodes = class(TResourceRendererList)
Description
No description available, ancestor TResourceRendererList description follows Hierarchy
Overview
Methods
Properties
Description
Methods
 |
function TextureNodeIndex(ANode: TAbstractTextureNode): Integer; |
Looks for item with given ANode. Returns -1 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 .
|
Properties
Generated by PasDoc 0.15.0.
|