Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / strips of an image
- By Basic Date 2010-03-21 07:21
With GosuCPP can I draw just a strip of an image?

GosuRuby seems to have a draw_as_quad method, Cpp seems to lack this, (or I've missed it)

do I need to give it a bitmap first?
with the gosu::bitmap stuff do I give it a list of hex values? or can I pass a filename. I dont quit understand the docs

sorry for the simple questions
- By jlnr (dev) Date 2010-03-21 07:56
Image#draw_as_quad is available in C++ as Image::getData, then ImageData::draw. Drawing parts of an Image is not possible though, you can only split the file into several strips using imagesFromTiledBitmap when loading things.
- By jlnr (dev) Date 2010-03-21 07:57
Oh, and you might be able to fake it using beginClipping/endClipping too.
- By Basic Date 2010-03-21 13:43
oh that sounds last one sounds like the ticket. is for a basic raycasting engine
Up Topic Gosu / Gosu Exchange / strips of an image

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill