text: //=============================================================================
  //
  // Adventure Game Studio (AGS)
  //
  // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
  // The full list of copyright holders can be found in the Copyright.txt
  // file, which is part of this source code distribution.
  //
  // The AGS source code is provided under the Artistic License 2.0.
  // A copy of this license can be found in the file License.txt and at
  // http://www.opensource.org/licenses/artistic-license-2.0.php
  //
  //=============================================================================
  //
  //
  //
  //=============================================================================
  #ifndef __AGS_EE_AC__VIEWFRAME_H
  #define __AGS_EE_AC__VIEWFRAME_H
  
  #include "ac/runtime_defines.h"
  #include "ac/view.h"
  #include "ac/dynobj/scriptaudioclip.h"
  #include "ac/dynobj/scriptviewframe.h"
  #include "gfx/bitmap.h"
  
  namespace AGS { namespace Common { class Graphics; } }
  using namespace AGS; // FIXME later
  
  int  ViewFrame_GetFlipped(ScriptViewFrame *svf);
  int  ViewFrame_GetGraphic(ScriptViewFrame *svf);
  void ViewFrame_SetGraphic(ScriptViewFrame *svf, int newPic);
  ScriptAudioClip* ViewFrame_GetLinkedAudio(ScriptViewFrame *svf);
  void ViewFrame_SetLinkedAudio(ScriptViewFrame *svf, ScriptAudioClip* clip);
  int  ViewFrame_GetSound(ScriptViewFrame *svf);
  void ViewFrame_SetSound(ScriptViewFrame *svf, int newSound);
  int  ViewFrame_GetSpeed(ScriptViewFrame *svf);
  int  ViewFrame_GetView(ScriptViewFrame *svf);
  int  ViewFrame_GetLoop(ScriptViewFrame *svf);
  int  ViewFrame_GetFrame(ScriptViewFrame *svf);
  
  void precache_view(int view);
  void CheckViewFrame (int view, int loop, int frame, int sound_volume=SCR_NO_VALUE);
  // draws a view frame, flipped if appropriate
  void DrawViewFrame(Common::Bitmap *ds, const ViewFrame *vframe, int x, int y, bool alpha_blend = false);
  
  #endif // __AGS_EE_AC__VIEWFRAME_H
  