Thursday, August 7, 2014

Cocos2D-X: Basic Guide to Using HttpClient

This guide is pretty much covers the basics: http://www.cocos2d-x.org/wiki/How_to_use_CCHttpClient

The only part lacking is the signature of the callback, which needs to have 2 arguments. Example:
void onHttpRequestCompleted(cocos2d::network::HttpClient* client, cocos2d::network::HttpResponse* response);

No comments:

Post a Comment