Jump to content

  • Log In with Google      Sign In   
  • Create Account


jdub

Member Since 01 Aug 2007
Offline Last Active Feb 22 2014 09:35 PM

Posts I've Made

In Topic: Help compiling GLFW from source?

22 February 2014 - 06:32 PM

That command didn't work.  I'm in the Ubuntu terminal.


In Topic: Help me understand how DirectX treats the W component

21 August 2013 - 05:00 AM

Thanks for the responses guys! I really appreciate it


In Topic: [Visual Studio 2012]What does this error mean?

19 August 2013 - 12:32 AM

I thought that with smart pointers, resources allocated were automatically freed up when the pointer goes out of scope?


In Topic: [SharpDX]Using blend factor to draw transparent primitives?

21 June 2013 - 01:40 PM

Bump...


In Topic: Newbie Javascript question

18 May 2013 - 03:41 PM

Oops.  I realized that I only posted part of the code I have.  Here is more relevant code:

 

//create singleton class
var sim = new function()
{
...
this.Run = function()
	{
		this.tickIntervalId = setInterval(this.Tick, 1000/60); //Update at 60 fps
	};
...

this.Update = function (elapsedMS) {
		
	  for (var i = 0; i < nodeArr.length; i++) {
		nodeArr[i].Update();
	  }
	};
...
this.Tick = function () 
	{
		var currTime = Date.now();
		var elapsedMS = currTime - this.lastUpdateTime;

		this.Update(elapsedMS);
		this.Render();

		this.lastUpdateTime = currTime;
	};
};

sim.Run();

PARTNERS