?? nehewidget.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 + -