HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  ~RE_Texture1DMap() override;
27 
28  /// Returns the amount of main memory owned by this map..
29  /// (graphics memory is owned by the returned RE_Texture)
30  int64 getMemoryUsage(bool inclusive) const override;
31 
33  RE_TextureMap *clone() const override;
34 
35  // Public interface is in RE_TextureMap
36 
37 private:
38  bool buildTexture(RE_Render *r, RE_Texture *tex,
39  void *data) override;
40  bool getNodeSource(const char *map, const char *rel,
41  void **mapptr,
42  RE_TextureDimension &textype,
43  RE_GPUType &datatype,
44  int &vectorsize,
45  int &w, int &h, int &d) override;
46  bool getFileSource(const char *map,
47  void **mapptr,
48  RE_TextureDimension &textype,
49  RE_GPUType &datatype,
50  int &vectorsize,
51  int &w, int &h, int &d, bool) override;
52  void buildTextureName(UT_String &, const char *map,
53  const char *rel) override;
54 
55  int myOpId;
56  int myOpVersion;
57  UT_Vector4Array myData;
58  int myVectorSize;
59 };
60 
61 #endif
virtual RE_TextureMap * clone() const =0
#define RE_API
Definition: RE_API.h:10
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
RE_GPUType
Definition: RE_Types.h:44
long long int64
Definition: SYS_Types.h:116
virtual void buildTextureName(UT_String &cachedname, const char *map, const char *rel)
virtual int64 getMemoryUsage(bool inclusive) const
GLfloat GLfloat GLfloat GLfloat h
Definition: glcorearb.h:2002
virtual bool getFileSource(const char *map, void **mapptr, RE_TextureDimension &textype, RE_GPUType &datatype, int &vectorsize, int &w, int &h, int &d, bool preload_only)
RE_TextureDimension getMapType() override
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:857
GLboolean r
Definition: glcorearb.h:1222
virtual bool buildTexture(RE_Render *r, RE_Texture *tex, void *data)=0
Definition: format.h:895