visual studio 2010 - How to set AntTweakBar to be on top of OpenGL 3 content (using GLFW) -
i using glfw display opengl content in msvs 2010. want use anttweakbar modify directive variables (speed rotation, object size, ...) , want bar above opengl content (not behind can see in picture).
i read manual, followed examples cant figure out how set this.
examples use old deprecated fixed pipeline use dynamic pipline guess might problem.
picture: (i donr have enough rep post directly) http://s9.postimg.org/43aa3pt0v/cube.png
code:
twinit(tw_opengl_core, null); int width=0; int height=0; glfwgetwindowsize(&width,&height); twwindowsize(width, height); twbar * buildinggui = twnewbar("window settings"); twsetparam(buildinggui, null, "refresh", tw_param_cstring, 1, "0.1"); twdefine(" 'window settings' alwaystop=true ") twaddvarrw(buildinggui, "movement speed" , tw_type_float, &speed, "step=0.1");
thank time !
i had same problem , placed twdraw(); function before glfwswapbuffers inside draw function.
Comments
Post a Comment