public CCBox2dDraw(string spriteFontName) { _primitiveBatch = new CCPrimitiveBatch(CCDrawManager.GraphicsDevice, 5000); _spriteFont = CCApplication.SharedApplication.Content.Load <SpriteFont>(spriteFontName); _stringData = new List <StringData>(); _stringBuilder = new StringBuilder(); }
public CCBox2dDraw(string spriteFontName) { _primitiveBatch = new CCPrimitiveBatch(CCDrawManager.GraphicsDevice, 5000); _spriteFont = CCApplication.SharedApplication.Content.Load<SpriteFont>(spriteFontName); _stringData = new List<StringData>(); _stringBuilder = new StringBuilder(); }
public Cocos2DDebugDraw() { _primitiveBatch = new CCPrimitiveBatch(CCDrawManager.GraphicsDevice, 5000); _spriteFont = CCApplication.SharedApplication.Content.Load<SpriteFont>("fonts/arial-12"); _stringData = new List<StringData>(); _stringBuilder = new StringBuilder(); }
public static void Init(GraphicsDevice graphics) { m_Batch = new CCPrimitiveBatch(graphics); }