protected final void init ( ) { if ( inited ) { return ; } inited = true ; if ( texture != null ) { width = texture . getImageWidth ( ) ; height = texture . getImageHeight ( ) ; textureOffsetX = 0 ; textureOffsetY = 0 ; textureWidth = texture . getWidth ( ) ; textureHeight = texture . getHeight ( ) ; } initImpl ( ) ; centerX = width / 2 ; centerY = height / 2 ; }
Initialise internal data