Sponsored Content
Operating Systems OS X (Apple) Let your iMac/MBP detect a burglar whilst idle... Post 303017413 by wisecracker on Tuesday 15th of May 2018 02:19:22 PM
Old 05-15-2018
I forgot to mention one important part:
Change this line from echo 'set theFilePath to "/Users/amiga/Desktop/Spy.mov"
to echo 'set theFilePath to "/Users/your_user_name/Desktop/Spy.mov" ...
And away you go...
This User Gave Thanks to wisecracker For This Post:
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can we install Unix in PC or imac?

I'm a beginner in Unix OS. I really want to know what kind of hardware I need in order to install the Unix OS.(I know Linx can be installed in both Mac & PC, but not Unix) Thanks to let me ask such question here. (1 Reply)
Discussion started by: Mutsu
1 Replies

2. OS X (Apple)

Just Got A New iMAC G5 !!!

Hi! I just got a new iMAC G5 (20") and I love it!!!! Amazon dropped the price $200, and there was also a $150 rebate, making it around $1325, so I could not resist anymore Finally!!!! Neo (2 Replies)
Discussion started by: Neo
2 Replies

3. Shell Programming and Scripting

Grep causing long delay (batching) whilst piping

Hi all. I have a problem at work which I have managed to break down into a simple test scenario: I have written a monitoring script that outputs every second the status of various processes, but for now, lets just print the date input.sh: while true do date sleep 1 done This... (9 Replies)
Discussion started by: spudtheimpaler
9 Replies

4. What is on Your Mind?

New iMac purported graphic issues

A really silly thing I did about a year ago (probably after one beer too many) was upgrading my perfectly stable Windows XP Pro to Windows Vista. Vista is really getting on my nerves, so I was in Media Markt the other week looking to see if they had Windows 7 Ultimatum in stock. As I was... (1 Reply)
Discussion started by: Scott
1 Replies

5. Shell Programming and Scripting

Insertion New line whilst reading the text file

Hi, For the text file let us say t.txt having the statements as below. filename : t.txt. Contents : This is first string1 This is first string2 This is first string3 The output of the file should have newline. How to introduce the new line so that the output be as follows ... (5 Replies)
Discussion started by: krackjack
5 Replies

6. OS X (Apple)

A program crashed my iMac so bad that it could not start up.

Hi, Solid as a rock or ... Is it possible for a program to damage an iMac (Snow Leopard) so bad that it cannot start up again, and need to be repaired? I am asking about this, because this seems to have occurred two days ago, when I was running a popular game program. When I closed the... (6 Replies)
Discussion started by: ASL123
6 Replies

7. OS X (Apple)

BuDop's mbp:~ budop$ changes to dhcp-v062-202:~ budop$...not quite why?

the name on my terminal changed from BuDop's MBP:~ budop$ to dhcp-v06:~ budop$ after I set up a local server using nodejs. This was was I did prior to the change: I installed a middleware framework for node 1. npm install connect 2. created a server file called server.js 3. ran... (12 Replies)
Discussion started by: BuDop
12 Replies
glutIdleFunc(3GLUT)						       GLUT						       glutIdleFunc(3GLUT)

NAME
glutIdleFunc - sets the global idle callback. SYNTAX
#include <GLUT/glut.h> void glutIdleFunc(void (*func)(void)); ARGUMENTS
func The new idle callback function. DESCRIPTION
glutIdleFunc sets the global idle callback to be func so a GLUT program can perform background processing tasks or continuous animation when window system events are not being received. If enabled, the idle callback is continuously called when events are not being received. The callback routine has no parameters. The current window and current menu will not be changed before the idle callback. Programs with multiple windows and/or menus should explicitly set the current window and/or current menu and not rely on its current setting. The amount of computation and rendering done in an idle callback should be minimized to avoid affecting the program's interactive response. In general, not more than a single frame of rendering should be done in an idle callback. Passing NULL to glutIdleFunc disables the generation of the idle callback. EXAMPLE
A typical idle callback to animate a window might look like: void idle(void) { time += 0.05; glutSetWindow(window); glutPostRedisplay(); } Notice how the idle callback does not do any actual drawing; it only advances the time scene state global variable. That is left to the window's display callback which will be triggered by the call to glutPostRedisplay. If you use the idle callback for animation, you should be sure to stop rendering when the window is not visible. This is easy to set up with a visibility callback. For example: void visible(int vis) { if (vis == GLUT_VISIBLE) glutIdleFunc(idle); else glutIdleFunc(NULL); } If you do use the idle callback for animation, one thing you should not do is setup the idle callback before calling glutMainLoop. It is much better to use the visibility callback to install idle callback when the window first becomes visible on the screen. SEE ALSO
glutTimerFunc, glutVisibilityFunc AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutIdleFunc(3GLUT)
All times are GMT -4. The time now is 03:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy