X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Frender%2Frenderers%2Frender-texture.h;h=771fca072acc8cdd1f26ee8dc64aac114580284c;hb=4d75040ab200bd306ec5a48f2a617480062eef4c;hp=8497b83f1f52a4991fdaf8fe15d50962b0eb491d;hpb=68376524a0f3362fa7f0a52ffb005f611fdf3175;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/render/renderers/render-texture.h b/dali/internal/render/renderers/render-texture.h old mode 100644 new mode 100755 index 8497b83..771fca0 --- a/dali/internal/render/renderers/render-texture.h +++ b/dali/internal/render/renderers/render-texture.h @@ -21,6 +21,7 @@ #include // INTERNAL INCLUDES +#include // Dali::ImageDimensions #include #include #include @@ -46,10 +47,9 @@ public: * Constructor * @param[in] type The type of the texture * @param[in] format The format of the pixel data - * @param[in] width The width of the texture - * @param[in] height The height of the texture + * @param[in] size The size of the texture */ - Texture( Type type, Pixel::Format format, unsigned int width, unsigned int height ); + Texture( Type type, Pixel::Format format, ImageDimensions size ); /** * Constructor from native image @@ -67,7 +67,7 @@ public: * Creates the texture and reserves memory for the first mipmap level * @param[in] context The GL context */ - void Initialize(Context& context); + void Initialize( Context& context ); /** * Deletes the texture from the GPU @@ -119,24 +119,6 @@ public: } /** - * Get the width of the texture - * @return Width of the texture - */ - unsigned int GetWidth() const - { - return mWidth; - } - - /** - * Get the height of the texture - * @return Height of the texture - */ - unsigned int GetHeight() const - { - return mHeight; - } - - /** * Get the type of the texture * @return Type of the texture */ @@ -163,19 +145,20 @@ private: */ void ApplySampler( Context& context, Render::Sampler* sampler ); + NativeImageInterfacePtr mNativeImage; ///< Pointer to native image + Render::Sampler mSampler; ///< The current sampler state GLuint mId; ///< Id of the texture GLuint mTarget; ///< Specifies the target to which the texture is bound. - Type mType; ///< Type of the texture - Render::Sampler mSampler; ///< The current sampler state - NativeImageInterfacePtr mNativeImage; ///< Pointer to native image - GLenum mGlFormat; ///< The gl format of the pixel data GLint mGlInternalFormat; ///< The gl internal format of the pixel data + GLenum mGlFormat; ///< The gl format of the pixel data GLenum mPixelDataType; ///< The data type of the pixel data - unsigned int mWidth; ///< Width of the texture - unsigned int mHeight; ///< Height of the texture - unsigned int mMaxMipMapLevel; ///< Maximum mipmap level + uint16_t mWidth; ///< Width of the texture + uint16_t mHeight; ///< Height of the texture + uint16_t mMaxMipMapLevel; ///< Maximum mipmap level + Type mType:3; ///< Type of the texture bool mHasAlpha : 1; ///< Whether the format has an alpha channel bool mIsCompressed : 1; ///< Whether the format is compressed + };