~ubuntu-branches/ubuntu/trusty/hugin/trusty-proposed

« back to all changes in this revision

Viewing changes to src/hugin1/hugin/TextureManager.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2011-01-06 14:28:24 UTC
  • mfrom: (1.1.9 upstream) (0.1.21 experimental)
  • Revision ID: james.westby@ubuntu.com-20110106142824-zn9lxylg5z44dynn
* Drop Cyril Brulebois from Uploaders. Thank you very much for your work.
* Bump package version. (rc3 was re-released as 2010.4.0).

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
#include <string>
42
42
#include <map>
 
43
#include <boost/signals/trackable.hpp>
 
44
#include <huginapp/ImageCache.h>
43
45
#include "PT/Panorama.h"
44
46
 
45
47
class GLViewer;
76
78
    // remove textures for deleted images.
77
79
    void CleanTextures();
78
80
    class TextureInfo
 
81
        // If the TextureInfo is deleted while the image is loading, we want to
 
82
        // avoid a segfault when the image loaded event happens. So we let the
 
83
        // signal react to destruction of a TextureInfo.
 
84
        : public boost::signals::trackable
79
85
    {
80
86
    public:
81
87
        TextureInfo(ViewState *new_view_state);
114
120
        bool has_mask; // this is the alpha channel
115
121
        bool has_active_masks; // has active masks
116
122
        ViewState *m_viewState;
 
123
        /// a request for an image, if it was not loaded before.
 
124
        HuginBase::ImageCache::RequestPtr m_imageRequest;
117
125
        // this binds a new texture in openGL and sets the various parameters
118
126
        // we need for it.
119
127
        void CreateTexture();