Right now I’m doing this:
from direct.showbase.Loader import Loader as loader
And I’m loading a texture like this:
sometexture = loader.loadTexture('somefile.jpg', 'somefile.rgb')
Its giving me this error:
TypeError: unbound method loadTexture() must be called with Loader instance as first argument (got str instance instead)
What is the correct way to load it in? I’m using Panda3D-1.8.1