2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiEffects_RendererEngineModelTexture2DAttachmentProperty.cpp
20 * @brief This file contains implementation of Texture2DAttachmentProperty class
24 #include <renderer/engine-model/FUiEffects_RendererEngineModelTexture2DAttachmentProperty.h>
26 namespace Tizen { namespace Ui { namespace Effects { namespace _Renderer { namespace EngineModel
30 Texture2dAttachmentProperty::Visit(PropertyVisitor& v)
32 v.OnTexture2DAttachmentProperty(*this);
36 Texture2dAttachmentProperty::Texture2dAttachmentProperty(
38 InternalFormat::Value internalFormat,
39 DataFormat::Value dataFormat,
40 DataType::Value dataType,
41 FilterType::Value minFilter,
42 FilterType::Value magFilter,
43 WrapType::Value wrapS,
44 WrapType::Value wrapT):
45 _generateMipmaps(generateMipmaps),
46 _internalFormat(internalFormat),
47 _dataFormat(dataFormat),
49 _minFilter(minFilter),
50 _magFilter(magFilter),
57 Texture2dAttachmentProperty::~Texture2dAttachmentProperty(void)
66 Texture2dAttachmentProperty::SetMipmapGeneration(bool generateMipmaps)
68 _generateMipmaps = generateMipmaps;
73 Texture2dAttachmentProperty::GetGenerateMipmaps(void) const
75 return _generateMipmaps;
78 TextureProperty::InternalFormat::Value
79 Texture2dAttachmentProperty::GetInternalFormat(void) const
81 return _internalFormat;
84 TextureProperty::DataFormat::Value
85 Texture2dAttachmentProperty::GetDataFormat(void) const
90 TextureProperty::DataType::Value
91 Texture2dAttachmentProperty::GetDataType(void) const
96 TextureProperty::FilterType::Value
97 Texture2dAttachmentProperty::GetMinFilter(void) const
102 TextureProperty::FilterType::Value
103 Texture2dAttachmentProperty::GetMagFilter(void) const
108 TextureProperty::WrapType::Value
109 Texture2dAttachmentProperty::GetWrapS(void) const
114 TextureProperty::WrapType::Value
115 Texture2dAttachmentProperty::GetWrapT(void) const
120 TextureProperty::WrapType::Value
121 Texture2dAttachmentProperty::GetWrapR(void) const
123 return WrapType::CLAMP_TO_EDGE;
127 Texture2dAttachmentProperty::GetCache(void)
133 Texture2dAttachmentProperty::SetCache(CachePtr pCache)
144 Texture2dAttachmentProperty::TouchCache(void)
148 __pCache->Invalidate();
153 }}}}} //Tizen::Ui::Effects::_Renderer::EngineModel