Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17084

Is "cocos2d.h" file including the "Box2D/Box2D.h" file?

$
0
0

@rhythmcoder wrote:

I have the following codes:

ifndef JOYSTICK_H_

define JOYSTICK_H_

include "cocos2d.h"

include "Defines.h"

include "Box2D/Box2D.h"

USING_NS_CC;

I'm trying to use Box2d Engine on my game.
But first step of implementing, I got too many error that I cannot understand.

The step is adding #include "Box2D/Box2D.h" file top of the file.

However, When I add "Box2D/Box2D.h" file on the "HelloWorld" that does not include "cocos2d.h", There are no errors.

Is "cocos2d.h" file including the "Box2D/Box2D.h" file?

(I'm Korean. Sorry for poor English)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>