~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/graphicsmanager.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-05-18 21:06:29 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130518210629-3trtowluum0tekob
Tags: 1.3.5.12-1
[ Andrei Karas ]
* Add new files to copyright file.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
#include "utils/stringvector.h"
41
41
 
 
42
#include <SDL_stdinc.h>
 
43
 
42
44
#include <set>
43
45
#include <string>
44
46
 
49
51
 
50
52
struct FBOInfo;
51
53
 
 
54
enum ScreenDensity
 
55
{
 
56
    DENSITY_UNKNOWN = -1,
 
57
    DENSITY_LOW = 0,
 
58
    DENSITY_MEDIUM = 1,
 
59
    DENSITY_TV = 2,
 
60
    DENSITY_HIGH = 3,
 
61
    DENSITY_XHIGH = 4,
 
62
    DENSITY_XXHIGH = 5
 
63
};
 
64
 
52
65
class GraphicsManager final
53
66
{
54
67
    public:
62
75
 
63
76
        void setVideoMode();
64
77
 
65
 
        Graphics *createGraphics() A_WARN_UNUSED;
66
 
 
67
78
        bool getAllVideoModes(StringVect &modeList);
68
79
 
 
80
        void detectPixelSize();
 
81
 
 
82
        std::string getDensityString() const;
 
83
 
 
84
        int getDensity()
 
85
        { return mDensity; }
 
86
 
69
87
#ifdef USE_OPENGL
70
88
        TestMain *startDetection() A_WARN_UNUSED;
71
89
 
147
165
 
148
166
        int mMaxFboSize;
149
167
 
 
168
        uint32_t mMaxWidth;
 
169
 
 
170
        uint32_t mMaxHeight;
 
171
 
 
172
        uint32_t mWidthMM;
 
173
 
 
174
        uint32_t mHeightMM;
 
175
 
 
176
        int32_t mDensity;
 
177
 
150
178
#ifdef USE_OPENGL
151
179
        bool mUseTextureSampler;
152
180