Commit Graph

20582 Commits

Author SHA1 Message Date
samuele3hu d200dd83a4 Update the KeyCodeTest in the NewEventDispatcherTest 2014-06-11 10:15:38 +08:00
samuele3hu 2252bc271b Update the KeyCodeTest in the NewEventDispatcherTest 2014-06-11 10:14:24 +08:00
samuele3hu 4ce2d7f193 Update values of KeyCode used in the Lua to fix related error 2014-06-11 10:10:11 +08:00
yangxiao cddad40ec0 make it rotate 2014-06-11 10:01:52 +08:00
Sachin Garg 8ba4c7a083 GLProgram should not abort() if shader compilation fails, returning false will allow app to show custom error message to user (or use other simple shaders if a complicated shader fails to compile on some device). 2014-06-10 17:59:15 +05:30
yangxiao 6d09b50699 animation bug 2014-06-10 19:53:06 +08:00
elsanide 2e73f63156 #5506 bug fix
when Director->convertToUI() called, returned wrong value.

kazmath code (under 3.0 version.)
//********************************************************
kmVec3* kmVec3TransformCoord(kmVec3* pOut, const kmVec3* pV, const kmMat4* pM)
{
 /*
        a = (Vx, Vy, Vz, 1)
        b = (a×M)T
        Out = 1 ⁄ bw(bx, by, bz)
 */

    kmVec4 v;
    kmVec4 inV;
    kmVec4Fill(&inV, pV->x, pV->y, pV->z, 1.0);

    kmVec4Transform(&v, &inV,pM);

 pOut->x = v.x / v.w;
 pOut->y = v.y / v.w;
 pOut->z = v.z / v.w;

 return pOut;
}
//********************************************************

Mat4.h & MathUtil version (3.1 or later)
//********************************************************
inline void MathUtil::transformVec4(const float* m, const float* v, float* dst)
{
    // Handle case where v == dst.
    float x = v[0] * m[0] + v[1] * m[4] + v[2] * m[8] + v[3] * m[12];
    float y = v[0] * m[1] + v[1] * m[5] + v[2] * m[9] + v[3] * m[13];
    float z = v[0] * m[2] + v[1] * m[6] + v[2] * m[10] + v[3] * m[14];
    float w = v[0] * m[3] + v[1] * m[7] + v[2] * m[11] + v[3] * m[15];

    dst[0] = x;
    dst[1] = y;
    dst[2] = z;
    dst[3] = w;
}

//****************************************************

