Setting to landscape mode

Setting to landscape mode
0.0 0


Hi guys,

I am developing an Android game using Cocos2d-x and it needs to be in landscape mode of 800 x 480, so I want to ask that for landscape mode, do I just change

eglView~~>setFrameSize(480, 800);
//then I set orientation to landscape in another code somewhere?