view MediaPlayer.h @ 2338:1e865e8690ba

Moving some function declarations from unsorted subs to Actor.h and SpriteObject.h
author Grumpy7
date Sat, 05 Apr 2014 20:27:09 +0200
parents 58be29479e75
children 182effc4b0ee
line wrap: on
line source

#pragma once

namespace Media
{
  class ITrack
  {
    public: virtual void Play(bool loop = false) = 0;
  };

  class IMovie
  {
    public: virtual void Play() = 0;
            virtual void GetNextFrame(double dt, void *target_surface) = 0;
  };

  class Player
  {
    public:
               Player();
      virtual ~Player();


      ITrack *LoadTrack(const wchar_t *name);
      IMovie *LoadMovie(const wchar_t *name, int width, int height, int cache_ms);
  };
};