ico???;
var mng = new Manager( width, height, title, fullscreen, icon );
Calling the constructor through the instantiation of the Manager class creates a new window object that
will contain your application. The parameters accepted by the constructor include the width and height
of the new window, the title of the window that will be displayed in its top bar, a Boolean depicting
whether the window should be displayed with a frame or expand to fill the entire screen, and the
location of an icon file to display in the top bar of the windows frame.
Once you have your Manager instance, you can then use the object to manage the base application,
along with the rendering of your graphics. When you finally close the application, you will need to call
the close function. This handles the cleanup of the memory used by your application window as well
as the sound handler. However, you may also need to individually clean up after your assets, too.
Flipping the Display Buffer
When you are working with graphical objects, whether this is your operating system ??™ s native
GUI controls, a video feed, or animated content in a multimedia control, the content being displayed
is written to the screen display buffer, usually by means of the video card.
Pages:
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997