Transforms 3-D vector or an array of 3-D vectors using a given matrix, projecting the result back into w = 1.
but, it is not apply w = 1.
2014-06-10 18:15:07 +09:00
heliclei d4a9640a5e [ccconsole]Add version command. 2014-06-10 16:29:06 +08:00
minggo 8222cdd8aa [ci skip] 2014-06-10 13:53:41 +08:00
minggo d7af5eccd4 Merge pull request #7024 from pandamicro/SpriteFrame_Ctor
Issue #5533: Add SpriteFrame's constructor
2014-06-10 13:38:27 +08:00
pandamicro 8bc531a0fb Fixed #5533: Fix usage of new SpriteFrame in engine 2014-06-10 12:04:20 +08:00
pandamicro 92a33225ff Fixed #5533: Make SpriteFrame's constructor and init functions public temporarily to avoid issues 2014-06-10 11:39:48 +08:00
minggo 2ab54a0da9 Merge pull request #7023 from samuele3hu/v3_lua_ui_fix
Fix the crash of cocostudio ui lua test cases and add some deprecated functions of Widget
2014-06-10 11:37:18 +08:00
samuele3hu aa877f2b50 Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into v3_lua_ui_fix 2014-06-10 11:31:08 +08:00
samuele3hu 5a80b4da2e Fix the crash of cocostudio ui lua test cases and add some deprecated functions of Widget 2014-06-10 11:30:39 +08:00
pandamicro bb7cf801e6 Fixed #5533: Add SpriteFrame's constructor and make constructor & init functions protected 2014-06-10 11:28:34 +08:00
minggo 0ca9a98f4a Merge pull request #6920 from minggo/orrderOfArrival
don't have to set _orderOfArrival to 0 after visit
2014-06-10 10:28:38 +08:00
yangxiao a991940268 debug Sprite3D with .c3t 2014-06-09 18:37:58 +08:00
minggo 9ef1272de7 [ci skip] 2014-06-09 17:18:55 +08:00
minggo 9517f9b852 Merge pull request #6996 from newnon/v3_setparent_fix
move node from one parent to another fix
2014-06-09 17:13:59 +08:00
minggo b11b978010 Merge pull request #7019 from minggo/v3
fix issue on Xcode 6
2014-06-09 17:08:42 +08:00
minggo 66c7b85134 fix issue on Xcode 6 2014-06-09 17:06:40 +08:00
minggo 6ea42dd6ad [ci skip] 2014-06-09 16:34:41 +08:00
minggo a165cdf231 Merge pull request #7018 from Dhilan007/v3-templates
fixed wrong WP8 project name when create project by console.
2014-06-09 16:32:58 +08:00
minggo 29ac8d746d Merge pull request #7012 from Dhilan007/v3-testcast
update test cast of label.
2014-06-09 16:32:32 +08:00
Dhilan007 5cd7ab97d9 fixed wrong WP8 project name when create project by console. 2014-06-09 16:17:19 +08:00
minggo 489cc2dfab Merge pull request #7017 from CocosRobot/update_lua_bindings_1402298986
[AUTO]: updating luabinding automatically
2014-06-09 15:31:23 +08:00
CocosRobot e2630f915d [AUTO]: updating luabinding automatically 2014-06-09 07:30:49 +00:00
minggo f0021d7dae [ci skip] 2014-06-09 15:29:16 +08:00
minggo f4afb93211 [ci skip] 2014-06-09 15:28:13 +08:00
minggo 8a3e64918d Merge pull request #7014 from andyque/ImproveUIText
improve UIText
2014-06-09 15:27:04 +08:00
minggo b47cc9ceb1 Merge pull request #7016 from CocosRobot/update_lua_bindings_1402298385
[AUTO]: updating luabinding automatically
2014-06-09 15:22:08 +08:00
CocosRobot e1a43d8ac4 [AUTO]: updating luabinding automatically 2014-06-09 07:20:59 +00:00
minggo 4e299099d2 [ci skip] 2014-06-09 15:19:58 +08:00
minggo de15833e6a [ci skip] 2014-06-09 15:18:22 +08:00
minggo ecf32bcbf7 Merge pull request #7015 from andyque/improveUITextField
add getStringLength to UITextField
2014-06-09 15:16:47 +08:00
andyque d46025af64 Merge branch 'improvement/COC-3' of https://github.com/zhouxiaoxiaoxujian/cocos2d-x into improveUITextField
Conflicts:
	cocos/ui/UITextField.h
2014-06-09 14:46:04 +08:00
andyque b7c8759f3b modify outline size parameter 2014-06-09 14:37:56 +08:00
andyque c387ae3bc7 add text effect test 2014-06-09 14:34:46 +08:00
minggo 2230431582 [ci skip] 2014-06-09 14:21:14 +08:00
Dhilan007 c109cff099 update Xcode project. 2014-06-09 14:18:05 +08:00
andyque a52532c3c5 Merge branch 'feature/COC-5' of https://github.com/zhouxiaoxiaoxujian/cocos2d-x into ImproveUIText
Conflicts:
	cocos/ui/UIText.cpp
2014-06-09 14:17:57 +08:00
minggo 59c7b7e9a0 Merge pull request #7004 from Dhilan007/v3-labelfix
close issue#5158:Label's display may go bonkers if using outline feature.
2014-06-09 14:17:46 +08:00
Dhilan007 791737befa update test cast of label. 2014-06-09 13:41:32 +08:00
minggo 6a4322eeac [ci skip] 2014-06-09 11:49:25 +08:00
minggo 48443b8d52 Merge pull request #7008 from visiblelight/ProgramState
Fix issue 5393
2014-06-09 11:47:57 +08:00
minggo 939ee6c7fa Merge pull request #7011 from natural-law/v3
Update the reference of submodule cocos2d-console.
2014-06-09 11:41:58 +08:00
minggo aa0387c05c Merge pull request #7009 from CocosRobot/update_cocosfiles_1402283562
[AUTO][ci skip]: updating cocos2dx_files.json
2014-06-09 11:41:38 +08:00
minggo 81b80593e1 Merge pull request #7010 from CocosRobot/update_lua_bindings_1402283659
[AUTO]: updating luabinding automatically
2014-06-09 11:41:17 +08:00
vision 361bfad5f8 initilization missed. 2014-06-09 11:39:19 +08:00