HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_Texture2DMap.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 2D texture map stored in the texture cache. This class is
10  * primarily responsible for fetching images from various 2D sources and
11  * creating the texture for them.
12  */
13 
14 #ifndef __RE_Texture2DMap_h__
15 #define __RE_Texture2DMap_h__
16 
17 #include "RE_API.h"
18 #include "RE_TextureMap.h"
19 
21 {
22 public:
24  virtual ~RE_Texture2DMap();
25 
26  /// Returns the amount of main memory (NOT graphics memory!)
27  /// owned by this RE_Texture2DMap.
28  virtual int64 getMemoryUsage(bool inclusive) const;
29 
31  virtual RE_TextureMap *clone() const;
32 
33  // Public interface is in RE_TextureMap
34 
35 private:
36  virtual bool buildTexture(RE_Render *r, RE_Texture *tex, void *data);
37  virtual bool getNodeSource(const char *map, const char *rel,
38  void **mapptr,
39  RE_TextureDimension &textype,
40  RE_GPUType &datatype,
41  int &vectorsize,
42  int &w, int &h, int &d);
43  virtual bool getFileSource(const char *map,
44  void **mapptr,
45  RE_TextureDimension &textype,
46  RE_GPUType &datatype,
47  int &vectorsize,
48  int &w, int &h, int &d);
49  virtual void buildTextureName(UT_String &,
50  const char *map, const char *rel);
51 
52  virtual void cachedTextureFound(RE_Texture *tex);
53 
54  fpreal myOpTime;
55  size_t myOpVersion;
56  int myOpID;
57  TIL_Raster *myCopRaster;
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 RE_TextureDimension getMapType()
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:107
RE_GPUType
Definition: RE_Types.h:44
virtual void cachedTextureFound(RE_Texture *tex)
virtual void buildTextureName(UT_String &cachedname, const char *map, const char *rel)
virtual int64 getMemoryUsage(bool inclusive) const
GLboolean * data
Definition: glcorearb.h:130
GLfloat GLfloat GLfloat GLfloat h
Definition: glcorearb.h:2001
double fpreal
Definition: SYS_Types.h:270
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