summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertextureanim.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewertextureanim.h')
-rw-r--r--indra/newview/llviewertextureanim.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/indra/newview/llviewertextureanim.h b/indra/newview/llviewertextureanim.h
new file mode 100644
index 0000000000..c7e75c565c
--- /dev/null
+++ b/indra/newview/llviewertextureanim.h
@@ -0,0 +1,33 @@
+/**
+ * @file llviewertextureanim.h
+ * @brief LLViewerTextureAnim class header file
+ *
+ * Copyright (c) 2003-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+#ifndef LL_LLVIEWERTEXTUREANIM_H
+#define LL_LLVIEWERTEXTUREANIM_H
+
+#include "lltextureanim.h"
+#include "llframetimer.h"
+
+class LLViewerTextureAnim : public LLTextureAnim
+{
+public:
+ LLViewerTextureAnim();
+ virtual ~LLViewerTextureAnim();
+
+ /*virtual*/ void reset();
+
+ S32 animateTextures(F32 &off_s, F32 &off_t, F32 &scale_s, F32 &scale_t, F32 &rotate);
+ enum
+ {
+ TRANSLATE = 0x01 // Result code JUST for animateTextures
+ };
+protected:
+ LLFrameTimer mTimer;
+ F64 mLastTime;
+ F32 mLastFrame;
+};
+#endif