Posts: 41
 
	
	
		Hi Gintaras:
	
Attached Files opengl.qml  (Size: 24.09 KB / Downloads: 364)
 
	
	
	
 
 
	
	
	
		
	Posts: 12,239
 
	
	
		Some dll declarations incorrect.
Macro 
dll  gdi32 # ChoosePixelFormat  int ' hdc PIXELFORMATDESCRIPTOR * ppfddll  opengl32 # glClear  maskdll  opengl32 # glLightfv  int ' light int ' pname float * paramsdll  opengl32 # glEnable  int ' capdll  opengl32 # glClearColor  float ' red float ' green float ' blue float ' alphadll  opengl32 glPushMatrix dll  opengl32 glPopMatrix dll  opengl32 glRotatef  float ' angle float ' x float ' y float ' zdll  opengl32 glBegin  int ' modedll  opengl32 glEnd dll  opengl32 glColor3f  float ' red float ' green float ' bluedll  opengl32 glVertex2f  float ' x float ' ydll  opengl32 wglDeleteContext  int ' hglrc
I tested with 10 ms timer. First thread OK, but other threads eat whole CPU time. 50 ms OK. Don't know how to fix it. Tried the C++ sample, in raw C++ threads, the same. If possible, run the macro in separate process.
	
 
 
	
	
	
		
	Posts: 41
 
	
	
		Thank you Gintaras, i will try it