AndEngine Texture from Drawable
问题 I'm new to AndEngine. For some reason, I have to create a TextureRegion from a Drawable variable. I don't know if it is possible, but my code is not working... public class DrawableTextureSource implements ITextureSource { private final int mWidth; private final int mHeight; private final Drawable mDrawable; private final Context mContext; public DrawableTextureSource(Context context, Drawable D) { mContext = context; mDrawable = D; mWidth = D.getIntrinsicWidth(); mHeight = D