source: trunk/packages/vizservers/nanovis/Texture2D.h @ 2798

Last change on this file since 2798 was 2798, checked in by ldelgass, 12 years ago

Add emacs mode magic line in preparation for indentation cleanup

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * ----------------------------------------------------------------------
4 * Texture2D.h: 2d texture class
5 *
6 * ======================================================================
7 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
8 *           Purdue Rendering and Perceptualization Lab (PURPL)
9 *
10 *  Copyright (c) 2004-2006  Purdue Research Foundation
11 *
12 *  See the file "license.terms" for information on usage and
13 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14 * ======================================================================
15 */
16
17#ifndef _TEXTURE_2D_H_
18#define _TEXTURE_2D_H_
19
20#include <GL/glew.h>
21
22class Texture2D{
23       
24public:
25  int width;
26  int height;
27
28  GLuint type;
29  GLuint id;
30  GLuint interp_type;
31  int n_components;
32
33  Texture2D();
34  Texture2D(int width, int height, GLuint type, GLuint interp, int n, float* data);
35  ~Texture2D();
36       
37  void activate();
38  void deactivate();
39  void enable();
40  void disable();
41  GLuint initialize(float* data);
42  static void check_max_size();
43  static void check_max_unit();
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.