Hi All
Could you help me to write simple cocoa OpenGL application without nib?
1. I need to be able handle next events:
- Application become active (WM_SETFOCUS windows analog)
- Application become inactive (WM_KILLFOCUS windows analog)
- Resize window event (WM_SIZE windows analog)
- Mouse events (WM_MOUSEMOVE, WM_MOUSEWHEEL, WM_LBUTTONUP, ...)
- Keyboard events (WM_KEYUP, WM_KEYDOWN, WM_SYSKEYUP, WM_SYSKEYDOWN)
2.Also I need to change screen resolution in may app
How can I do that?
3.Also I need to show / hide mouse cursor
4.I need to center mouse cursor to get mouse stride instead of mouse position
It will be cool if you will get my sample code with all functionality listed below
Thanks!!!
PS: Sorry for my noobity
Could you help me to write simple cocoa OpenGL application without nib?
1. I need to be able handle next events:
- Application become active (WM_SETFOCUS windows analog)
- Application become inactive (WM_KILLFOCUS windows analog)
- Resize window event (WM_SIZE windows analog)
- Mouse events (WM_MOUSEMOVE, WM_MOUSEWHEEL, WM_LBUTTONUP, ...)
- Keyboard events (WM_KEYUP, WM_KEYDOWN, WM_SYSKEYUP, WM_SYSKEYDOWN)
2.Also I need to change screen resolution in may app
How can I do that?
3.Also I need to show / hide mouse cursor
4.I need to center mouse cursor to get mouse stride instead of mouse position
It will be cool if you will get my sample code with all functionality listed below
Thanks!!!
PS: Sorry for my noobity