Last change
on this file since 203 was 160, checked in by dmik, 19 years ago |
Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.
|
-
Property svn:keywords
set to
Id
|
File size:
1.0 KB
|
Line | |
---|
1 | /****************************************************************************
|
---|
2 | ** $Id: glbox.h 160 2006-12-11 20:15:57Z dmik $
|
---|
3 | **
|
---|
4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
---|
5 | **
|
---|
6 | ** This file is part of an example program for Qt. This example
|
---|
7 | ** program may be used, distributed and modified without limitation.
|
---|
8 | **
|
---|
9 | *****************************************************************************/
|
---|
10 |
|
---|
11 | /****************************************************************************
|
---|
12 | **
|
---|
13 | ** This is a simple QGLWidget displaying an openGL wireframe box
|
---|
14 | **
|
---|
15 | ****************************************************************************/
|
---|
16 |
|
---|
17 | #ifndef GLBOX_H
|
---|
18 | #define GLBOX_H
|
---|
19 |
|
---|
20 | #include "glcontrolwidget.h"
|
---|
21 |
|
---|
22 | class GLBox : public GLControlWidget
|
---|
23 | {
|
---|
24 | Q_OBJECT
|
---|
25 |
|
---|
26 | public:
|
---|
27 |
|
---|
28 | GLBox( QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
|
---|
29 | ~GLBox();
|
---|
30 |
|
---|
31 | protected:
|
---|
32 |
|
---|
33 | void initializeGL();
|
---|
34 | void paintGL();
|
---|
35 | void resizeGL( int w, int h );
|
---|
36 |
|
---|
37 | virtual GLuint makeObject();
|
---|
38 |
|
---|
39 | private:
|
---|
40 | GLuint object;
|
---|
41 | };
|
---|
42 |
|
---|
43 |
|
---|
44 | #endif // GLBOX_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.