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

« back to all changes in this revision

Viewing changes to src/resources/openglimagehelper.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-09-17 10:35:51 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130917103551-az7p3nz9jgxwqjfn
Tags: 1.3.9.15-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 
96
96
        // OpenGL only public functions
97
97
 
98
 
        /**
99
 
         * Sets the target image format. Use <code>false</code> for SDL and
100
 
         * <code>true</code> for OpenGL.
101
 
         */
102
 
        static void setLoadAsOpenGL(const int useOpenGL);
103
 
 
104
98
        static int getTextureType() A_WARN_UNUSED
105
99
        { return mTextureType; }
106
100
 
117
111
 
118
112
        static int mInternalTextureType;
119
113
 
120
 
         /**
121
 
         * Tells if the image was loaded using OpenGL or SDL
122
 
         * @return true if OpenGL, false if SDL.
123
 
         */
124
 
        int useOpenGL() const override A_WARN_UNUSED;
125
 
 
126
114
        static int getTextureSize() A_WARN_UNUSED
127
115
        { return mTextureSize; }
128
116
 
142
130
        Image *glLoad(SDL_Surface *tmpImage,
143
131
                      int width = 0, int height = 0) const A_WARN_UNUSED;
144
132
 
145
 
        static int mUseOpenGL;
146
133
        static int mTextureSize;
147
134
        static bool mBlur;
148
135
        static bool mUseTextureSampler;