~thomas-moenicke/+junk/gallery-texture-size

« back to all changes in this revision

Viewing changes to src/media/media-source.h

  • Committer: Thomas Moenicke
  • Date: 2013-01-09 08:52:01 UTC
  • Revision ID: thomas.moenicke@canonical.com-20130109085201-m36oult3wp119hbj
playing with GL_MAX_TEXTURE_SIZE request

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
  Q_PROPERTY(bool busy READ busy NOTIFY busyChanged)
54
54
  Q_PROPERTY(int width READ width NOTIFY size_altered)
55
55
  Q_PROPERTY(int height READ height NOTIFY size_altered)
 
56
  Q_PROPERTY(int maxTextureSize READ maxTextureSize NOTIFY maxTextureSizeChanged)
56
57
 
57
58
 signals:
58
59
  void path_altered();
67
68
  void data_altered();
68
69
  void size_altered();
69
70
  void busyChanged();
 
71
  void maxTextureSizeChanged();
70
72
  
71
73
 public:
72
74
  MediaSource();
106
108
  bool busy();
107
109
  void set_busy(bool busy);
108
110
  
 
111
  int maxTextureSize();
 
112
 
109
113
 protected:
110
114
  virtual void DestroySource(bool delete_backing, bool as_orphan);
111
115
 
125
129
  qint64 id_;
126
130
  QSize size_;
127
131
  bool busy_;
 
132
 
 
133
  int _maxTextureSize;
 
134
  void initMaxTextureSizeProperty()
 
135
  {
 
136
//    glGetIntegerv(GL_MAX_TEXTURE_SIZE, &_maxTextureSize);
 
137
//    qCritical() << _maxTextureSize << "<<<";
 
138
  }
128
139
};
129
140
 
130
141
QML_DECLARE_TYPE(MediaSource)