(50G) [HPGCC3] DRAW3DMATRIX replacement with grayscale surfaces, proof of concept
|
12-28-2017, 11:49 AM
Post: #14
|
|||
|
|||
RE: (50G) [HPGCC3] DRAW3DMATRIX replacement with grayscale surfaces, proof of concept
And finally... A version of helloWorld that works.
/* * helot.c * * Created on: Dec 28, 2017 * Author: murray */ #include <hpgcc3.h> #include <hpgraphics.h> /* workaround for ROM globals placed at the start of the .data / .bss area; we need to shift out own variables past them */ __attribute__((section(".romglobals"))) int __ROMglobals__[20]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; int main() { hpg_set_mode_mono(1); hpg_set_font(HPG_STDSCREEN, hpg_get_minifont()); hpg_clear(); hpg_draw_text("Hello, world!", 0, 0); hpg_flip(); //updates the screen with the new image (needed in double-buffered mode) WAIT_CANCEL; return 0; } A bit of a long way round, with a misleading example on the HPGCC3 web-site, but real signs of life. Thanks a lot for your help. Cheers |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 9 Guest(s)