View previous topic :: View next topic |
Author |
Message |
gekkonier
Joined: 27 Mar 2007 Posts: 28
|
Posted: Mon Jul 23, 2007 1:41 am Post subject: arc.window questions :D |
|
|
Hi, its me again,
is it possible to let a created window be non-resizeable?
If I render text and images onto a window and resize it, then i got several strange display errors. To avoid this I try to disallow resizing.
My second question is:
In the api doc [1] i see this:
Code: | void clear ();
clear the screen
void swap ();
swap the screen buffers and clear the screen
void swapClear ();
swap and clear the screen |
Whats the difference between swap() and swapClear()?
[1] http://svn.dsource.org/projects/arclib/branches/api/arc02/arc.window.html |
|
Back to top |
|
|
gekkonier
Joined: 27 Mar 2007 Posts: 28
|
Posted: Mon Jul 23, 2007 9:32 am Post subject: |
|
|
Okay, I can live with it, if it's not possible to disallow resizing the window -> I switched to fullscreen right now, thats okay. But it would be fine if it's possible to do so.
But I have a bonus-question: Is it possible to hide / show the mousecursor in fullscreen and to change the look of that cursor? I would like to code a tetris'a'like game -> there I only need mousecontrol in few menus. |
|
Back to top |
|
|
ChristianK
Joined: 26 Sep 2006 Posts: 159 Location: Berlin, Germany
|
Posted: Tue Jul 24, 2007 9:25 am Post subject: |
|
|
About swap() and swapClear(): That was a documentation bug. swapClear calls swap and then clear. I fixed it in the source, but Clay will have to re-generate the documentation when he's around.
I don't think there's a way to prohibit resizing the windows at the moment. There probably should be. Can you open a enhancement request for it here http://www.dsource.org/projects/arclib/newticket ?
You can disable the default cursor with the defaultCursorVisible method from arc.input. If you want your own cursor graphics, you'll have to draw it yourself. |
|
Back to top |
|
|
gekkonier
Joined: 27 Mar 2007 Posts: 28
|
|
Back to top |
|
|
|