1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593
|
#include <PythonQt.h>
#include <QImage>
#include <QObject>
#include <QPixmap>
#include <QVariant>
#include <qaction.h>
#include <qbitmap.h>
#include <qbytearray.h>
#include <qcolor.h>
#include <qcoreevent.h>
#include <qcursor.h>
#include <qevent.h>
#include <qfont.h>
#include <qgl.h>
#include <qglcolormap.h>
#include <qglframebufferobject.h>
#include <qglpixelbuffer.h>
#include <qglshaderprogram.h>
#include <qgraphicseffect.h>
#include <qgraphicsproxywidget.h>
#include <qicon.h>
#include <qimage.h>
#include <qinputcontext.h>
#include <qkeysequence.h>
#include <qlayout.h>
#include <qlist.h>
#include <qlocale.h>
#include <qmargins.h>
#include <qmatrix4x4.h>
#include <qobject.h>
#include <qpaintdevice.h>
#include <qpaintengine.h>
#include <qpainter.h>
#include <qpalette.h>
#include <qpixmap.h>
#include <qpoint.h>
#include <qrect.h>
#include <qregion.h>
#include <qsize.h>
#include <qsizepolicy.h>
#include <qstyle.h>
#include <qtransform.h>
#include <qvector2d.h>
#include <qvector3d.h>
#include <qvector4d.h>
#include <qwidget.h>
class PythonQtShell_QGLColormap : public QGLColormap
{
public:
PythonQtShell_QGLColormap():QGLColormap(),_wrapper(NULL) {};
PythonQtShell_QGLColormap(const QGLColormap& arg__1):QGLColormap(arg__1),_wrapper(NULL) {};
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QGLColormap : public QObject
{ Q_OBJECT
public:
public slots:
QGLColormap* new_QGLColormap();
QGLColormap* new_QGLColormap(const QGLColormap& arg__1);
void delete_QGLColormap(QGLColormap* obj) { delete obj; }
QColor entryColor(QGLColormap* theWrappedObject, int idx) const;
unsigned int entryRgb(QGLColormap* theWrappedObject, int idx) const;
int find(QGLColormap* theWrappedObject, unsigned int color) const;
int findNearest(QGLColormap* theWrappedObject, unsigned int color) const;
bool isEmpty(QGLColormap* theWrappedObject) const;
void setEntries(QGLColormap* theWrappedObject, int count, const unsigned int* colors, int base = 0);
void setEntry(QGLColormap* theWrappedObject, int idx, const QColor& color);
void setEntry(QGLColormap* theWrappedObject, int idx, unsigned int color);
int size(QGLColormap* theWrappedObject) const;
};
class PythonQtShell_QGLContext : public QGLContext
{
public:
PythonQtShell_QGLContext(const QGLFormat& format):QGLContext(format),_wrapper(NULL) {};
PythonQtShell_QGLContext(const QGLFormat& format, QPaintDevice* device):QGLContext(format, device),_wrapper(NULL) {};
virtual bool chooseContext(const QGLContext* shareContext = 0);
virtual bool create(const QGLContext* shareContext = 0);
virtual void doneCurrent();
virtual void makeCurrent();
virtual void swapBuffers() const;
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QGLContext : public QGLContext
{ public:
inline bool promoted_chooseContext(const QGLContext* shareContext = 0) { return QGLContext::chooseContext(shareContext); }
inline bool promoted_create(const QGLContext* shareContext = 0) { return QGLContext::create(shareContext); }
inline void promoted_doneCurrent() { QGLContext::doneCurrent(); }
inline void promoted_makeCurrent() { QGLContext::makeCurrent(); }
inline void promoted_swapBuffers() const { QGLContext::swapBuffers(); }
};
class PythonQtWrapper_QGLContext : public QObject
{ Q_OBJECT
public:
Q_ENUMS(BindOption )
Q_FLAGS(BindOptions )
enum BindOption{
NoBindOption = QGLContext::NoBindOption, InvertedYBindOption = QGLContext::InvertedYBindOption, MipmapBindOption = QGLContext::MipmapBindOption, PremultipliedAlphaBindOption = QGLContext::PremultipliedAlphaBindOption, LinearFilteringBindOption = QGLContext::LinearFilteringBindOption, MemoryManagedBindOption = QGLContext::MemoryManagedBindOption, CanFlipNativePixmapBindOption = QGLContext::CanFlipNativePixmapBindOption, DefaultBindOption = QGLContext::DefaultBindOption, InternalBindOption = QGLContext::InternalBindOption};
Q_DECLARE_FLAGS(BindOptions, BindOption)
public slots:
QGLContext* new_QGLContext(const QGLFormat& format);
QGLContext* new_QGLContext(const QGLFormat& format, QPaintDevice* device);
void delete_QGLContext(QGLContext* obj) { delete obj; }
bool static_QGLContext_areSharing(const QGLContext* context1, const QGLContext* context2);
unsigned int bindTexture(QGLContext* theWrappedObject, const QImage& image, unsigned int target = 0x0DE1, int format = 0x1908);
unsigned int bindTexture(QGLContext* theWrappedObject, const QImage& image, unsigned int target, int format, QGLContext::BindOptions options);
unsigned int bindTexture(QGLContext* theWrappedObject, const QPixmap& pixmap, unsigned int target = 0x0DE1, int format = 0x1908);
unsigned int bindTexture(QGLContext* theWrappedObject, const QPixmap& pixmap, unsigned int target, int format, QGLContext::BindOptions options);
unsigned int bindTexture(QGLContext* theWrappedObject, const QString& fileName);
bool chooseContext(QGLContext* theWrappedObject, const QGLContext* shareContext = 0);
bool create(QGLContext* theWrappedObject, const QGLContext* shareContext = 0);
const QGLContext* static_QGLContext_currentContext();
void deleteTexture(QGLContext* theWrappedObject, unsigned int tx_id);
QPaintDevice* device(QGLContext* theWrappedObject) const;
void doneCurrent(QGLContext* theWrappedObject);
void drawTexture(QGLContext* theWrappedObject, const QPointF& point, unsigned int textureId, unsigned int textureTarget = 0x0DE1);
void drawTexture(QGLContext* theWrappedObject, const QRectF& target, unsigned int textureId, unsigned int textureTarget = 0x0DE1);
QGLFormat format(QGLContext* theWrappedObject) const;
bool isSharing(QGLContext* theWrappedObject) const;
bool isValid(QGLContext* theWrappedObject) const;
void makeCurrent(QGLContext* theWrappedObject);
QColor overlayTransparentColor(QGLContext* theWrappedObject) const;
QGLFormat requestedFormat(QGLContext* theWrappedObject) const;
void reset(QGLContext* theWrappedObject);
void setFormat(QGLContext* theWrappedObject, const QGLFormat& format);
void static_QGLContext_setTextureCacheLimit(int size);
void swapBuffers(QGLContext* theWrappedObject) const;
int static_QGLContext_textureCacheLimit();
};
class PythonQtShell_QGLFramebufferObject : public QGLFramebufferObject
{
public:
PythonQtShell_QGLFramebufferObject(const QSize& size, QGLFramebufferObject::Attachment attachment, unsigned int target = 0x0DE1, unsigned int internal_format = 0x8058):QGLFramebufferObject(size, attachment, target, internal_format),_wrapper(NULL) {};
PythonQtShell_QGLFramebufferObject(const QSize& size, const QGLFramebufferObjectFormat& format):QGLFramebufferObject(size, format),_wrapper(NULL) {};
PythonQtShell_QGLFramebufferObject(const QSize& size, unsigned int target = 0x0DE1):QGLFramebufferObject(size, target),_wrapper(NULL) {};
PythonQtShell_QGLFramebufferObject(int width, int height, QGLFramebufferObject::Attachment attachment, unsigned int target = 0x0DE1, unsigned int internal_format = 0x8058):QGLFramebufferObject(width, height, attachment, target, internal_format),_wrapper(NULL) {};
PythonQtShell_QGLFramebufferObject(int width, int height, const QGLFramebufferObjectFormat& format):QGLFramebufferObject(width, height, format),_wrapper(NULL) {};
PythonQtShell_QGLFramebufferObject(int width, int height, unsigned int target = 0x0DE1):QGLFramebufferObject(width, height, target),_wrapper(NULL) {};
virtual int devType() const;
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const;
virtual QPaintEngine* paintEngine() const;
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QGLFramebufferObject : public QGLFramebufferObject
{ public:
inline int promoted_devType() const { return QGLFramebufferObject::devType(); }
inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QGLFramebufferObject::metric(metric); }
inline QPaintEngine* promoted_paintEngine() const { return QGLFramebufferObject::paintEngine(); }
};
class PythonQtWrapper_QGLFramebufferObject : public QObject
{ Q_OBJECT
public:
Q_ENUMS(Attachment )
enum Attachment{
NoAttachment = QGLFramebufferObject::NoAttachment, CombinedDepthStencil = QGLFramebufferObject::CombinedDepthStencil, Depth = QGLFramebufferObject::Depth};
public slots:
QGLFramebufferObject* new_QGLFramebufferObject(const QSize& size, QGLFramebufferObject::Attachment attachment, unsigned int target = 0x0DE1, unsigned int internal_format = 0x8058);
QGLFramebufferObject* new_QGLFramebufferObject(const QSize& size, const QGLFramebufferObjectFormat& format);
QGLFramebufferObject* new_QGLFramebufferObject(const QSize& size, unsigned int target = 0x0DE1);
QGLFramebufferObject* new_QGLFramebufferObject(int width, int height, QGLFramebufferObject::Attachment attachment, unsigned int target = 0x0DE1, unsigned int internal_format = 0x8058);
QGLFramebufferObject* new_QGLFramebufferObject(int width, int height, const QGLFramebufferObjectFormat& format);
QGLFramebufferObject* new_QGLFramebufferObject(int width, int height, unsigned int target = 0x0DE1);
void delete_QGLFramebufferObject(QGLFramebufferObject* obj) { delete obj; }
QGLFramebufferObject::Attachment attachment(QGLFramebufferObject* theWrappedObject) const;
bool bind(QGLFramebufferObject* theWrappedObject);
void static_QGLFramebufferObject_blitFramebuffer(QGLFramebufferObject* target, const QRect& targetRect, QGLFramebufferObject* source, const QRect& sourceRect, unsigned int buffers = 0x00004000, unsigned int filter = 0x2600);
int devType(QGLFramebufferObject* theWrappedObject) const;
void drawTexture(QGLFramebufferObject* theWrappedObject, const QPointF& point, unsigned int textureId, unsigned int textureTarget = 0x0DE1);
void drawTexture(QGLFramebufferObject* theWrappedObject, const QRectF& target, unsigned int textureId, unsigned int textureTarget = 0x0DE1);
QGLFramebufferObjectFormat format(QGLFramebufferObject* theWrappedObject) const;
unsigned int handle(QGLFramebufferObject* theWrappedObject) const;
bool static_QGLFramebufferObject_hasOpenGLFramebufferBlit();
bool static_QGLFramebufferObject_hasOpenGLFramebufferObjects();
bool isBound(QGLFramebufferObject* theWrappedObject) const;
bool isValid(QGLFramebufferObject* theWrappedObject) const;
int metric(QGLFramebufferObject* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const;
QPaintEngine* paintEngine(QGLFramebufferObject* theWrappedObject) const;
bool release(QGLFramebufferObject* theWrappedObject);
QSize size(QGLFramebufferObject* theWrappedObject) const;
unsigned int texture(QGLFramebufferObject* theWrappedObject) const;
QImage toImage(QGLFramebufferObject* theWrappedObject) const;
};
class PythonQtWrapper_QGLFramebufferObjectFormat : public QObject
{ Q_OBJECT
public:
public slots:
QGLFramebufferObjectFormat* new_QGLFramebufferObjectFormat();
QGLFramebufferObjectFormat* new_QGLFramebufferObjectFormat(const QGLFramebufferObjectFormat& other);
void delete_QGLFramebufferObjectFormat(QGLFramebufferObjectFormat* obj) { delete obj; }
QGLFramebufferObject::Attachment attachment(QGLFramebufferObjectFormat* theWrappedObject) const;
unsigned int internalTextureFormat(QGLFramebufferObjectFormat* theWrappedObject) const;
bool __ne__(QGLFramebufferObjectFormat* theWrappedObject, const QGLFramebufferObjectFormat& other) const;
QGLFramebufferObjectFormat* operator_assign(QGLFramebufferObjectFormat* theWrappedObject, const QGLFramebufferObjectFormat& other);
bool __eq__(QGLFramebufferObjectFormat* theWrappedObject, const QGLFramebufferObjectFormat& other) const;
int samples(QGLFramebufferObjectFormat* theWrappedObject) const;
void setAttachment(QGLFramebufferObjectFormat* theWrappedObject, QGLFramebufferObject::Attachment attachment);
void setInternalTextureFormat(QGLFramebufferObjectFormat* theWrappedObject, unsigned int internalTextureFormat);
void setSamples(QGLFramebufferObjectFormat* theWrappedObject, int samples);
void setTextureTarget(QGLFramebufferObjectFormat* theWrappedObject, unsigned int target);
unsigned int textureTarget(QGLFramebufferObjectFormat* theWrappedObject) const;
};
class PythonQtShell_QGLPixelBuffer : public QGLPixelBuffer
{
public:
PythonQtShell_QGLPixelBuffer(const QSize& size, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0):QGLPixelBuffer(size, format, shareWidget),_wrapper(NULL) {};
PythonQtShell_QGLPixelBuffer(int width, int height, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0):QGLPixelBuffer(width, height, format, shareWidget),_wrapper(NULL) {};
virtual int devType() const;
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const;
virtual QPaintEngine* paintEngine() const;
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QGLPixelBuffer : public QGLPixelBuffer
{ public:
inline int promoted_devType() const { return QGLPixelBuffer::devType(); }
inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QGLPixelBuffer::metric(metric); }
inline QPaintEngine* promoted_paintEngine() const { return QGLPixelBuffer::paintEngine(); }
};
class PythonQtWrapper_QGLPixelBuffer : public QObject
{ Q_OBJECT
public:
public slots:
QGLPixelBuffer* new_QGLPixelBuffer(const QSize& size, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0);
QGLPixelBuffer* new_QGLPixelBuffer(int width, int height, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0);
void delete_QGLPixelBuffer(QGLPixelBuffer* obj) { delete obj; }
unsigned int bindTexture(QGLPixelBuffer* theWrappedObject, const QImage& image, unsigned int target = 0x0DE1);
unsigned int bindTexture(QGLPixelBuffer* theWrappedObject, const QPixmap& pixmap, unsigned int target = 0x0DE1);
unsigned int bindTexture(QGLPixelBuffer* theWrappedObject, const QString& fileName);
bool bindToDynamicTexture(QGLPixelBuffer* theWrappedObject, unsigned int texture);
void deleteTexture(QGLPixelBuffer* theWrappedObject, unsigned int texture_id);
int devType(QGLPixelBuffer* theWrappedObject) const;
bool doneCurrent(QGLPixelBuffer* theWrappedObject);
void drawTexture(QGLPixelBuffer* theWrappedObject, const QPointF& point, unsigned int textureId, unsigned int textureTarget = 0x0DE1);
void drawTexture(QGLPixelBuffer* theWrappedObject, const QRectF& target, unsigned int textureId, unsigned int textureTarget = 0x0DE1);
QGLFormat format(QGLPixelBuffer* theWrappedObject) const;
unsigned int generateDynamicTexture(QGLPixelBuffer* theWrappedObject) const;
Qt::HANDLE handle(QGLPixelBuffer* theWrappedObject) const;
bool static_QGLPixelBuffer_hasOpenGLPbuffers();
bool isValid(QGLPixelBuffer* theWrappedObject) const;
bool makeCurrent(QGLPixelBuffer* theWrappedObject);
int metric(QGLPixelBuffer* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const;
QPaintEngine* paintEngine(QGLPixelBuffer* theWrappedObject) const;
void releaseFromDynamicTexture(QGLPixelBuffer* theWrappedObject);
QSize size(QGLPixelBuffer* theWrappedObject) const;
QImage toImage(QGLPixelBuffer* theWrappedObject) const;
void updateDynamicTexture(QGLPixelBuffer* theWrappedObject, unsigned int texture_id) const;
};
class PythonQtShell_QGLShader : public QGLShader
{
public:
PythonQtShell_QGLShader(QGLShader::ShaderType type, QObject* parent = 0):QGLShader(type, parent),_wrapper(NULL) {};
PythonQtShell_QGLShader(QGLShader::ShaderType type, const QGLContext* context, QObject* parent = 0):QGLShader(type, context, parent),_wrapper(NULL) {};
virtual void childEvent(QChildEvent* arg__1);
virtual void customEvent(QEvent* arg__1);
virtual bool event(QEvent* arg__1);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual void timerEvent(QTimerEvent* arg__1);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QGLShader : public QObject
{ Q_OBJECT
public:
Q_ENUMS(ShaderTypeBit )
Q_FLAGS(ShaderType )
enum ShaderTypeBit{
Vertex = QGLShader::Vertex, Fragment = QGLShader::Fragment};
Q_DECLARE_FLAGS(ShaderType, ShaderTypeBit)
public slots:
QGLShader* new_QGLShader(QGLShader::ShaderType type, QObject* parent = 0);
QGLShader* new_QGLShader(QGLShader::ShaderType type, const QGLContext* context, QObject* parent = 0);
void delete_QGLShader(QGLShader* obj) { delete obj; }
bool compileSourceCode(QGLShader* theWrappedObject, const QByteArray& source);
bool compileSourceCode(QGLShader* theWrappedObject, const QString& source);
bool compileSourceCode(QGLShader* theWrappedObject, const char* source);
bool compileSourceFile(QGLShader* theWrappedObject, const QString& fileName);
bool isCompiled(QGLShader* theWrappedObject) const;
QString log(QGLShader* theWrappedObject) const;
unsigned int shaderId(QGLShader* theWrappedObject) const;
QGLShader::ShaderType shaderType(QGLShader* theWrappedObject) const;
QByteArray sourceCode(QGLShader* theWrappedObject) const;
};
class PythonQtShell_QGLShaderProgram : public QGLShaderProgram
{
public:
PythonQtShell_QGLShaderProgram(QObject* parent = 0):QGLShaderProgram(parent),_wrapper(NULL) {};
PythonQtShell_QGLShaderProgram(const QGLContext* context, QObject* parent = 0):QGLShaderProgram(context, parent),_wrapper(NULL) {};
virtual void childEvent(QChildEvent* arg__1);
virtual void customEvent(QEvent* arg__1);
virtual bool event(QEvent* arg__1);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual bool link();
virtual void timerEvent(QTimerEvent* arg__1);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QGLShaderProgram : public QGLShaderProgram
{ public:
inline bool promoted_link() { return QGLShaderProgram::link(); }
};
class PythonQtWrapper_QGLShaderProgram : public QObject
{ Q_OBJECT
public:
public slots:
QGLShaderProgram* new_QGLShaderProgram(QObject* parent = 0);
QGLShaderProgram* new_QGLShaderProgram(const QGLContext* context, QObject* parent = 0);
void delete_QGLShaderProgram(QGLShaderProgram* obj) { delete obj; }
bool addShader(QGLShaderProgram* theWrappedObject, QGLShader* shader);
bool addShaderFromSourceCode(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const QByteArray& source);
bool addShaderFromSourceCode(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const QString& source);
bool addShaderFromSourceCode(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const char* source);
bool addShaderFromSourceFile(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const QString& fileName);
int attributeLocation(QGLShaderProgram* theWrappedObject, const QByteArray& name) const;
int attributeLocation(QGLShaderProgram* theWrappedObject, const QString& name) const;
int attributeLocation(QGLShaderProgram* theWrappedObject, const char* name) const;
bool bind(QGLShaderProgram* theWrappedObject);
void bindAttributeLocation(QGLShaderProgram* theWrappedObject, const QByteArray& name, int location);
void bindAttributeLocation(QGLShaderProgram* theWrappedObject, const QString& name, int location);
void bindAttributeLocation(QGLShaderProgram* theWrappedObject, const char* name, int location);
void disableAttributeArray(QGLShaderProgram* theWrappedObject, const char* name);
void disableAttributeArray(QGLShaderProgram* theWrappedObject, int location);
void enableAttributeArray(QGLShaderProgram* theWrappedObject, const char* name);
void enableAttributeArray(QGLShaderProgram* theWrappedObject, int location);
bool static_QGLShaderProgram_hasOpenGLShaderPrograms(const QGLContext* context = 0);
bool isLinked(QGLShaderProgram* theWrappedObject) const;
bool link(QGLShaderProgram* theWrappedObject);
QString log(QGLShaderProgram* theWrappedObject) const;
unsigned int programId(QGLShaderProgram* theWrappedObject) const;
void release(QGLShaderProgram* theWrappedObject);
void removeAllShaders(QGLShaderProgram* theWrappedObject);
void removeShader(QGLShaderProgram* theWrappedObject, QGLShader* shader);
void setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D* values, int stride = 0);
void setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D* values, int stride = 0);
void setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D* values, int stride = 0);
void setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const float* values, int tupleSize, int stride = 0);
void setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const QVector2D* values, int stride = 0);
void setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const QVector3D* values, int stride = 0);
void setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const QVector4D* values, int stride = 0);
void setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const float* values, int tupleSize, int stride = 0);
void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QColor& value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D& value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D& value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D& value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const float* values, int columns, int rows);
void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, float value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, float x, float y);
void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, float x, float y, float z);
void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, float x, float y, float z, float w);
void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QColor& value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QVector2D& value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QVector3D& value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QVector4D& value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const float* values, int columns, int rows);
void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, float value);
void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, float x, float y);
void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, float x, float y, float z);
void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, float x, float y, float z, float w);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QColor& color);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix4x4& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QPoint& point);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QPointF& point);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QSize& size);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QSizeF& size);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QTransform& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, float value);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, float x, float y);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, float x, float y, float z);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, float x, float y, float z, float w);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, int value);
void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, unsigned int value);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QColor& color);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QMatrix4x4& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QPoint& point);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QPointF& point);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QSize& size);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QSizeF& size);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QTransform& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QVector2D& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QVector3D& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QVector4D& value);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, float value);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, float x, float y);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, float x, float y, float z);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, float x, float y, float z, float w);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, int value);
void setUniformValue(QGLShaderProgram* theWrappedObject, int location, unsigned int value);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix4x4* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const float* values, int count, int tupleSize);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const int* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const unsigned int* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QMatrix4x4* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QVector2D* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QVector3D* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QVector4D* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const float* values, int count, int tupleSize);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const int* values, int count);
void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const unsigned int* values, int count);
QList<QGLShader* > shaders(QGLShaderProgram* theWrappedObject) const;
int uniformLocation(QGLShaderProgram* theWrappedObject, const QByteArray& name) const;
int uniformLocation(QGLShaderProgram* theWrappedObject, const QString& name) const;
int uniformLocation(QGLShaderProgram* theWrappedObject, const char* name) const;
};
class PythonQtShell_QGLWidget : public QGLWidget
{
public:
PythonQtShell_QGLWidget(QGLContext* context, QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0):QGLWidget(context, parent, shareWidget, f),_wrapper(NULL) {};
PythonQtShell_QGLWidget(QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0):QGLWidget(parent, shareWidget, f),_wrapper(NULL) {};
PythonQtShell_QGLWidget(const QGLFormat& format, QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0):QGLWidget(format, parent, shareWidget, f),_wrapper(NULL) {};
virtual void actionEvent(QActionEvent* arg__1);
virtual void changeEvent(QEvent* arg__1);
virtual void childEvent(QChildEvent* arg__1);
virtual void closeEvent(QCloseEvent* arg__1);
virtual void contextMenuEvent(QContextMenuEvent* arg__1);
virtual void customEvent(QEvent* arg__1);
virtual int devType() const;
virtual void dragEnterEvent(QDragEnterEvent* arg__1);
virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
virtual void dragMoveEvent(QDragMoveEvent* arg__1);
virtual void dropEvent(QDropEvent* arg__1);
virtual void enterEvent(QEvent* arg__1);
virtual bool event(QEvent* arg__1);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual void focusInEvent(QFocusEvent* arg__1);
virtual bool focusNextPrevChild(bool next);
virtual void focusOutEvent(QFocusEvent* arg__1);
virtual void glDraw();
virtual void glInit();
virtual int heightForWidth(int arg__1) const;
virtual void hideEvent(QHideEvent* arg__1);
virtual void initializeGL();
virtual void initializeOverlayGL();
virtual void inputMethodEvent(QInputMethodEvent* arg__1);
virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
virtual void keyPressEvent(QKeyEvent* arg__1);
virtual void keyReleaseEvent(QKeyEvent* arg__1);
virtual void languageChange();
virtual void leaveEvent(QEvent* arg__1);
virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
virtual QSize minimumSizeHint() const;
virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
virtual void mouseMoveEvent(QMouseEvent* arg__1);
virtual void mousePressEvent(QMouseEvent* arg__1);
virtual void mouseReleaseEvent(QMouseEvent* arg__1);
virtual void moveEvent(QMoveEvent* arg__1);
virtual QPaintEngine* paintEngine() const;
virtual void paintEvent(QPaintEvent* arg__1);
virtual void paintGL();
virtual void paintOverlayGL();
virtual void resizeEvent(QResizeEvent* arg__1);
virtual void resizeGL(int w, int h);
virtual void resizeOverlayGL(int w, int h);
virtual void showEvent(QShowEvent* arg__1);
virtual QSize sizeHint() const;
virtual void tabletEvent(QTabletEvent* arg__1);
virtual void timerEvent(QTimerEvent* arg__1);
virtual void updateGL();
virtual void updateOverlayGL();
virtual void wheelEvent(QWheelEvent* arg__1);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QGLWidget : public QGLWidget
{ public:
inline bool promoted_event(QEvent* arg__1) { return QGLWidget::event(arg__1); }
inline void promoted_glDraw() { QGLWidget::glDraw(); }
inline void promoted_glInit() { QGLWidget::glInit(); }
inline void promoted_initializeGL() { QGLWidget::initializeGL(); }
inline void promoted_initializeOverlayGL() { QGLWidget::initializeOverlayGL(); }
inline QPaintEngine* promoted_paintEngine() const { return QGLWidget::paintEngine(); }
inline void promoted_paintEvent(QPaintEvent* arg__1) { QGLWidget::paintEvent(arg__1); }
inline void promoted_paintGL() { QGLWidget::paintGL(); }
inline void promoted_paintOverlayGL() { QGLWidget::paintOverlayGL(); }
inline void promoted_resizeEvent(QResizeEvent* arg__1) { QGLWidget::resizeEvent(arg__1); }
inline void promoted_resizeGL(int w, int h) { QGLWidget::resizeGL(w, h); }
inline void promoted_resizeOverlayGL(int w, int h) { QGLWidget::resizeOverlayGL(w, h); }
inline void promoted_updateGL() { QGLWidget::updateGL(); }
inline void promoted_updateOverlayGL() { QGLWidget::updateOverlayGL(); }
};
class PythonQtWrapper_QGLWidget : public QObject
{ Q_OBJECT
public:
public slots:
QGLWidget* new_QGLWidget(QGLContext* context, QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0);
QGLWidget* new_QGLWidget(QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0);
QGLWidget* new_QGLWidget(const QGLFormat& format, QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0);
void delete_QGLWidget(QGLWidget* obj) { delete obj; }
unsigned int bindTexture(QGLWidget* theWrappedObject, const QImage& image, unsigned int target = 0x0DE1, int format = 0x1908);
unsigned int bindTexture(QGLWidget* theWrappedObject, const QImage& image, unsigned int target, int format, QGLContext::BindOptions options);
unsigned int bindTexture(QGLWidget* theWrappedObject, const QPixmap& pixmap, unsigned int target = 0x0DE1, int format = 0x1908);
unsigned int bindTexture(QGLWidget* theWrappedObject, const QPixmap& pixmap, unsigned int target, int format, QGLContext::BindOptions options);
unsigned int bindTexture(QGLWidget* theWrappedObject, const QString& fileName);
const QGLColormap* colormap(QGLWidget* theWrappedObject) const;
const QGLContext* context(QGLWidget* theWrappedObject) const;
QImage static_QGLWidget_convertToGLFormat(const QImage& img);
void deleteTexture(QGLWidget* theWrappedObject, unsigned int tx_id);
void doneCurrent(QGLWidget* theWrappedObject);
bool doubleBuffer(QGLWidget* theWrappedObject) const;
void drawTexture(QGLWidget* theWrappedObject, const QPointF& point, unsigned int textureId, unsigned int textureTarget = 0x0DE1);
void drawTexture(QGLWidget* theWrappedObject, const QRectF& target, unsigned int textureId, unsigned int textureTarget = 0x0DE1);
bool event(QGLWidget* theWrappedObject, QEvent* arg__1);
QGLFormat format(QGLWidget* theWrappedObject) const;
void glDraw(QGLWidget* theWrappedObject);
void glInit(QGLWidget* theWrappedObject);
QImage grabFrameBuffer(QGLWidget* theWrappedObject, bool withAlpha = false);
void initializeGL(QGLWidget* theWrappedObject);
void initializeOverlayGL(QGLWidget* theWrappedObject);
bool isSharing(QGLWidget* theWrappedObject) const;
bool isValid(QGLWidget* theWrappedObject) const;
void makeCurrent(QGLWidget* theWrappedObject);
void makeOverlayCurrent(QGLWidget* theWrappedObject);
const QGLContext* overlayContext(QGLWidget* theWrappedObject) const;
QPaintEngine* paintEngine(QGLWidget* theWrappedObject) const;
void paintEvent(QGLWidget* theWrappedObject, QPaintEvent* arg__1);
void paintGL(QGLWidget* theWrappedObject);
void paintOverlayGL(QGLWidget* theWrappedObject);
void qglClearColor(QGLWidget* theWrappedObject, const QColor& c) const;
void qglColor(QGLWidget* theWrappedObject, const QColor& c) const;
QPixmap renderPixmap(QGLWidget* theWrappedObject, int w = 0, int h = 0, bool useContext = false);
void renderText(QGLWidget* theWrappedObject, double x, double y, double z, const QString& str, const QFont& fnt = QFont(), int listBase = 2000);
void renderText(QGLWidget* theWrappedObject, int x, int y, const QString& str, const QFont& fnt = QFont(), int listBase = 2000);
void resizeEvent(QGLWidget* theWrappedObject, QResizeEvent* arg__1);
void resizeGL(QGLWidget* theWrappedObject, int w, int h);
void resizeOverlayGL(QGLWidget* theWrappedObject, int w, int h);
void setColormap(QGLWidget* theWrappedObject, const QGLColormap& map);
void swapBuffers(QGLWidget* theWrappedObject);
};
|