Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <os.h>
- #include <nspireio2.h>
- #include <ngc.h>
- #define TRUE 1
- #define FALSE 0
- int main(void) {
- /* Get the gc */
- Gc gc = *gui_gc_global_GC_ptr;
- /* Initialization */
- gui_gc_setRegion(gc, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
- gui_gc_begin(gc);
- /* Draw */
- gui_gc_clipRect(gc, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, GC_CRO_SET);
- gui_gc_fillRect(gc, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); /* Will only draw a 10x10 rectangle */
- wait_key_pressed();
- /* Blit & finish */
- gui_gc_blit_to_screen(gc);
- gui_gc_finish(gc);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement