Dali 3D User Interface Engine
atlas.h
Go to the documentation of this file.
1 #ifndef __DALI_ATLAS_H__
2 #define __DALI_ATLAS_H__
3 
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 // EXTERNAL INCLUDES
22 #include <stdint.h>
23 
24 // INTERNAL INCLUDES
29 
30 namespace Dali
31 {
32 
33 namespace Internal DALI_INTERNAL
34 {
35 class Atlas;
36 }
37 
55 class DALI_IMPORT_API Atlas : public Image
56 {
57 public:
58 
59  typedef uint32_t SizeType;
60 
61 public:
62 
74  static Atlas New( SizeType width,
76  Pixel::Format pixelFormat = Pixel::RGBA8888,
77  bool recoverContext = true );
78 
84  Atlas();
85 
94  void Clear( const Vector4& color );
95 
105  bool Upload( BufferImage bufferImage,
106  SizeType xOffset,
107  SizeType yOffset );
108 
117  bool Upload( const std::string& url,
118  SizeType xOffset,
119  SizeType yOffset );
120 
128  bool Upload( PixelDataPtr pixelData,
129  SizeType xOffset,
130  SizeType yOffset );
140  static Atlas DownCast( BaseHandle handle );
141 
147  ~Atlas();
148 
154  Atlas( const Atlas& handle );
155 
162  Atlas& operator=( const Atlas& rhs);
163 
164 public: // Not intended for application developers
165 
166  explicit DALI_INTERNAL Atlas( Internal::Atlas* );
167 };
168 
169 } // namespace Dali
170 
171 #endif // __DALI_ATLAS_H__
Dali Docs Home
Read more about Dali