5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 #include <dali/public-api/rendering/sampler.h>
22 #include <dali/public-api/rendering/texture-set.h>
23 #include <dali/public-api/rendering/texture.h>
31 * Creates an instance of the GameTexture
36 * Creates an instance of the GameTexture with given filename
38 GameTexture(const char* filename);
41 * Destroys an instance of the GameTexture
46 * @brief Loads texture from file
47 * @return Returns true if success
49 bool Load(const char* filename);
52 * Checks status of texture, returns false if failed to load
53 * @return true if texture has been loaded, false otherwise
58 * @brief Returns DALi texture set associated with the GameTexture
59 * @return Initialised TextureSet
61 Dali::TextureSet& GetTextureSet();
64 * Returns unique Id of the texture
65 * @return Value of unique Id
67 uint32_t GetUniqueId();
70 Dali::Texture mTexture;
71 Dali::Sampler mSampler;
72 Dali::TextureSet mTextureSet;