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