SVG5/qopengltexturebutton.h
2025-10-12 13:55:56 +09:00

33 lines
569 B
C++

#ifndef QOPENGLTEXTUREBUTTON_H
#define QOPENGLTEXTUREBUTTON_H
#include <QObject>
#include <QImage>
#include <QOpenGLTexture>
class QOpenGLTextureButton : public QObject
{
Q_OBJECT
public:
explicit QOpenGLTextureButton(QObject *parent = 0);
virtual ~QOpenGLTextureButton();
void LoadImage(QString strNormal, QString strClicked);
QOpenGLTexture *GetTextureNormal();
QOpenGLTexture* GetTextureClicked();
signals:
public slots:
protected:
QOpenGLTexture* m_pNormal;
QOpenGLTexture* m_pClicked;
};
#endif // QOPENGLTEXTUREBUTTON_H