5 * Copyright (c) 2016 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/texture.h>
22 #include <dali/public-api/rendering/texture-set.h>
23 #include <dali/public-api/rendering/sampler.h>
32 * Creates an instance of the GameTexture
37 * Creates an instance of the GameTexture with given filename
39 GameTexture( const char* filename );
42 * Destroys an instance of the GameTexture
47 * @brief Loads texture from file
48 * @return Returns true if success
50 bool Load( const char* filename );
53 * Checks status of texture, returns false if failed to load
54 * @return true if texture has been loaded, false otherwise
59 * @brief Returns DALi texture set associated with the GameTexture
60 * @return Initialised TextureSet
62 Dali::TextureSet& GetTextureSet();
65 * Returns unique Id of the texture
66 * @return Value of unique Id
68 uint32_t GetUniqueId();
72 Dali::Texture mTexture;
73 Dali::Sampler mSampler;
74 Dali::TextureSet mTextureSet;