No, OpenGL for Rendering and GLFW for window handling.Originally Posted by WILL
No, OpenGL for Rendering and GLFW for window handling.Originally Posted by WILL
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
I have never used phoenix, I thought phoenix works under delphi and windows, so no reason to assume screen.cursor wouldn't work. That is teh system I use for my directx projects.
The views expressed on this programme are bloody good ones. - Fred Dagg
Ok, I see. Well it wouldn't be using SDL for rendering anyways as the SDL/OpenGL combination would still have GL as the renderer, but SDL for windows management.
Am I not mistaken in thinking that at some point Phoenix did use SDL for windows management? I could have sworn... :scratch:
Sorry for not answering this earlier, been at a buissnes trip for a week, you can hide the cursor with:
Code:uses glfw; glfwDisable( GLFW_MOUSE_CURSOR );
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
Hi Andreaz
That turns off the cursor for all windows, not just the Phoneix window. If in windowed mode I go outsie of the window border I expect to see the windows cursor. Is there a way to just turn ff the curson for the phoneix window and not all windows.
Cheers
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
GLFW sadly doesnt support that out of the box,
https://sourceforge.net/forum/messag...msg_id=4287659
thats one of the drawbacks with platform independent librarys they only implement stuff that works on all platforms...
You have to do what TScreen does basically:
Code:procedure TScreen.SetCursor(Value: TCursor); var P: TPoint; Handle: HWND; Code: Longint; begin if Value <> Cursor then begin FCursor := Value; if Value = crDefault then begin { Reset the cursor to the default by sending a WM_SETCURSOR to the window under the cursor } GetCursorPos(P); Handle := WindowFromPoint(P); if (Handle <> 0) and (GetWindowThreadProcessId(Handle, nil) = GetCurrentThreadId) then begin Code := SendMessage(Handle, WM_NCHITTEST, 0, LongInt(PointToSmallPoint(P))); SendMessage(Handle, WM_SETCURSOR, Handle, MakeLong(Code, WM_MOUSEMOVE)); Exit; end; end; Windows.SetCursor(Cursors[Value]); end; Inc(FCursorCount); end;
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
Bookmarks