2 * Copyright (C) 2013 HERE Global B.V. All rights reserved.
3 * This software, including documentation, is protected by copyright controlled by
4 * HERE Global B.V. (“Software”). All rights are reserved. Copying, including reproducing,
5 * storing, adapting or translating, any or all of this material requires the prior
6 * written consent of HERE Global B.V. You may use this
7 * Software in accordance with the terms and conditions defined in the
8 * HERE Location Platform Services Terms and Conditions, available at
9 * http://developer.here.com/terms-conditions-base
11 * As an additional permission to the above, you may distribute Software,
12 * in object code format as part of an Application, according to, and subject to, terms and
13 * conditions defined in the Tizen Software Development kit (“SDK”) License Agreement.
14 * You may distribute such object code format Application under terms of your choice,
15 * provided that the header and source files of the Software have not been modified.
21 #include "common/HereMaps_global.h"
23 #ifdef TIZEN_MIGRATION
24 #include "graphic/Bitmap.h"
26 #include <FGraphics.h>
29 HERE_MAPS_BEGIN_NAMESPACE
32 * This class encapsulates a GL texture that is a container for map tile bitmaps.
41 * This method is a constructor that initializes a new texture instance with
42 * the bitmap object provided by the caller.
44 * @param rBitmap A constant reference to a bitmap object.
46 GlTexture(const Tizen::Maps::Bitmap& rBitmap);
49 * This method is the destructor.
54 * This method retrieves the texture id.
56 * @return A value representing the texture id.
58 unsigned int GetTextureId() const;
61 * This method sets the texture id.
63 * @param uId A value representing the texture id.
65 void SetTextureId(unsigned int uId);
68 * This method checks if the called instance wraps a valid GL texture
74 * This method checks if the passed texture handle is a valid GL texture
77 static bool IsValid(unsigned int uId);
80 HERE_MAPS_NO_COPY_NO_ASSIGN(GlTexture);
83 GlTextureImpl* m_pImpl;
86 HERE_MAPS_END_NAMESPACE