~ubuntu-branches/ubuntu/precise/ultrastar-ng/precise

« back to all changes in this revision

Viewing changes to include/video_driver.h

  • Committer: Bazaar Package Importer
  • Author(s): Miriam Ruiz, Miriam Ruiz, Mario Bonino, Jon Dowland, Ansgar Burchardt
  • Date: 2008-06-07 16:43:18 UTC
  • mfrom: (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080607164318-4cnzizck1tp8mrwp
Tags: 0.2.1-1
[ Miriam Ruiz ]
* New Upstream Release (Closes: #453132)
* Removed unneeded patches
* Added packages to build deps:
  + libtool
  + portaudio19-dev | portaudio-dev
  + libboost-dev, libboost-thread-dev, libboost-serialization-dev
  + libboost-program-options-dev, libboost-regex-dev
* Moved shared objects to private directory: /usr/lib/ultraster-ng
* Added rpath to binaries to search for shared objects in the private dir
* Uses ultrastar-ng-gstreamer as default, instead of ultrastar-ng-xine,
  since there are significantly less issues with GStreamer.
* Added patch to fix upstream desktop file
* Added -Wl,-as-needed to LDFLAGS
* Replaced fftw3-dev by libfftw3-dev in build dependencies.
* Standards-Version upgraded to 3.7.3

[ Mario Bonino ]
* Fixed data/Makefile.am to install .desktop file and icon

[ Jon Dowland ]
* add Homepage: control field to source stanza
* fix a bashism in debian/rules (Closes: #478634)

[ Ansgar Burchardt ]
* debian/control: Change XS-Vcs-* to Vcs-*
* Remove Homepage semi-field from description

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define __VIDEODRIVER_H__
3
3
 
4
4
#include "../config.h"
 
5
#include <vector>
5
6
 
6
7
class CVideoDriver {
7
 
        public:
 
8
  public:
8
9
        CVideoDriver();
9
10
        ~CVideoDriver();
10
 
        SDL_Surface * init(int width, int height, int fullscreen);
11
 
        unsigned int initSurface(SDL_Surface * _surf);
12
 
        unsigned int initSurface(cairo_surface_t * _surf);
13
 
        void updateSurface(unsigned int _id, SDL_Surface * _surf);
14
 
        void updateSurface(unsigned int _id, cairo_surface_t * _surf);
15
 
        void drawSurface(unsigned int _id, int _x=0, int _y=0);
 
11
        SDL_Surface* init(int width, int height, int fullscreen);
 
12
        unsigned int initSurface(SDL_Surface* _surf);
 
13
        unsigned int initSurface(cairo_surface_t* _surf);
 
14
        void updateSurface(unsigned int _id, SDL_Surface* _surf);
 
15
        void updateSurface(unsigned int _id, cairo_surface_t* _surf);
 
16
        void drawSurface(unsigned int _id, int _x=0, int _y=0);
16
17
        void drawSurface(cairo_surface_t* _surf, int _x=0, int _y=0);
17
18
        void drawSurface(SDL_Surface* _surf, int _x=0, int _y=0);
18
 
        void blank( void );
19
 
        void swap( void );
20
 
        private:
21
 
        SDL_Surface * screen;
22
 
        std::vector <unsigned int> texture_list;
23
 
        std::vector <SDL_Surface*> surface_list;
24
 
        std::vector <cairo_surface_t*> cairo_list;
 
19
        void blank();
 
20
        void swap();
 
21
  private:
 
22
        SDL_Surface* screen;
 
23
        std::vector<unsigned int> texture_list;
 
24
        std::vector<SDL_Surface*> surface_list;
 
25
        std::vector<cairo_surface_t*> cairo_list;
25
26
};
26
27
 
27
28
#endif