source: trunk/gui/vizservers/nanovis/Texture3D.h @ 273

Last change on this file since 273 was 273, checked in by qiaow, 19 years ago

Added ParticleSystem? class.

File size: 1.2 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 * texture3d.h: 3d texture class
4 *
5 * ======================================================================
6 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
7 *           Purdue Rendering and Perceptualization Lab (PURPL)
8 *
9 *  Copyright (c) 2004-2006  Purdue Research Foundation
10 *
11 *  See the file "license.terms" for information on usage and
12 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * ======================================================================
14 */
15#ifndef _TEXTURE_3D_H_
16#define _TEXTURE_3D_H_
17
18#include <GL/glew.h>
19#include "config.h"
20
21class Texture3D{
22       
23
24public:
25        int width;
26        int height;
27        int depth;
28
29        double aspect_ratio_width;
30        double aspect_ratio_height;
31        double aspect_ratio_depth;
32
33        GLuint type;
34        GLuint interp_type;
35        int n_components;
36        bool gl_resource_allocated;
37
38        GLuint id;
39        GLuint tex_unit;
40
41        Texture3D();
42        Texture3D(int width, int height, int depth, GLuint type, GLuint interp, int n);
43        ~Texture3D();
44       
45        void activate();
46        void deactivate();
47        GLuint initialize(float* data);
48        static void check_max_size();
49        static void check_max_unit();
50
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.