阅读背景:

使用Texture2D将OpenGL绘图到现有的HDC

来源:互联网 

I am trying to Use OpenGL to render to an existing rendering area of a window that has been created with the Windows API. I get the HDC and create an opengl context using wglCreateContext and wglMakeCurrent. Then I Create a texture and I bind it. although I can clear the buffer to whatever color I choose, I can not render to it. The following code sample should make clear what my problem is.I am trying to Use OpenGL to render to an exist




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: