⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nehewidget.h

📁 qt教学例子6
💻 H
字号:
/*    Qt OpenGL Tutorial - Lesson 06    nehewidget.h    v 1.00    2002/12/18    Copyright (C) 2002 Cavendish                       cavendish@qiliang.net                       http://www.qiliang.net/nehe_qt    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.*/#ifndef NEHEWIDGET_H#define NEHEWIDGET_H#include <qgl.h>class NeHeWidget : public QGLWidget{    Q_OBJECTpublic:      NeHeWidget( QWidget* parent = 0, const char* name = 0, bool fs = false );  ~NeHeWidget();protected:  void initializeGL();  void paintGL();  void resizeGL( int width, int height );  void loadGLTextures();  void keyPressEvent( QKeyEvent *e );protected:  bool fullscreen;  GLfloat xRot, yRot, zRot;  GLuint texture[1];  };#endif//NEHEWIDGET_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -