We Recommend

C++ The Core Language C++ The Core Language
C++: The Core Language is for C programmers transitioning to C++. It's designed to get readers up to speed quickly by covering an essential subset of the language. The subset consists of features without which it's just not C++, and a handful of others that make it a reasonably useful language.


Posted By

cirio on 09/17/08


Tagged


Versions (?)


programmer nintendo ds - image+text


Published in: C++ 


copyright lineguides.netsons.org

  1. #include <PA9.h> // Include per le PA_lib
  2. #include "logo.h" // immagine,formato gif da includere nel progetto
  3.  
  4. // Funzione primaria: main()
  5. int main(int argc, char ** argv){
  6.  
  7. PA_Init(); // Inizializzazione obbligatoria PA_lib
  8. PA_InitVBL(); // Inizializzazione obbligatoria standard VBL
  9.  
  10.  
  11. PA_InitText(0,
  12. 1); //funz. testo, "0" schermo inferiore,"1"livello(1-2-3)
  13.  
  14.  
  15.  
  16.  
  17. PA_Init8bitBg(1,3); // Inizz.a 8bit della funz.sullo schermo sup.
  18. PA_LoadGifXY( 1,28,25,// caricamento a video dell'immagine.
  19. (void*)logo); // nome immagine,formato gif
  20. PA_OutputSimpleText(0,10,10,"example");//caricamento a video del testo, i parametri(0,10,10) stanno ad indicare la posizione sullo schermo.
  21.  
  22.  
  23.  
  24. while(1) {
  25. PA_WaitForVBL(); //procedura d'attesa per la sincronizzazione.
  26. }
  27.  
  28. return 0;
  29. } // End of main()

Report this snippet 

You need to login to post a comment.