Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

win32user

macrumors newbie
Original poster
Oct 6, 2010
2
0
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 :)
 

win32user

macrumors newbie
Original poster
Oct 6, 2010
2
0
So SDL is the huge monster library...
Maybe some body has a little sample code?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.