Permalink
Browse files

v0.99.1 release tag

  • Loading branch information...
1 parent d5648ca commit a20677824ef579ffe88687278367450f3eeaa29c @ricardoquesada ricardoquesada committed Mar 19, 2010
Showing with 10,506 additions and 3,258 deletions.
  1. +3 −3 CHANGELOG
  2. +98 −86 cocos2d-iphone.xcodeproj/project.pbxproj
  3. +11 −9 cocos2d/CCTexture2D.h
  4. +3 −4 cocos2d/CCTexture2D.m
  5. +1 −1 doxygen.config
  6. +15 −0 doxygen.footer
  7. +38 −34 external/libpng/ANNOUNCE
  8. +709 −565 external/libpng/CHANGES
  9. +284 −0 external/libpng/CMakeLists.txt
  10. +2 −2 external/libpng/INSTALL
  11. +29 −0 external/libpng/KNOWNBUG
  12. +2 −2 external/libpng/LICENSE
  13. +54 −36 external/libpng/README
  14. +1 −7 external/libpng/TODO
  15. +55 −0 external/libpng/Y2KINFO
  16. +13 −0 external/libpng/configure
  17. +15 −15 external/libpng/example.c
  18. +62 −128 external/libpng/{libpng-1.4.1.txt → libpng-1.2.43.txt}
  19. +4,487 −0 external/libpng/libpng.3
  20. +806 −0 external/libpng/libpngpf.3
  21. +2 −2 external/libpng/png.5
  22. +195 −11 external/libpng/png.c
  23. +1,576 −477 external/libpng/png.h
  24. BIN external/libpng/pngbar.jpg
  25. BIN external/libpng/pngbar.png
  26. +435 −280 external/libpng/pngconf.h
  27. +6 −22 external/libpng/pngerror.c
  28. +103 −0 external/libpng/pnggccrd.c
  29. +58 −39 external/libpng/pngget.c
  30. +54 −24 external/libpng/pngmem.c
  31. BIN external/libpng/pngnow.png
  32. +62 −53 external/libpng/pngpread.c
  33. +0 −956 external/libpng/pngpriv.h
  34. +280 −113 external/libpng/pngread.c
  35. +23 −6 external/libpng/pngrio.c
  36. +318 −64 external/libpng/pngrtran.c
  37. +97 −96 external/libpng/pngrutil.c
  38. +128 −69 external/libpng/pngset.c
  39. +118 −43 external/libpng/pngtest.c
  40. BIN external/libpng/pngtest.png
  41. +26 −3 external/libpng/pngtrans.c
  42. +1 −0 external/libpng/pngvcrd.c
  43. +23 −4 external/libpng/pngwio.c
  44. +179 −44 external/libpng/pngwrite.c
  45. +18 −2 external/libpng/pngwtran.c
  46. +97 −51 external/libpng/pngwutil.c
  47. +4 −2 tests/PerformanceTests/PerformanceParticleTest/MainScene.m
  48. +15 −5 tests/Texture2dTest.m
