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