00001 #ifndef MOVIE_TEXTURE_NULL 00002 #define MOVIE_TEXTURE_NULL 00003 /* 00004 * MovieTexture_null.h 00005 * stepmania 00006 * 00007 * Created by Steve Checkoway on Wed Jul 16 2003. 00008 * Copyright (c) 2003 Steve Checkoway. All rights reserved. 00009 * 00010 */ 00011 00012 #include "MovieTexture.h" 00013 #include "RageTexture.h" 00014 00015 class MovieTexture_Null : public RageMovieTexture { 00016 private: 00017 bool playing; 00018 bool loop; 00019 unsigned texHandle; 00020 00021 public: 00022 MovieTexture_Null(RageTextureID ID); 00023 virtual ~MovieTexture_Null(); 00024 void Invalidate() { texHandle = 0; } 00025 unsigned GetTexHandle() const { return texHandle; } 00026 void Update(float delta) { } 00027 void Reload() { } 00028 void SetPosition(float seconds) { } 00029 void SetPlaybackRate(float rate) { } 00030 void SetLooping(bool looping=true) { loop = looping; } 00031 }; 00032 00033 #endif /* MOVIE_TEXTURE_NULL */ 00034 00035 /* 00036 * (c) 2003 Steve Checkoway 00037 * All rights reserved. 00038 * 00039 * Permission is hereby granted, free of charge, to any person obtaining a 00040 * copy of this software and associated documentation files (the 00041 * "Software"), to deal in the Software without restriction, including 00042 * without limitation the rights to use, copy, modify, merge, publish, 00043 * distribute, and/or sell copies of the Software, and to permit persons to 00044 * whom the Software is furnished to do so, provided that the above 00045 * copyright notice(s) and this permission notice appear in all copies of 00046 * the Software and that both the above copyright notice(s) and this 00047 * permission notice appear in supporting documentation. 00048 * 00049 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00050 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00051 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00052 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00053 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00054 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00055 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00056 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00057 * PERFORMANCE OF THIS SOFTWARE. 00058 */