Class TGLVideo2D
Unit
Declaration
type TGLVideo2D = class(TGLVideo)
Description
Video expressed as a series of TDrawableImage, to play as 2D GUI control.
Source: base_rendering/castleglimages_video.inc (line 86).
Hierarchy
- TObject
- TGLVideo
- TGLVideo2D
Overview
Methods
| Public | constructor Create(Video: TVideo); |
| Public | function IndexFromTime(const Time: TFloatTime): Integer; |
| Public | function Duration: Single; |
| Public | constructor Create(Video: TVideo; const SmoothScaling: boolean = true); overload; |
| Public | constructor Create(const Url: String; const SmoothScaling: boolean = true); overload; |
| Public | constructor Create(const Url: String; const ResizeToX: Cardinal = 0; const ResizeToY: Cardinal = 0; const Interpolation: TResizeInterpolation = riBilinear); overload; |
| Public | destructor Destroy; override; |
| Public | function DrawableImageFromTime(const Time: TFloatTime): TDrawableImage; |
| Public | function GLImageFromTime(const Time: TFloatTime): TDrawableImage; deprecated 'use DrawableImageFromTime'; |
Properties
| Public | property Count: Integer read FCount; |
| Public | property FramesPerSecond: Single read FFramesPerSecond write FFramesPerSecond; |
| Public | property TimeLoop: boolean read FTimeLoop write FTimeLoop; |
| Public | property TimeBackwards: boolean
read FTimeBackwards write FTimeBackwards; |
| Public | property Width: Cardinal read FWidth; |
| Public | property Height: Cardinal read FHeight; |
Description
Methods
| Public | constructor Create(Video: TVideo); |
|
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 | function IndexFromTime(const Time: TFloatTime): Integer; |
|
This item has no description. | |
| Public | function Duration: Single; |
|
Duration of the movie, in seconds. This is just the number of frames Count divided by FramesPerSecond. | |
| Public | constructor Create(Video: TVideo; const SmoothScaling: boolean = true); overload; |
|
This item has no description. | |
| Public | constructor Create(const Url: String; const SmoothScaling: boolean = true); overload; |
|
This item has no description. | |
| Public | constructor Create(const Url: String; const ResizeToX: Cardinal = 0; const ResizeToY: Cardinal = 0; const Interpolation: TResizeInterpolation = riBilinear); overload; |
|
This item has no description. | |
| Public | destructor Destroy; override; |
|
This item has no description. | |
| Public | function DrawableImageFromTime(const Time: TFloatTime): TDrawableImage; |
|
This item has no description. | |
| Public | function GLImageFromTime(const Time: TFloatTime): TDrawableImage; deprecated 'use DrawableImageFromTime'; |
|
Warning: this symbol is deprecated: use DrawableImageFromTime This item has no description. | |
Properties
| Public | property Count: Integer read FCount; |
|
This item has no description. | |
| Public | property FramesPerSecond: Single read FFramesPerSecond write FFramesPerSecond; |
| Public | property TimeLoop: boolean read FTimeLoop write FTimeLoop; |
|
See TVideo.TimeLoop. | |
| Public | property TimeBackwards: boolean
read FTimeBackwards write FTimeBackwards; |
|
See TVideo.TimeBackwards. | |
| Public | property Width: Cardinal read FWidth; |
|
This item has no description. | |
| Public | property Height: Cardinal read FHeight; |
|
This item has no description. | |
Generated by PasDoc 0.17.0.snapshot.