Castle Game Engine: CastleGLImages: Class TGLVideo

# Class TGLVideo
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleGLImages ## Declaration `type TGLVideo = class(TObject)` ## Description Video as a sequence of OpenGL textures that can be easily played. Use TGLVideo3D to have a list of normal OpenGL textures, e.g. for rendering video as texture on free 3D objects. Use TGLVideo2D to have a list of GUI textures (TGLImage), e.g. for rendering video as simple 2D control. ## Hierarchy TObject TGLVideo ## Overview ### Methods
| `constructor Create(Video: TVideo);`
| `function IndexFromTime(const Time: Single): Integer;`
| `function Duration: Single;`
### Properties
| `property Count: Integer read FCount;`
| `property FramesPerSecond: Single read FFramesPerSecond write FFramesPerSecond;`
| `property TimeLoop: boolean read FTimeLoop write FTimeLoop;`
| `property TimeBackwards: boolean read FTimeBackwards write FTimeBackwards;`
| `property Width: Cardinal read FWidth;`
| `property Height: Cardinal read FHeight;`
## Description ### Methods
| `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.)
| `function IndexFromTime(const Time: Single): Integer;`
| `function Duration: Single;`
Duration of the movie, in seconds. This is just the number of frames Count divided by FramesPerSecond.
### Properties
| `property Count: Integer read FCount;`
| `property FramesPerSecond: Single read FFramesPerSecond write FFramesPerSecond;`
See TVideo.FramesPerSecond.
| `property TimeLoop: boolean read FTimeLoop write FTimeLoop;`
See TVideo.TimeLoop.
| `property TimeBackwards: boolean read FTimeBackwards write FTimeBackwards;`
See TVideo.TimeBackwards.
| `property Width: Cardinal read FWidth;`
| `property Height: Cardinal read FHeight;`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:10