📄 teapots.h
字号:
#ifndef TEAPOTS_H#define TEAPOTS_H#include <QGLFramebufferObject>#include <QGLWidget>class Teapots : public QGLWidget{ Q_OBJECTpublic: Teapots(QWidget *parent = 0); ~Teapots();protected: void initializeGL(); void resizeGL(int width, int height); void paintGL(); void mousePressEvent(QMouseEvent *event); void mouseMoveEvent(QMouseEvent *event); void mouseReleaseEvent(QMouseEvent *event);private: void createGLTeapotObject(); void drawTeapot(GLfloat x, GLfloat y, GLfloat ambientR, GLfloat ambientG, GLfloat ambientB, GLfloat diffuseR, GLfloat diffuseG, GLfloat diffuseB, GLfloat specularR, GLfloat specularG, GLfloat specularB, GLfloat shininess); void drawTeapots(); QGLFramebufferObject *fbObject; GLuint glTeapotObject; QPoint rubberBandCorner1; QPoint rubberBandCorner2; bool rubberBandIsShown;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -