2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Texture2D
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Ref
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getMaxT
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getStringForFormat
|
|
|
|
-- @param self
|
|
|
|
-- @return char#char ret (return value: char)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @overload self, cc.Image, int
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, cc.Image
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Texture2D] initWithImage
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Image image
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @param #int pixelformat
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getMaxS
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2014-06-17 13:53:04 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] releaseGLTexture
|
|
|
|
-- @param self
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] hasPremultipliedAlpha
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getPixelsHigh
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @overload self, int
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Texture2D] getBitsPerPixelForFormat
|
|
|
|
-- @param self
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @param #int pixelformat
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return unsigned int#unsigned int ret (retunr value: unsigned int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getName
|
|
|
|
-- @param self
|
|
|
|
-- @return unsigned int#unsigned int ret (return value: unsigned int)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, char, cc.FontDefinition
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @overload self, char, string, float, size_table, int, int
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Texture2D] initWithString
|
|
|
|
-- @param self
|
|
|
|
-- @param #char char
|
2014-05-01 08:58:35 +08:00
|
|
|
-- @param #string str
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #float float
|
|
|
|
-- @param #size_table size
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @param #int texthalignment
|
|
|
|
-- @param #int textvalignment
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] setMaxT
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] drawInRect
|
|
|
|
-- @param self
|
|
|
|
-- @param #rect_table rect
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getContentSize
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] setAliasTexParameters
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] setAntiAliasTexParameters
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] generateMipmap
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getPixelFormat
|
|
|
|
-- @param self
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @return int#int ret (return value: int)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-05-12 13:44:32 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] setGLProgram
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.GLProgram glprogram
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getContentSizeInPixels
|
|
|
|
-- @param self
|
|
|
|
-- @return size_table#size_table ret (return value: size_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getPixelsWide
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] drawAtPoint
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-05-10 11:47:56 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getGLProgram
|
|
|
|
-- @param self
|
|
|
|
-- @return GLProgram#GLProgram ret (return value: cc.GLProgram)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] hasMipmaps
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] setMaxS
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] setDefaultAlphaPixelFormat
|
|
|
|
-- @param self
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @param #int pixelformat
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] getDefaultAlphaPixelFormat
|
|
|
|
-- @param self
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @return int#int ret (return value: int)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] PVRImagesHavePremultipliedAlpha
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#Texture2D] Texture2D
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|