Class TGLSingleTextureNode

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGLSingleTextureNode = class(TGLTextureNode)

Description

Common class for all single (not multi-texture) texture nodes.

Implements EnableAll method, by calling Enable call. Override only Enable in descendants.

Hierarchy

Overview

Fields

Protected TextureRGB: boolean;

Methods

Protected procedure SetTextureRGBFromImage(Image: TEncodedImage);
Public procedure EnableAll(const TextureUnitsCount: Cardinal; out TexCoordsNeeded: Cardinal; Shader: TShader); override;

Description

Fields

Protected TextureRGB: boolean;

Determines should texture mode be suited for RGB and grayscale texture. Default false, you should set this in descendant (latest possibility is to set this is a successfull Enable call, but usually you want to do it in a Prepare call). You can set it by SetTextureRGBFromImage.

Methods

Protected procedure SetTextureRGBFromImage(Image: TEncodedImage);
 
Public procedure EnableAll(const TextureUnitsCount: Cardinal; out TexCoordsNeeded: Cardinal; Shader: TShader); override;
 

Generated by PasDoc 0.13.0 on 2014-10-26 05:15:14