ba1a49adf2c2dddf7395e8f7187f782661307eb1
2 * Copyright (C) 2006 Claudio Ciccani <klan@users.sf.net>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 __glutDestroyWindows();
34 events
->Release( events
);
39 joystick
->Release( joystick
);
44 mouse
->Release( mouse
);
49 keyboard
->Release( keyboard
);
54 primary
->Release( primary
);
66 glutInit( int *argcp
, char **argv
)
73 glutGet( GLUT_ELAPSED_TIME
);
75 ret
= DirectFBInit( argcp
, argv
? &argv
: NULL
);
77 DirectFBErrorFatal( "DirectFBInit()", ret
);
79 ret
= DirectFBCreate( &dfb
);
81 DirectFBErrorFatal( "DirectFBCreate()", ret
);
83 ret
= dfb
->GetDisplayLayer( dfb
, DLID_PRIMARY
, &primary
);
85 DirectFBErrorFatal( "IDirectFB::GetDisplayLayer()", ret
);
87 ret
= dfb
->CreateEventBuffer( dfb
, &events
);
89 DirectFBErrorFatal( "IDirectFB::CreateEventBuffer()", ret
);
91 dfb
->GetInputDevice( dfb
, DIDID_KEYBOARD
, &keyboard
);
92 dfb
->GetInputDevice( dfb
, DIDID_MOUSE
, &mouse
);
93 dfb
->GetInputDevice( dfb
, DIDID_JOYSTICK
, &joystick
);
95 primary
->SetCooperativeLevel( primary
, DLSCL_ADMINISTRATIVE
);
102 glutInitDisplayMode( unsigned int mode
)
104 g_display_mode
= mode
;
109 glutInitWindowPosition( int x
, int y
)
117 glutInitWindowSize( int width
, int height
)
125 glutInitDisplayString( const char *string
)