⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guitheoractrl.h

📁 五行MMORPG引擎系统V1.0
💻 H
字号:
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------

#ifndef _GUITHEORACTRL_H_
#define _GUITHEORACTRL_H_

#ifndef _THEORATEXTURE_H_
#include "core/theoraPlayer.h"
#endif

/// Play back a Theora video file.
class GuiTheoraCtrl : public GuiControl
{
  private:
   typedef GuiControl Parent;

  protected:
   const char* mFilename;
   TheoraTexture mTheoraTexture;

  public:
   DECLARE_CONOBJECT(GuiTheoraCtrl);

   GuiTheoraCtrl();
   ~GuiTheoraCtrl();

   static void initPersistFields();

   void inspectPostApply();
   void setFile(const char *filename);
   void stop();

   /// If true, stop video playback when the control goes to sleep.
   bool mStopOnSleep;

   /// Are we done with playback?
   bool mDone;

   /// Our background color.
   ColorI mBackgroundColor;

   bool onWake();
   void onSleep();
   void onRender(Point2I offset, const RectI &updateRect);

   F32 getCurrentTime()
   {
      return mTheoraTexture.getCurrentTime();
   }
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -