pytmx.util_pyglet module

Copyright (C) 2012-2017, Leif Theden <leif.theden@gmail.com>

This file is part of pytmx.

pytmx is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

pytmx is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with pytmx. If not, see <http://www.gnu.org/licenses/>.

pytmx.util_pyglet.load_pyglet(filename, *args, **kwargs)[source]
pytmx.util_pyglet.pyglet_image_loader(filename, colorkey, **kwargs)[source]

basic image loading with pyglet

returns pyglet Images, not textures

This is a basic proof-of-concept and is likely to fail in some situations.

Missing:
Transparency Tile Rotation

This is slow as well.