yangxiao
b6ec4c9c5d
fix fast tilemap blend function
2015-12-14 16:51:53 +08:00
mogemimi
c3194ac34d
Fix memory leak in TMXLayer
2015-10-19 19:47:36 +09:00
pandamicro
3dde02ba93
Merge pull request #14106 from loadrunner/tilemap
...
TMXLayer cast bug
2015-10-11 18:43:24 +08:00
Danut Chereches
aeb268f3cd
cast tile coordinates to int before calculating index
2015-10-10 19:05:51 +03:00
Martin Taylor
62e36e8006
fix typos and syntax error. A thorough check by tool VSSpellChecker.
2015-09-22 16:08:23 +08:00
fusijie
17c7848e62
fix FastTiledMap auto-culling bug.
2015-07-30 15:07:03 +08:00
Vladimir Perminov
4c33050536
Optimize Vec2
...
small function Vec2 move to Vec2.inl
Added:
setZero();
Change all code:
_vec2 = Vec2(x, y); -> _vec2.set(x, y);
Vec2 vec2 = Vec2(x, y); -> Vec2 vec2(x, y);
_vec2 += Vec2(x, y); -> _vec2.add(x, y);
_vec2 = Vec2::ZERO; -> _vec2.setZero();
Vec2 vec2(Vec2::ZERO); -> Vec2 vec2;
2015-04-19 20:40:52 +03:00
kompjoefriek
ca48c5e5dd
Fixed lots of compiler warnings
...
- signed / unsigned mismatches
- using int as bool
- Removed throw() from CCFrame.h, why is explained here:
http://www.gotw.ca/publications/mill22.htm
2015-01-23 02:02:33 +01:00
Nite Luo
4a440e66c9
Refactor draw command
2015-01-15 14:00:49 -08:00
Vladimir Timofeev
2835b094da
Cleanup order of fields initialization.
...
Make initialization order to match declarations.
This change twice reduces number of warnings when compiling on MacOS X with Xcode 6.1
Warnings was like "Field 'XXXX' will be initialized after field 'YYYY'"
2014-10-30 17:28:41 +03:00
Huabing.Xu
725d107ae5
change indices to short for fast tmx
2014-09-17 11:06:15 +08:00
Ricardo Quesada
2c068cd1f5
Merge pull request #7915 from ricardoquesada/xcode_mark_todo_fixme
...
Adds MARK: TODO: FIXME: in code
2014-08-29 12:55:14 -07:00
Ricardo Quesada
c149bfca00
Adds MARK: TODO: FIXME: in code
...
Replaces XXX with FIXME:
Xcode 6 beta 4 supports this new format
2014-08-29 12:54:24 -07:00
minggo
3679d66c8e
remove unneeded includes
2014-08-29 15:39:52 +08:00
minggo
7baf873bf6
remove unneeded includes
2014-08-28 17:03:29 +08:00
minggo
6a8270f33b
Merge pull request #7900 from minggo/setposition-optimize
...
not create Vec as possible for setting position
2014-08-28 14:31:54 +08:00
minggo
9fb977ff99
not create Vec as possible for setting position
2014-08-28 11:41:18 +08:00
Ricardo Quesada
3dda35b4ef
Adds `std::nothrow` to `new`
...
Since cocos2d-x doesn't support exceptions, it is important to add
`std::nothrow` to all the `new` statements
2014-08-27 16:31:57 -07:00
minggo
b9c51e6994
remove unneeded codes
2014-08-26 18:19:28 +08:00
Huabing.Xu
1145859d38
remove commented codes
2014-08-12 11:44:06 +08:00
Huabing.Xu
b1954ef516
clean up primitive code
2014-08-05 17:49:35 +08:00
Huabing.Xu
56551e6787
fast_tmx migrate to primitive command
2014-08-05 15:08:01 +08:00
Huabing.Xu
f7ad98b15b
using primitve->draw in Fast_tmx on draw
2014-08-04 17:57:31 +08:00
Huabing.Xu
414d67851f
add _vertexBuffer back in Fast_tmx
2014-08-04 16:36:20 +08:00
Huabing.Xu
bbf11f5d06
refactor vertex data
...
using vertex data in fast_tmx
2014-08-04 16:08:54 +08:00
Huabing.Xu
a44f4c95e1
using indexBuffer instead of raw VBO
2014-08-04 10:40:07 +08:00
Huabing.Xu
3d4bfe7780
using VertexBuffer instead of raw buffer
2014-08-01 17:50:22 +08:00
andyque
4f5cd2a368
change FastTileMap to TileMap
2014-07-17 14:09:53 +08:00
andyque
880c2c4c3f
change FastTiledMap namespace to cocos2d::experimental
2014-07-17 10:46:20 +08:00
Huabing.Xu
0214131bb2
optimise tile map rendering
2014-07-02 17:16:03 +08:00
Huabing.Xu
efa452e0c4
support for fast tmx hex
2014-07-02 15:19:11 +08:00
Dhilan007
3eea298428
unbind the VAO anyway to for safety.
2014-06-30 21:08:43 +08:00
Dhilan007
79264daf1e
fix the crash on WP8 for FastTileMapTest
2014-06-30 20:56:59 +08:00
Huabing.Xu
9227c4f30a
refactor updateTiles
2014-06-27 19:41:34 +08:00
Huabing.Xu
3771654e66
remove deprecated function
...
rename enum to static const member of class
remove hex tile map(we do not support it yet)
2014-06-27 18:00:06 +08:00
Huabing.Xu
eba84b5dea
fix wrong indentions
2014-06-27 14:45:30 +08:00
Huabing.Xu
1152f77ed7
clean up fast tmx code
2014-06-27 14:42:53 +08:00
Huabing.Xu
b232896f85
roll back fps compute logic
...
fix crash bug
2014-06-27 13:41:06 +08:00
Huabing.Xu
6292ed05be
improvement for fast tmx rendering
2014-06-27 11:50:44 +08:00
Huabing.Xu
a04b5fc5d5
use custom command for fast_tmx rendering
2014-06-27 10:30:21 +08:00
Huabing.Xu
81aa9c2c74
use custom command for rendering
2014-06-26 20:45:08 +08:00
Huabing.Xu
87e5e1460e
adjust some code to reduce indentions
2014-06-26 11:45:15 +08:00
Huabing.Xu
c1b5984ce8
using stable sort for quads
2014-06-25 11:08:47 +08:00
Huabing.Xu
bda9708206
clean up Fast TMX code2
2014-06-25 10:06:37 +08:00
Huabing.Xu
67f83f43b0
clean up Fast TMX code
2014-06-25 10:04:20 +08:00
Huabing.Xu
740372ceb3
new version of rendering for tile map
2014-06-24 11:04:17 +08:00
Huabing.Xu
bb4128036c
use quad command for tile map rendering
2014-06-20 18:10:18 +08:00
Huabing.Xu
f82be936b5
Merge branch 'fast_tmx_copy' into fast_tmx
...
Conflicts:
cocos/2d/CCFastTMXLayer.cpp
2014-06-19 18:10:44 +08:00
boyu0
5f10ff2c29
issue #4437 : change name TMXLayer2 and TMXTiledMap2 to FastTMXLayer and FastTMXTiledMap, change Point to Vec2
2014-06-19 15:57:13 +08:00