正在加载图片...
OpenGL State Machine e what do you do to maintain states and state variables b Opengl? To set states for drawing geometric primitives E. g: glPoint Size(size ) glLine Stipple(repeat, pattern g Shade Model(GL_SMOOtH) o or change(enable) states of how Open gl draws them o by default, most of these states are initially inactive Such states include: objects rendered with lighting, texturing, or undergo different processes, such as hidden surface removal, fog, and other states which affect the app Dearance Toturn on/off states glEnable(GL- lighting) diSable(gl ⊥ BLEND)OpenGL State Machine  What do you do to maintain states and state variables by OpenGL?  To set states for drawing geometric primitives E.g: glPointSize ( size ); glLineStipple ( repeat, pattern ); glShadeModel ( GL_ SMOOTH);  or change (enable) states of how OpenGL draws them  By default, most of these states are initially inactive.  Such states include: objects rendered with lighting, texturing, or undergo different processes, such as hidden surface removal, fog, and other states, which affect the appearance.  To turn on/off states glEnable ( GL_ LIGHTING ); glDisable ( GL_BLEND); 7
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有