public final void loadTexture ( ) { texture = null ; texture = AWTTextureIO . newTexture ( GLProfile . get ( GLProfile . GL2 ) , img , true ) ; if ( texture == null ) { throw new CasmiRuntimeException ( "Cannot load texture" ) ; } }
Loads a texture using image data .