Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[OT] Simplified inline code specification of texture images (neoGFX progress)

16 views
Skip to first unread message

Mr Flibble

unread,
Mar 3, 2018, 11:51:48 PM3/3/18
to
Simplified the inline code specification of texture images (useful for
colourisable pixel perfect widget parts) in "neoGFX" my upcoming C++
game/app creation library and framework.

const char* spaceshipSpriteImagePattern
{
"[9,9]"
"{0,paper}"
"{1,ink1}"
"{2,ink2}"

"000010000"
"000121000"
"000121000"
"001222100"
"001222100"
"011222110"
"010111010"
"010000010"
"010000010"
};

auto& spaceshipSprite = spritePlane->create_sprite(
ng::image{
spaceshipSpriteImagePattern,
{ { "paper", ng::colour{} }, { "ink1", ng::colour::LightGoldenrod },
{ "ink2", ng::colour::DarkGoldenrod4 } } });


/Flibble

--
"Suppose it’s all true, and you walk up to the pearly gates, and are
confronted by God," Bryne asked on his show The Meaning of Life. "What
will Stephen Fry say to him, her, or it?"
"I’d say, bone cancer in children? What’s that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery
that is not our fault. It’s not right, it’s utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates
a world that is so full of injustice and pain. That’s what I would say."

Gareth Owen

unread,
Mar 4, 2018, 4:39:28 AM3/4/18
to
Mr Flibble <flibbleREM...@i42.co.uk> writes:

> Simplified the inline code specification of texture images (useful for
> colourisable pixel perfect widget parts) in "neoGFX" my upcoming C++
> game/app creation library and framework.
>
> const char* spaceshipSpriteImagePattern
> {

Reminds me very much of old-school XPM files (not a criticism, just an
observation).

https://www.fileformat.info/format/xpm/egff.htm#XPM-DMYID.2
0 new messages