RAMSES Documentation  27.0.130
Information for RAMSES users and developers
ArrayResource.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // Copyright (C) 2020 BMW AG
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_ARRAYRESOURCE_H
10 #define RAMSES_ARRAYRESOURCE_H
11 
14 
15 namespace ramses
16 {
26  {
27  public:
31  class ArrayResourceImpl& impl;
32 
36  uint32_t getNumberOfElements() const;
37 
42 
43  protected:
44 
48  friend class SceneImpl;
49 
55  explicit ArrayResource(ArrayResourceImpl& pimpl);
56 
63 
71 
75  virtual ~ArrayResource();
76  };
77 }
78 
79 #endif
#define RAMSES_API
Definition: APIExport.h:35
The ArrayResource stores a data array of a given type. The data is immutable. The resource can be use...
Definition: ArrayResource.h:26
virtual ~ArrayResource()
Destructor of the ArrayResource.
ArrayResource & operator=(const ArrayResource &other)
Assignment operator of ArrayResource.
EDataType getDataType() const
Returns the data type of the data array.
ArrayResource(ArrayResourceImpl &pimpl)
Constructor of ArrayResource.
ArrayResource(const ArrayResource &other)
Copy constructor of ArrayResource.
class ArrayResourceImpl & impl
Definition: ArrayResource.h:31
uint32_t getNumberOfElements() const
Returns number of elements of the array.
The Resource is the base class of all resources, such as arrays and textures.
Definition: Resource.h:20
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
EDataType
Specifies the data type used for creating data buffers.
Definition: EDataType.h:20