0 Members and 2 Guests are viewing this topic.
I updated to GCC 4.9.0 by the way and the problem with elf2flt sucking all RAM out (if iostream is used) is there again
What? I only copied the headers, static library, and a Makefile to build it (and similarly for zlib).
git submodules sounds like a good idea, since we won't have to have prebuilt stuff in the repo, and we can build the libs from source.
Quote from: Vogtinator on April 29, 2014, 08:44:28 amI updated to GCC 4.9.0 by the way and the problem with elf2flt sucking all RAM out (if iostream is used) is there again What do you think about making our own tool to convert elf to bflt? I think everyone agrees by now that elff2flt is an unmaintained piece of crap.
As for using freetype in crafti, just choose whatever works best. If you think FreeType is a good choice, just take a look at the sample, and put whatever font you use in a header file using "xxd -i" so people don't have to copy an extra file.
Is this being compiled on a linux machine?
QuoteShould we perhaps reset the poll, now that a new option has been added?No, my intention is to remove an option from the poll after I implemented it and add considerable suggestions and possible features on-the-fly.It shouldn't make a huge difference anyway, as lighting doesn't have an impact on gameplay at all (yet).
Should we perhaps reset the poll, now that a new option has been added?
QuoteFor fonts, you can use nGC or Freetype (which works without any changes)Does nGC support rendering into (raw) buffers with different width than the screen?
For fonts, you can use nGC or Freetype (which works without any changes)
static char* screen_buffer[SCREEN_BYTES];void draw(){ ngl(screen_buffer, scene); gui_gc_blit_buffer(gc, screen_buffer); /* syscall */ gui_gc_drawString(gc, "H\0e\0l\0l\0o\0 \0W\0o\0r\0l\0d\0\0", 0, 10); gui_gc_blit_to_screen(gc); /* part of libndls */}
static Gc text_gc;void init(){ text_gc = gui_gc_copy(gc, 100, 100) gui_gc_setColorRGB(255, 255, 255); gui_gc_fillRect(0, 0, 100, 100); gui_gc_setColorRGB(0, 0, 0); gui_gc_drawString(text_gc, "H\0e\0l\0l\0o\0 \0W\0o\0r\0l\0d\0\0", 0, 10);}void draw(){ ngl(scene); gui_gc_blit_to_screen_region(text_gc, 0, 0, 100, 100); /* You can even redefine this function in order to handle alpha */}
nGC uses the OS' font routines AFAIK which are slow and ugly
I also hit a bug in GCC 4.9.0, but it should be faster now, as one of the major features in 4.9.0 is a optimized LTO.
Quote from: Vogtinator on May 01, 2014, 05:06:31 pmI also hit a bug in GCC 4.9.0, but it should be faster now, as one of the major features in 4.9.0 is a optimized LTO.What bug? I'm intrigued.
I have voted for water and lava