Added setNPOTEnabled and setMaxMemory methods.