Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenGl clear problem
#2
Some dll declarations incorrect.

Macro
Code:
Copy      Help
dll gdi32 #ChoosePixelFormat int'hdc PIXELFORMATDESCRIPTOR*ppfd
dll opengl32 #glClear mask
dll opengl32 #glLightfv int'light int'pname float*params
dll opengl32 #glEnable int'cap
dll opengl32 #glClearColor float'red float'green float'blue float'alpha
dll opengl32 glPushMatrix
dll opengl32 glPopMatrix
dll opengl32 glRotatef float'angle float'x float'y float'z
dll opengl32 glBegin int'mode
dll opengl32 glEnd
dll opengl32 glColor3f float'red float'green float'blue
dll opengl32 glVertex2f float'x float'y
dll 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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)