view MediaPlayer.h @ 2318:133882370e83

far_clip and near_clip for draw terrain
author Ritor1
date Thu, 20 Mar 2014 17:38:29 +0600
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);
  };
};