Texture t=new Texture(); t.setImageLocation("file:/"+tc.texName); t.setWrap(Texture.WM_WRAP_S_WRAP_T); float vScale = tc.vScale; float uScale = tc.uScale; if ( uScale == 0 ) { uScale = 1; } if ( vScale == 0 ) { vScale = 1; } t.setScale( new Vector3f( uScale, vScale, 1 ) ); myTexState.setTexture(t, 0); myTexState.setEnabled(true);
Texture t = createTexture(tc); myTexState.setTexture(t, 0);
    private void readTextureMapOne(ChunkHeader i) throws IOException {        TextureChunk tc=new TextureChunk(myIn,i);        //        myTexState.setTexture(TextureManager.loadTexture(tc.texName,Texture.MM_LINEAR,Texture.FM_LINEAR,false));                Texture t=new Texture();                t.setImageLocation("file:/"+tc.texName);                t.setWrap(Texture.WM_WRAP_S_WRAP_T);                float vScale = tc.vScale;                float uScale = tc.uScale;                if ( uScale == 0 ) {                    uScale = 1;                }                if ( vScale == 0 ) {                    vScale = 1;                }                t.setScale( new Vector3f( uScale, vScale, 1 ) );                myTexState.setTexture(t, 0); // Set as first texture-unit                myTexState.setEnabled(true);    }