POST A NEW THREAD

P/Invoke to some extend

by TeamICE1 on ‎10-05-2012 15:37 PM

Provide: P/Invoke (DllImport) for interfacing with external native libs and functions

 

Usage: Utilizing sophisticated unmanaged C# libraries. Able to interface with system libraries

Code Highlighting on the forums

by varo_mix on ‎26-06-2012 01:28 AM
 Hey Guys

 

I guess we all agree that the CODE tag here is not as COOL :robothappy:

can we do something about it?

 

public void Delay(int ms)
		{
		    int time = Environment.TickCount;
		
		    while(true)
		        if(Environment.TickCount - time >= ms) return;
		}
		

 

something like this would be cool

 

 

  1. public static void Update ()
  2.         {
  3.             // Query gamepad for current state
  4.             var gamePadData = GamePad.GetData (0);
  5.                
  6.         }
  7.  
  8.         public static void Render ()
  9.         {
  10.             // Clear the screen
  11.             graphics.SetClearColor (0.0f, 0.0f, 0.0f, 0.0f);
  12.             graphics.Clear ();
  13.  
  14.             // Present the screen
  15.             graphics.SwapBuffers ();
  16.         }
Labels
Top Liked Authors