#ifndef __DALI_INTEGRATION_RESOURCE_TYPES_H__
#define __DALI_INTEGRATION_RESOURCE_TYPES_H__
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
// EXTERNAL INCLUDES
#include <stdint.h>
-#include <vector>
+#include <string>
// INTERNAL INCLUDES
+#include <dali/public-api/common/dali-common.h>
+#include <dali/public-api/common/vector-wrapper.h>
#include <dali/public-api/images/image-attributes.h>
#include <dali/integration-api/resource-declarations.h>
ResourceNativeImage,
ResourceTargetImage,
ResourceShader,
- ResourceModel,
ResourceMesh,
ResourceText
};
/**
* The abstract base class for resource types.
*/
-struct DALI_IMPORT_API ResourceType
+struct ResourceType
{
/**
* Constructor.
* BitmapResourceType describes a bitmap resource, which can be requested
* from ResourceLoader::LoadResource() or AllocateBitmapImage.
*/
-struct DALI_IMPORT_API BitmapResourceType : public ResourceType
+struct BitmapResourceType : public ResourceType
{
/**
* Constructor.
* through ResourceManager::AddNativeImage() or requested through ResourceLoader::LoadResource().
* If the adaptor does not support NativeImages, it can fall back to Bitmap type.
*/
-struct DALI_IMPORT_API NativeImageResourceType : public ResourceType
+struct NativeImageResourceType : public ResourceType
{
/**
* Constructor.
* RenderTargetResourceType describes a bitmap resource, which can injected
* through ResourceManager::AddTargetImage()
*/
-struct DALI_IMPORT_API RenderTargetResourceType : public ResourceType
+struct RenderTargetResourceType : public ResourceType
{
/**
* Constructor.
* ShaderResourceType describes a shader program resource, which can be requested
* from PlatformAbstraction::LoadResource()
*/
-struct DALI_IMPORT_API ShaderResourceType : public ResourceType
+struct ShaderResourceType : public ResourceType
{
/**
* Constructor.
* TextResourceType describes a font resource, which can be requested.
* from PlatformAbstraction::LoadResource() No font atlas is created.
*/
-struct DALI_IMPORT_API TextResourceType : public ResourceType
+struct TextResourceType : public ResourceType
{
/**
* Text quality enum
TextResourceType& operator=(const TextResourceType& rhs);
};
-/**
- * ModelResourceType describes a model resource, which can be requested
- * from PlatformAbstraction::LoadResource()
- */
-struct DALI_IMPORT_API ModelResourceType : public ResourceType
-{
- /**
- * Constructor.
- */
- ModelResourceType()
- : ResourceType(ResourceModel)
- {
- }
-
- /**
- * Destructor.
- */
- virtual ~ModelResourceType()
- {
- }
-
- /**
- * @copydoc ResourceType::Clone
- */
- virtual ResourceType* Clone() const
- {
- return new ModelResourceType();
- }
-
-private:
-
- // Undefined copy constructor.
- ModelResourceType(const ModelResourceType& typePath);
-
- // Undefined assignment operator.
- ModelResourceType& operator=(const ModelResourceType& rhs);
-};
-
/**
* MeshResourceType describes a mesh program resource, which can be created
* using ResourceManager::AllocateMesh.
*/
-struct DALI_IMPORT_API MeshResourceType : public ResourceType
+struct MeshResourceType : public ResourceType
{
/**
* Constructor.
} // namespace Dali
#endif // __DALI_INTEGRATION_RESOURCE_TYPES_H__
-