How to make full screen window?

I want to make a full screen window. I only know just how to change a window resolution in main.cpp, but I don’t know how to make it as full screen. Please tell me.
Thanks in advance.

Its easy in 3.0 beta.
In the main.cpp use the initWithFullScreen() method.
eglView->initWithFullScreen("Cocos2d-x Game");
I have tested on Linux.

Hey aratnon,

if you’re using previous versions of Cocos2D-X(2.1, 2.2):

here is some useful code also(in chinese), you can extract logic from code:
http://blog.csdn.net/w00w12l/article/details/12457823

Tested in VS2013 on mighty Win32.
Hope it helps.

Thanks guys. So, in 2.1 and 2.2 there is no automatically set window to full screen right?, but there is it in 3.0.

@aratnon: You’re welcome! To my knowledge there is no automatic for this in 2.1, 2.2.

yes this is a new feature in 3.0

this feature is not implement in android. :frowning: