QTfrontend/SDLs.h
changeset 2515 51d3f4b6293a
parent 2443 fececcbc2189
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2514:df9d0728c5bb 2515:51d3f4b6293a
       
     1 
       
     2 
     1 /*
     3 /*
     2  * Hedgewars, a free turn based strategy game
     4  * Hedgewars, a free turn based strategy game
     3  * Copyright (c) 2007 Andrey Korotaev <unC0Rr@gmail.com>
     5  * Copyright (c) 2007 Andrey Korotaev <unC0Rr@gmail.com>
     4  *
     6  *
     5  * This program is free software; you can redistribute it and/or modify
     7  * This program is free software; you can redistribute it and/or modify
    17  */
    19  */
    18 
    20 
    19 #ifndef SDLS_H
    21 #ifndef SDLS_H
    20 #define SDLS_H
    22 #define SDLS_H
    21 
    23 
       
    24 
    22 #include <QStringList>
    25 #include <QStringList>
    23 #include "openalbridge.h"
    26 #include "SDL_mixer.h"
       
    27 
    24 
    28 
    25 class SDLInteraction : public QObject
    29 class SDLInteraction : public QObject
    26 {
    30 {
    27 	Q_OBJECT
    31 	Q_OBJECT
    28 
    32 
    29 private:
    33 private:
    30 	int music;
    34 	Mix_Music *music;
       
    35 	int musicInitialized;	
    31 
    36 
    32 public:
    37 public:
    33 	SDLInteraction();
    38 	SDLInteraction();
    34 	~SDLInteraction();
    39 	~SDLInteraction();
    35 	void setHardwareSound(bool hardware_snd);
       
    36 	QStringList getResolutions() const;
    40 	QStringList getResolutions() const;
    37 	void addGameControllerKeys() const;
    41 	void addGameControllerKeys() const;
    38 	void StartMusic();
    42 	void StartMusic();
    39 	void StopMusic();
    43 	void StopMusic();
       
    44 	void SDLMusicInit();	
    40 };
    45 };
    41 
    46 
    42 void OpenAL_Init();
       
    43 
    47 
    44 #endif
    48 #endif
       
    49