Hello,
I have modified the scrollbar example in the following way:
int main(int argc, char *argv[])
{
for(;;)
{
if (AG_InitCore("agar-scrollbar-demo", 0) == -1) {
fprintf(stderr, "%s\n", AG_GetError());
return (1);
}
if (AG_InitVideo(400, 300, 32, AG_VIDEO_RESIZABLE) == -1) {
fprintf(stderr, "%s\n", AG_GetError());
return (-1);
}
AG_BindGlobalKey(SDLK_ESCAPE, KMOD_NONE, AG_Quit);
AG_BindGlobalKey(SDLK_F8, KMOD_NONE, AG_ViewCapture);
CreateWindow();
AG_EventLoop();
AG_Destroy();
}
return (0);
}
After terminating the AG_Eventloop and executing the code again I see the
following error message:
Fatal error: AG_ObjectInit: No such class: AG_Display
Aborted
The call AG_LookupClass doesn't the name "AG_DISPLAY".
How can I solve that problem?
Regards
--Armin
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html