source: trunk/packages/vizservers/nanovis/Texture1D.h @ 1489

Last change on this file since 1489 was 934, checked in by gah, 17 years ago

Makefile cleanup: add library for transfer-function, no longer compile Socket.o, etc.

File size: 1.1 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 * Texture1D.h: 1d 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_1D_H_
16#define _TEXTURE_1D_H_
17
18#include <GL/glew.h>
19
20class Texture1D {
21public:
22    int width;
23    bool gl_resource_allocated;
24   
25    GLuint type;
26    GLuint id;
27    GLuint tex_unit;
28
29    Texture1D();
30    Texture1D(int length, int type = GL_UNSIGNED_BYTE);
31    ~Texture1D();
32       
33    void activate();
34    void deactivate();
35    GLuint initialize_float_rgba(float* data);
36    void update_float_rgba(float* data);
37    static void check_max_size();
38    static void check_max_unit();
39};
40
41#endif
Note: See TracBrowser for help on using the repository browser.