VTK
vtkMesaTexture.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMesaTexture.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef __vtkMesaTexture_h
23 #define __vtkMesaTexture_h
24 
25 #include "vtkTexture.h"
26 
27 class vtkWindow;
28 class vtkMesaRenderer;
29 class vtkRenderWindow;
30 
32 {
33 public:
34  static vtkMesaTexture *New();
35  vtkTypeMacro(vtkMesaTexture,vtkTexture);
36  virtual void PrintSelf(ostream& os, vtkIndent indent);
37 
39  void Load(vtkRenderer *ren);
40 
46 
47 protected:
49  ~vtkMesaTexture();
50 
51  unsigned char *ResampleToPowerOfTwo(int &xsize, int &ysize,
52  unsigned char *dptr, int bpp);
53 
55  long Index;
56  static long GlobalIndex;
57  vtkRenderWindow *RenderWindow; // RenderWindow used for previous render
58 private:
59  vtkMesaTexture(const vtkMesaTexture&); // Not implemented.
60  void operator=(const vtkMesaTexture&); // Not implemented.
61 };
62 
63 #endif
Mesa texture map.
vtkRenderWindow * RenderWindow
record modification and/or execution time
Definition: vtkTimeStamp.h:33
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkTexture.h:87
abstract specification for renderers
Definition: vtkRenderer.h:69
vtkTimeStamp LoadTime
virtual void Load(vtkRenderer *)
Definition: vtkTexture.h:92
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
a simple class to control print indentation
Definition: vtkIndent.h:37
static vtkTexture * New()
handles properties associated with a texture map
Definition: vtkTexture.h:68
OpenGL renderer.
#define VTK_RENDERING_EXPORT
create a window for renderers to draw into
static long GlobalIndex