Gered
f3d213130d
at this point i am 99% certain that the previous issues i was having with making GeneralBlitMethod generic over the bitmap PixelType was because i was trying to specify a constant PixelType value in generic code (CustomMouseCursor). whether this was actually the problem or not i think is besides the point however because while thinking about this i suddenly realized this was incorrect anyway! making CustomMouseCursor generic via GeneralBitmap means that specifying constant colours was not going to produce expected results (e.g. '255' has a very different meaning for indexed colour rendering versus for 32-bit RGBA colour format). so, CustomMouseCursor now figures out the correct transparent colour to use from the DefaultMouseCursorBitmaps implementation. this allows us to make GeneralBlitMethod be generic over a bitmap's PixelType again and i'm sure we won't have that previous issue again as long as we don't try to specify constant colour values in our generic rendering code ... which we should never be doing anyway! |
||
---|---|---|
examples | ||
ggdt | ||
.gitignore | ||
Cargo.toml | ||
README.md |
ggdt: Gered's Game Dev Tools
This is a purely for-fun project of mine. It's a personal set of retro-like/inspired game development tools for use in my own projects.
It started with a focus on DOS "VGA mode 13h"-style limitations, but is not going to be limited to just that into the future and will be expanded on as I need it to do other things. It should be noted that in this project I will do a lot of (poor) reinventing of the wheel ... because it's fun. Stringing together existing libraries all the time is dull after a while.
I'm not an expert in Rust and am probably still doing a great many things unidiomatically. But I'm learning, and that is at least half the point of this project in the first place.
See the /examples
directory for some demo apps. These will be added to over time.