RAMSES Documentation  27.0.130
Information for RAMSES users and developers
RenderBuffer.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_RENDERBUFFER_H
10 #define RAMSES_RENDERBUFFER_H
11 
14 
15 namespace ramses
16 {
25  {
26  public:
27 
33  uint32_t getWidth() const;
34 
40  uint32_t getHeight() const;
41 
48 
55 
62 
68  uint32_t getSampleCount() const;
69 
73  class RenderBufferImpl& impl;
74 
75  protected:
79  friend class SceneImpl;
80 
86  explicit RenderBuffer(RenderBufferImpl& pimpl);
87 
91  virtual ~RenderBuffer();
92  };
93 }
94 
95 #endif
#define RAMSES_API
Definition: APIExport.h:35
RenderBuffer can be used with RenderTarget as buffer for writing or with TextureSampler as buffer for...
Definition: RenderBuffer.h:25
ERenderBufferFormat getBufferFormat() const
Returns the data format of the RenderBuffer.
uint32_t getHeight() const
Returns the height of the RenderBuffer in pixels.
uint32_t getWidth() const
Returns the width of the RenderBuffer in pixels.
ERenderBufferAccessMode getAccessMode() const
Returns the read/write access mode of the RenderBuffer.
class RenderBufferImpl & impl
Definition: RenderBuffer.h:73
RenderBuffer(RenderBufferImpl &pimpl)
Constructor for RenderBuffer.
uint32_t getSampleCount() const
Returns the sample count used for MSAA.
ERenderBufferType getBufferType() const
Returns the type of the RenderBuffer.
virtual ~RenderBuffer()
Destructor of the RenderBuffer.
The SceneObject is a base class for all client API objects owned by a Scene.
Definition: SceneObject.h:20
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
ERenderBufferFormat
Enum for format of a RenderBuffer.
Definition: TextureEnums.h:136
ERenderBufferType
Enum for type of a RenderBuffer.
Definition: TextureEnums.h:128
ERenderBufferAccessMode
Enum for access mode of a RenderBuffer.
Definition: TextureEnums.h:169