Comme une autre personne du forum je rencontre le même pb en l'initialisant comme ceci:
DSCREEN *DScr[2] = {NULL, NULL };
int ts = 0;
void SwapBuffer()
{
gl_set_dscreen_int(DScr[ts]);
ts ^= 1;
gl_set_dscreen_function(DScr[ts]);
}
// Constant speed 30Hz function
// Constant speed 15Hz function
// Ready to print ?
void Ready()
{
while (gl_timer == 0);
}
HANDLE hd;
gl_init(); // Init genlib
gl_init_dscreen(&DScr[0], &hd); // Alloc 1 DScreen
if (hd == H_NULL) goto exit; // Quit if error
gl_push_hd(hd); // Save the handle
gl_init_dscreen(&DScr[1], &hd); // Alloc the 2nd DScreen
if (hd == 0) goto exit; // Quit if error
gl_push_hd(hd); // Save the handle
gl_set_dscreen_int(DScr[0]); // Define the printed DScreen
gl_set_dscreen_function(DScr[0]); // Define the working DScreen
gl_cls(); // Clear the working DScreen
J'ai preos comme Kernel et la calc affiche une erreur de protection de mémoire.
Sur ma Hw2 rom 2.05 et sur VTi j'ai exactement le même pb.
Et en plus je ne sais même pas comment me servir des fonction pour gérer le double buffering (afficher le buffer, l'effacer...).
Quelqu'un pourrait m'aider ?



), ça plante alors je peux tout juste voir sur ma Hw2 les fps.