HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RE_Texture1DMap.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: Render Library (C++)
7  *
8  * COMMENTS:
9  * Handle to a 1D texture map stored in the texture cache. This class is
10  * primarily responsible for fetching images from various 1D sources and
11  * creating the texture for them (ramps, channel formats)
12  */
13 
14 #ifndef __RE_Texture1DMap_h__
15 #define __RE_Texture1DMap_h__
16 
17 #include "RE_API.h"
18 #include "RE_TextureMap.h"
19 
20 #include <CL/CL_Clip.h>
21 
23 {
24 public:
26  virtual ~RE_Texture1DMap();
27 
28  /// Returns the amount of main memory owned by this map..
29  /// (graphics memory is owned by the returned RE_Texture)
30  virtual int64 getMemoryUsage(bool inclusive) const;
31 
33  virtual RE_TextureMap *clone() const;
34 
35  // Public interface is in RE_TextureMap
36 
37 private:
38  virtual bool buildTexture(RE_Render *r, RE_Texture *tex, void *data);
39  virtual bool getNodeSource(const char *map, const char *rel,
40  void **mapptr,
41  RE_TextureDimension &textype,
42  RE_GPUType &datatype,
43  int &vectorsize,
44  int &w, int &h, int &d);
45  virtual bool getFileSource(const char *map,
46  void **mapptr,
47  RE_TextureDimension &textype,
48  RE_GPUType &datatype,
49  int &vectorsize,
50  int &w, int &h, int &d);
51  virtual void buildTextureName(UT_String &,
52  const char *map, const char *rel);
53 
54  int myOpId;
55  int myOpVersion;
56  UT_Vector4Array myData;
57  int myVectorSize;
58 };
59 
60 #endif
virtual RE_TextureMap * clone() const =0
#define RE_API
Definition: RE_API.h:10
virtual bool getFileSource(const char *map, void **mapptr, RE_TextureDimension &textype, RE_GPUType &datatype, int &vectorsize, int &w, int &h, int &d)
virtual bool getNodeSource(const char *map, const char *rel, void **mapptr, RE_TextureDimension &textype, RE_GPUType &datatype, int &vectorsize, int &w, int &h, int &d)
RE_TextureDimension
long long int64
Definition: SYS_Types.h:100
RE_GPUType
Definition: RE_Types.h:42
virtual void buildTextureName(UT_String &cachedname, const char *map, const char *rel)
virtual int64 getMemoryUsage(bool inclusive) const
GLboolean * data
Definition: glcorearb.h:130
virtual RE_TextureDimension getMapType()
GLfloat GLfloat GLfloat GLfloat h
Definition: glcorearb.h:2001
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:856
GLboolean r
Definition: glcorearb.h:1221
virtual bool buildTexture(RE_Render *r, RE_Texture *tex, void *data)=0