source: trunk/examples/demo/opengl/gltexobj.h@ 203

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.2 KB
Line 
1/****************************************************************************
2** $Id: gltexobj.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 GLTEXOBJ_H
18#define GLTEXOBJ_H
19
20#include "glcontrolwidget.h"
21
22class GLTexobj : public GLControlWidget
23{
24 Q_OBJECT
25
26public:
27 GLTexobj( QWidget* parent, const char* name = 0, WFlags f = 0 );
28 ~GLTexobj();
29
30protected:
31 void animate();
32 void initializeGL();
33 void paintGL();
34 void resizeGL( int w, int h );
35
36 virtual GLuint makeObject( const QImage& tex1, const QImage& tex2 );
37
38 void setRotationImpulse( double x, double y, double z );
39
40private:
41 GLuint object;
42 double impX, impY, impZ;
43};
44
45#endif // GLTEXOBJ_H
Note: See TracBrowser for help on using the repository browser.