Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / AlphaMode, FontFlags and other enums in ruby
- - By garoe Date 2013-04-09 16:09
Hello,

In the C++ documentation of Gosu you can easily check all the values of those enums
in this file http://www.libgosu.org/cpp/_graphics_base_8hpp_source.html
However on the ruby documentation I cannot find them anywhere, nor I have seen how is the name
conversion done. Where can I find this out?

Thanks
Parent - - By Spooner Date 2013-04-09 22:20
:default, :add (or :additive) and :multiply are what you use for alpha modes, when drawing.

The font ones aren't used in Ruby, but you can use some xml tags in your text for formatting (like <b>bold</b> and <c="AAB10F">coloured text</c>).

When you create an image, you either make it fully tileable or non-tileable with a simple boolean flag (true/false). You can't get partial borders.
Parent - By jlnr (dev) Date 2013-04-09 23:18
I am not even sure if c="AAB10F" works, or if it has to be c=AAB10F. The parser is pretty dumb and the XML-style styling is amazingly inefficient. But if it catches on, I'll be happy to make it more awesome. Right now I almost regret adding it. :)
Up Topic Gosu / Gosu Exchange / AlphaMode, FontFlags and other enums in ruby

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill