예제 #1
0
 public cSpriteFireball(float radius = 1.0f, int slices = 32, int stacks = 32)
 {
     _slices = slices;
     _stacks = stacks;
     _radius = radius;
     glshape = new cGLShape();
 }
        public cSpriteSphere(float radius)
        {
            Radius  = radius;
            _slices = (int)Radius * 10;
            _stacks = (int)Radius * 10;
            if (_slices < 32)
            {
                _slices = 32;
            }
            if (_stacks < 32)
            {
                _stacks = 32;
            }

            glshape = new cGLShape();
        }