home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser-CD 2001 January / LCD_01_2001.iso / develop / tinylib041 / tiny / atari / devs / error.txt next >
Encoding:
Text File  |  2000-07-08  |  2.1 KB  |  46 lines

  1. valeurs de erreurs d'exception gérées:
  2.  
  3. 1L = mémoire insuffisante / out of Memory (need exit)
  4. 2L = liste non définie / list not defined (not need exit)
  5. 3L = glGet: option non implémentée / glGet: option not implemented (not need exit)
  6. 4L = glViewport: impossible dans changer la taille dessin / glViewport: error while resizing display (need exit)
  7. 5L = glViewport: taille incohérante<=0! / glViewport: size too small (need exit)
  8. 6L = Erreur allocation de buffer specular / could not allocate specular buffer (need exit)
  9. 7L = Erreur de paramètres pour glTexImage2D / glTexImage2D: combinaison of parameters not handled (need exit)
  10. 8L = glTexParameter: Option non supportée / glTexParameter: unsupported option (not need exit)
  11. 9L = glPixelStore: Option non supportée / glPixelStore: unsupported option (need exit)
  12. 10L= glBegin: option non supportée / glBegin: unsupported option (need exit)
  13. 11L= No sharing available in TinyGL (not need exit)
  14. 12L= zdither: pas assez de couleurs / zdither: not enough colors
  15. 13L= mémoire insuffisante information peut être pas besoin de quitter / out of Memory perhaps not need to exit
  16. 14L= Impossible de sauver l'image / can't save picture (not need exit)
  17.  
  18. 100L= Warning niveau mémoire basse (<32Ko) / Warning low memory level (<32Ko) (not need exit)
  19. 101L= Warning erreur interne de clipping / internal clipping error (not need exit)
  20. 102L= Warning: unknown pname in glGetFloatv()
  21. 103L= Warning: glEnableDisable: Option non supportée / glEnableDisable: unsupported option (not need exit)
  22.  
  23. utilisation des erreurs d'exception / use of errors exceptions
  24.  
  25. void __cdecl mon_exception(long error)
  26. {
  27.     switch(error)
  28.     {
  29.         case 1L:  printf("Mémoire inconnue\n");
  30.         break;
  31.         ....
  32.         default : printf("Erreur inconnue\n");
  33.     }
  34. }
  35.  
  36. Cette fonction sera utilisée en cas d'erreur dans Tiny_gl.ldg
  37.  
  38. dans le programme après initialisation / in the program after init
  39. et avant utilisation des autres fonction de la lib / and before use of 
  40. others functions of the library
  41.  
  42.  
  43. if(exception_error) exception_error(mon_exception);  // declaration
  44.  
  45.  
  46. Olivier Landemarre