Class TGLVideo

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGLVideo = class(TObject)

Description

Sequence of OpenGL textures to be played as a video.

Hierarchy

  • TObject
  • TGLVideo

Overview

Methods

Public constructor Create(Video: TVideo; MinFilter, MagFilter: TGLenum; const Anisotropy: TGLfloat; const Wrap: TTextureWrap2D);
Public destructor Destroy; override;
Public function IndexFromTime(const Time: Single): Integer;
Public function GLTextureFromTime(const Time: Single): TGLuint;

Properties

Public property Count: Integer read FCount;
Public property FramesPerSecond: Single read FFramesPerSecond;
Public property TimeLoop: boolean read FTimeLoop write FTimeLoop;
Public property TimeBackwards: boolean read FTimeBackwards write FTimeBackwards;

Description

Methods

Public constructor Create(Video: TVideo; MinFilter, MagFilter: TGLenum; const Anisotropy: TGLfloat; const Wrap: TTextureWrap2D);

Constructor that initializes video from TVideo class.

TVideo passed here must be already Loaded.

Note that this class doesn't descend or keep reference to TVideo instance. The idea is that after creating TGLVideo instance, you can often free original TVideo instance (if you care only about playing the movie). This can conserve memory greatly, as TVideo keeps all frames in the memory, and so is rather memory-costly. (Actually, TGLVideo itself may eat a lot of texture memory, so be careful with large videos anyway.)

Public destructor Destroy; override;
 
Public function IndexFromTime(const Time: Single): Integer;
 
Public function GLTextureFromTime(const Time: Single): TGLuint;
 

Properties

Public property Count: Integer read FCount;
 
Public property FramesPerSecond: Single read FFramesPerSecond;

See TVideo.FramesPerSecond.

Public property TimeLoop: boolean read FTimeLoop write FTimeLoop;

See TVideo.TimeLoop.

Public property TimeBackwards: boolean read FTimeBackwards write FTimeBackwards;

See TVideo.TimeBackwards.


Generated by PasDoc 0.12.1 on 2013-02-04 20:26:50