com.extjs.gxt.ui.client.widget.TabPanel
101102103104105106107108109110111
public m2(){ created=true; header=new Header(); modelname=new ZeroTerminatedString("Test"); anims=new AnimSequ[1]; anims[0]=new AnimSequ(); bone=new Bones[1]; bone[0]=new Bones();
150151152153154155156157158159160
int ofsTextures; int nVertices, ofsVertices,nBones,ofsBones; int texlength[]; int texoffs[]; header = new Header(buff); // check magic if(header.getMagic().compareTo("MD20") != 0) { throw new InvalidClassException("Invalid m2 Data.");
782783784785786787788789790791792
//if(created){ //running offset int ro=0; //Headersize+0x10Bytes for Name+AnimSequ+Bone+0x10 for bonelookup ByteBuffer tmp=doRebirth(calcSize()); header=new Header(); tmp.put(header.buff); fillLine(tmp); ro=tmp.position(); header.setofsName(ro); header.setlName(modelname.toString().length()+1);//zeroterminated