1 /* 2 * Copyright 2009, Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Alexandre Deckner <alex@zappotek.com> 7 */ 8 #ifndef _VIDEO_FILE_TEXTURE_H 9 #define _VIDEO_FILE_TEXTURE_H 10 11 #include "Texture.h" 12 13 14 class BMediaFile; 15 class BMediaTrack; 16 class BBitmap; 17 18 19 class VideoFileTexture : public Texture { 20 public: 21 VideoFileTexture(const char* fileName); 22 virtual ~VideoFileTexture(); 23 24 virtual void Update(float dt); 25 protected: 26 void _Load(const char* fileName); 27 28 BMediaFile* fMediaFile; 29 BMediaTrack* fVideoTrack; 30 BBitmap* fVideoBitmap; 31 }; 32 33 #endif /* _VIDEO_TEXTURE_H */ 34