View
@@ -1,11 +1,11 @@
-version 0.99.1 - 18-Mar-2010
+version 0.99.1 - 19-Mar-2010
. [FIX] Menu: If menu is not visible it doesn't receive touches (issue #88)
. [FIX] Menu: MenuItemLabel restores the scale property (issue #500)
. [FIX] SpriteFrameCache: set singleton to nil when it is purged (issue #814)
. [FIX] Templates: thumb-compilation turned off at project settings (already off in target settings) (issue #772)
. [FIX] Texture2D allocs the right texturememory when using the non-premultiplied alg.(issue #813)
- . [FIX] Texture2D treats grayscale images as A8 textures ignoring the default pixel format (issue #816)
- . [3RD] Libpng: updated to v1.4.1 (libpng is only used by a cocos2d test)
+ . [FIX] Texture2D supports A8 textures (issue #816)
+ . [3RD] Libpng: updated to v1.2.43 (libpng is only used by a cocos2d test)
version 0.99.1-rc - 12-Mar-2010
. [NEW] Actions: new added actions: CCProgressTo, CCProgressFromTo (issue #783)

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -115,7 +115,7 @@ typedef enum {
/** Intializes with a texture2d with data */
- (id) initWithData:(const void*)data pixelFormat:(CCTexture2DPixelFormat)pixelFormat pixelsWide:(NSUInteger)width pixelsHigh:(NSUInteger)height contentSize:(CGSize)size;
-/** pixelFormat */
+/** pixel format of the texture */
@property(nonatomic,readonly) CCTexture2DPixelFormat pixelFormat;
/** width in pixels */
@property(nonatomic,readonly) NSUInteger pixelsWide;
@@ -168,7 +168,7 @@ Note that the generated textures are of type A8 - use the blending mode (GL_SRC_
/**
Extensions to make it easy to create a CCTexture2D object from a PVRTC file
- Note that the generated textures are don't have their alpha premultiplied - use the blending mode (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA).
+ Note that the generated textures don't have their alpha premultiplied - use the blending mode (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA).
*/
@interface CCTexture2D (PVRTC)
/** Initializes a texture from a PVRTC buffer */
@@ -196,13 +196,15 @@ typedef struct _ccTexParams {
/** sets antialias texture parameters:
- GL_TEXTURE_MIN_FILTER = GL_LINEAR
- GL_TEXTURE_MAG_FILTER = GL_LINEAR
+
@since v0.8
*/
- (void) setAntiAliasTexParameters;
/** sets alias texture parameters:
- GL_TEXTURE_MIN_FILTER = GL_NEAREST
- GL_TEXTURE_MAG_FILTER = GL_NEAREST
+
@since v0.8
*/
- (void) setAliasTexParameters;
@@ -219,15 +221,15 @@ typedef struct _ccTexParams {
@interface CCTexture2D (PixelFormat)
/** sets the default pixel format for UIImages that contains alpha channel.
If the UIImage contains alpha channel, then the options are:
- - generate 32-bit textures: kCCTexture2DPixelFormat_RGBA8888 (default one)
- - generate 16-bit textures: kCCTexture2DPixelFormat_RGBA4444
- - generate 16-bit textures: kCCTexture2DPixelFormat_RGB5A1
- - generate 16-bit textures: kCCTexture2DPixelFormat_RGB565
+ - generate 32-bit textures: kCCTexture2DPixelFormat_RGBA8888 (default one)
+ - generate 16-bit textures: kCCTexture2DPixelFormat_RGBA4444
+ - generate 16-bit textures: kCCTexture2DPixelFormat_RGB5A1
+ - generate 16-bit textures: kCCTexture2DPixelFormat_RGB565
+ - generate 8-bit textures: kCCTexture2DPixelFormat_A8 (only use it if you use just 1 color)
How does it work ?
- - If the image is an RGBA (with Alpha) then the default pixel format will be used (it can be a 16-bit or 32-bit texture)
- - If the image is an RGB (without Alpha) then an RGB565 texture will be used
- - If the image is a grayscale image, then A8 textures will be used
+ - If the image is an RGBA (with Alpha) then the default pixel format will be used (it can be a 8-bit, 16-bit or 32-bit texture)
+ - If the image is an RGB (without Alpha) then an RGB565 texture will be used (16-bit texture)
@since v0.8
*/
View
@@ -231,9 +231,9 @@ -(id) initPremultipliedATextureWithImage:(CGImageRef)image pixelsWide:(NSUIntege
size_t bpp = CGImageGetBitsPerComponent(image);
colorSpace = CGImageGetColorSpace(image);
- int nrComponents = CGColorSpaceGetNumberOfComponents(colorSpace);
+// int nrComponents = CGColorSpaceGetNumberOfComponents(colorSpace);
- if(colorSpace && nrComponents > 1 ) {
+ if(colorSpace) {
if(hasAlpha || bpp >= 8)
pixelFormat = defaultAlphaPixelFormat;
else {
@@ -242,8 +242,7 @@ -(id) initPremultipliedATextureWithImage:(CGImageRef)image pixelsWide:(NSUIntege
}
} else {
// NOTE: No colorspace means a mask image
- // nrComponents==1 means grayscale images
- CCLOG(@"cocos2d: CCTexture2D: Using A8 texture since image is grayscale");
+ CCLOG(@"cocos2d: CCTexture2D: Using A8 texture since image is a mask");
pixelFormat = kCCTexture2DPixelFormat_A8;
}
View
@@ -788,7 +788,7 @@ HTML_HEADER =
# each generated HTML page. If it is left blank doxygen will generate a
# standard footer.
-HTML_FOOTER =
+HTML_FOOTER = doxygen.footer
# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
# style sheet that is used by each HTML page. It can be used to
View
@@ -0,0 +1,15 @@
+<hr size="1"/>
+<address style="text-align: right;"><small>
+<a href="http://www.cocos2d-iphone.org">$projectname</a> API Reference - Generated using <a href="http://www.doxygen.org">Doxygen $doxygenversion</a>
+</small></address>
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+try {
+var pageTracker = _gat._getTracker("UA-871936-7");
+pageTracker._trackPageview();
+} catch(err) {}</script>
+</BODY>
+</HTML>
View
@@ -1,5 +1,5 @@
-Libpng 1.4.1 - February 25, 2010
+Libpng 1.2.43 - February 25, 2010
This is a public release of libpng, intended for use in production codes.
@@ -8,56 +8,60 @@ Files available for download:
Source files with LF line endings (for Unix/Linux) and with a
"configure" script
- libpng-1.4.1.tar.xz (LZMA-compressed, recommended)
- libpng-1.4.1.tar.gz
- libpng-1.4.1.tar.bz2
+ libpng-1.2.43.tar.xz (LZMA-compressed, recommended)
+ libpng-1.2.43.tar.gz
+ libpng-1.2.43.tar.bz2
+
+Source files with LF line endings (for Unix/Linux) without the
+"configure" script
+
+ libpng-1.2.43-no-config.tar.xz (LZMA-compressed, recommended)
+ libpng-1.2.43-no-config.tar.gz
+ libpng-1.2.43-no-config.tar.bz2
Source files with CRLF line endings (for Windows), without the
"configure" script
- lpng141.zip
- lpng141.7z
+ lpng1243.zip
+ lpng1243.7z
+ lpng1243.tar.bz2
+
+Project files
+
+ libpng-1.2.43-project-netware.zip
+ libpng-1.2.43-project-wince.zip
Other information:
- libpng-1.4.1-README.txt
- libpng-1.4.1-LICENSE.txt
+ libpng-1.2.43-README.txt
+ libpng-1.2.43-KNOWNBUGS.txt
+ libpng-1.2.43-LICENSE.txt
+ libpng-1.2.43-Y2K-compliance.txt
+ libpng-1.2.43-[previous version]-diff.txt
-Changes since the last public release (1.4.0):
+Changes since the last public release (1.2.42):
-version 1.4.1 [February 25, 2010]
+version 1.2.43 [February 25, 2010]
Updated CMakeLists.txt for consistent indentation and to avoid an
unclosed if-statement warning (Philip Lowman).
- Revised Makefile.am and Makefile.in to remove references to Y2KINFO,
- KNOWNBUG, and libpng.la (Robert Schwebel).
- Revised the makefiles to install the same files and symbolic
- except for libpng.la and libpng14.la.
- Make png_set|get_compression_buffer_size() available even when
- PNG_WRITE_SUPPORTED is not enabled.
- Revised Makefile.am and Makefile.in to simplify their maintenance.
- Revised the makefiles to install a link to libpng14.so.14.1
- Removed png_set_premultiply_alpha() from scripts/*.def
- Revised png_decompress_chunk() to improve speed and memory usage when
- decoding large chunks, using a two-pass method suggested by John Bowler.
- Added png_set|get_chunk_malloc_max() functions.
- Relocated "int k" declaration in pngtest.c to minimize its scope.
- Folded some long lines in the source files.
- Added defineable PNG_USER_CHUNK_CACHE_MAX and PNG_USER_CHUNK_MALLOC_MAX
- Eliminated use of png_ptr->irowbytes and reused the slot in png_ptr as
- png_ptr->png_user_chunk_malloc_max.
- Return allocated "old_buffer" in png_push_save_buffer() before calling
- png_error(), to avoid a potential memory leak.
- Removed the cbuilder5 project, which has not been updated to 1.4.0.
- Complete rewrite of two-pass png_decompress_chunk() by John Bowler.
- Removed obsolete unused MMX-querying support from contrib/gregbook
- Removed the AIX redefinition of jmpbuf in png.h
+ Removed "#ifdef PNG_1_0_X / #endif" surrounding
+ PNG_READ_16_TO_8_SUPPORTED and PNG_READ_GRAY_TO_RGB_SUPPORTED
+ in pngconf.h. These were added in libpng-1.2.41beta08 and libpng-1.0.51,
+ which introduced a binary incompatibility with libpng-1.0.50.
+ Backported two-pass png_decompress_chunk() algorithm from libpng-1.4.1
+ Removed PNGAPI declaration of png_calloc() and png_write_sig() in
+ 1ibpng-1.2.X, introduced by mistake in libpng-1.2.41.
+ Return allocated "old_buffer" in png_push_save_buffer() before png_error(),
+ to avoid a potential memory leak.
+ Ported rewritten png_decompress_chunk() by John Bowler from libpng-1.4.1.
Define _ALL_SOURCE in configure.ac, makefile.aix, and CMakeLists.txt
when using AIX compiler.
Removed unused gzio.c from contrib/pngminim gather and makefile scripts
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
-(subscription required; visit
+
+(subscription required; visit
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
to subscribe) or to glennrp at users.sourceforge.net
Oops, something went wrong.

0 comments on commit a206778

Please sign in to comment.