![]() This mode copies the pixels within a bounding box of a pfGeoSet back on top of themselves. Third, this pass can copy pixels in-place within the framebuffer. This mode is used to restore results that have been previously stored in texture memory to the framebuffer. Second, it can copy pixels from texture memory to the framebuffer. This mode is most often used to back up the results in the framebuffer for use later in the shading process. First, it can copy the pixel region defined by the bounding box of an object from the framebuffer into texture memory. The role of this pass is to copy pixels between texture memory and the framebuffer or within the framebuffer. PF_SHADERPASS_COPYPIXELS token as the pass type. This pass is created by calling pfShaderOpenPass() with the The global pfFBState is configured as follows: PfApplyFBState() is called, all the state settings which have been explicitly specified on the pfFBState will be applied, and all those which have not been specified will be inherited from the global pfFBState. Void pfFBStateMakeBasicState(pfFBState* fbstate) Like pfGeoState, pfFBState has an apply function which, when invoked, will change OpenGL state in such a way that it matches the state encoded inside the pfFBState. The only process in OpenGL Performer that is guaranteed to have one is the draw process so draw callbacks are the only place pfFBStates can be applied safely. The shader method will be covered later in this chapter.Ī pfFBState can be applied in any process which has an OpenGL context. Though pfFBState appears to track state like a pfGeoState, it can not be directly applied to a pfGeoSet.There are two ways to apply the pfFBState: through a shader or within a draw callback. glEnable() or glDisable() will be called based on the value of the flag. When multisampling is on, all points and lines are implicitly antialiased, but on machines that do not support multisampling, these functions will toggle point and line antialiasing. These modes control whether points and lines are drawn with antialiasing turned on. ![]() Pixel maps are all disabled using the glPixelTransfer() function, but they are implicitly enabled by specifying a pixel map. This mode works slightly different than the rest in that it does not use glEnable() or glDisable() to toggle the state of pixel maps. These modes are enabled and disabled using glEnable() and glDisable(). The documentation for the GL_SGIS_multisample extension explains what these modes do. These modes control the multisampling behavior on machines which support this feature. glEnable( GL_STENCIL_TEST) or glDisable( GL_STENCIL_TEST) will be called based on the value of the flag. This mode controls whether the stencil buffer is enabled. glEnable( GL_DEPTH_TEST) or glDisable( GL_DEPTH_TEST) will be called based on the value of the flag. This mode controls whether the depth buffer is enabled. GlEnable( GL_BLEND) or glDisable( GL_BLEND) will be called based on the value of the flag. This mode controls whether blending is enabled or disabled.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |