foxblock / penjin

Penjin game engine - C++, cross-platform, powerful, simple to use
http://projectinfinity.org.uk/doku.php?id=homebrew:engines:penjin
GNU Lesser General Public License v3.0
0 stars 1 forks source link

PENJIN_GL - Unable to getPixel from a texture #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Image.getPixel() is used in the CollisionMap class to get the colour from
the loaded Image. The colour is used for collision information.

Currently any project trying to compile for the PENJIN_GL target will not
compile if CollisionMap.h is included in the project.

Proposed solutions are to either research extracting the colour from the
stored texture or to force CollisionMap to keep the SDL_Surface* of the
image and extract pixels using SDL.

Original issue reported on code.google.com by pokeparadox@gmail.com on 27 Jul 2009 at 2:06

GoogleCodeExporter commented 9 years ago
I've decided to extract the information from the texture stored on the GFX card 
and
work on this is nearly ready for commit.

Original comment by pokeparadox@gmail.com on 5 Aug 2009 at 2:09

GoogleCodeExporter commented 9 years ago
This should be fixed for PENJIN_GL but is untested as yet!

Original comment by pokeparadox@gmail.com on 6 Aug 2009 at 4:54