RAMSES Documentation  27.0.130
Information for RAMSES users and developers
Texture2D.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // Copyright (C) 2015 BMW Car IT GmbH
3 // -------------------------------------------------------------------------
4 // This Source Code Form is subject to the terms of the Mozilla Public
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
6 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 // -------------------------------------------------------------------------
8 
9 #ifndef RAMSES_TEXTURE2D_H
10 #define RAMSES_TEXTURE2D_H
11 
14 #include "TextureEnums.h"
15 #include "MipLevelData.h"
16 #include "TextureSwizzle.h"
17 
18 namespace ramses
19 {
23  class RAMSES_API Texture2D : public Resource
24  {
25  public:
29  class Texture2DImpl& impl;
30 
36  uint32_t getWidth() const;
37 
43  uint32_t getHeight() const;
44 
51 
58 
59  protected:
63  friend class SceneImpl;
64 
70  explicit Texture2D(Texture2DImpl& pimpl);
71 
75  virtual ~Texture2D();
76 
77  private:
83  Texture2D(const Texture2D& other);
84 
91  Texture2D& operator=(const Texture2D& other);
92  };
93 }
94 
95 #endif
#define RAMSES_API
Definition: APIExport.h:35
The Resource is the base class of all resources, such as arrays and textures.
Definition: Resource.h:20
Texture represents a 2-D texture resource.
Definition: Texture2D.h:24
ETextureFormat getTextureFormat() const
Gets texture format.
class Texture2DImpl & impl
Definition: Texture2D.h:29
uint32_t getWidth() const
Gets texture width.
Texture2D(Texture2DImpl &pimpl)
Constructor of Texture.
virtual ~Texture2D()
Destructor of the Texture.
const TextureSwizzle & getTextureSwizzle() const
Gets swizzle description.
uint32_t getHeight() const
Gets texture height.
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
ETextureFormat
Texture data format.
Definition: TextureEnums.h:40
Information of how color channels of a texture are reordered or set to fixed value (one,...
Definition: TextureSwizzle.h:23