Encapsulates all the communication with a particular instance of a given rendering backend.
More...
Public Types |
| enum | ShaderModel {
SM00 = 0,
SM11 = 1,
SM20 = 2,
SM2X = 3,
SM30 = 4,
SM40 = 5
} |
Public Member Functions |
| bool | beginScene () |
| | Called between begin_frame() and end_frame() to mark the beginning of drawing commands for a "scene" (usually a particular DisplayRegion) within a frame.
|
| | clearFlashTexture () |
| | Resets the "flash texture", so that no textures will flash.
|
| | endScene () |
| | Called between begin_frame() and end_frame() to mark the end of drawing commands for a "scene" (usually a particular DisplayRegion) within a frame.
|
| bool | getAlphaScaleViaTexture () |
| | Returns true if this particular GSG can implement (or would prefer to implement) an alpha scale via an additional Texture layer, or false if we need to actually munge the alpha.
|
| bool | getAlphaScaleViaTexture (TextureAttrib const tex_attrib) |
| | This variant of get_alpha_scale_via_texture() answers the question of whether the GSG can implement an alpha scale via an additional Texture layer, considering the current TextureAttrib that will be in effect.
|
| bool | getColorScaleViaLighting () |
| | Returns true if this particular GSG can implement (or would prefer to implement) set color and/or color scale using materials and/or ambient lights, or false if we need to actually munge the color.
|
| CoordinateSystem | getCoordinateSystem () |
| | Returns the coordinate system in effect on this particular gsg.
|
| bool | getCopyTextureInverted () |
| | Returns true if this particular GSG has the property that any framebuffer-to-texture copy results in a texture that is upside-down and backwards from Panda's usual convention; that is, it copies into a texture from the bottom up instead of from the top down.
|
| string | getDriverRenderer () |
| | Returns GL_Renderer.
|
| int | getDriverShaderVersionMajor () |
| | Returns the major version of the shader model.
|
| int | getDriverShaderVersionMinor () |
| | Returns the minor version of the shader model.
|
| string | getDriverVendor () |
| | Returns the vendor of the video card driver.
|
| string | getDriverVersion () |
| | Returns driver version.
|
| int | getDriverVersionMajor () |
| | Returns major version of the video driver.
|
| int | getDriverVersionMinor () |
| | Returns the minor version of the video driver.
|
| GraphicsEngine | getEngine () |
| | Returns the graphics engine that created this GSG.
|
| Texture | getFlashTexture () |
| | Returns the current "flash texture", if any, or NULL if none.
|
| float | getGamma (float gamma) |
| | Get the current gamma setting.
|
| CoordinateSystem | getInternalCoordinateSystem () |
| | Returns the coordinate system used internally by the GSG.
|
| PandaLoader | getLoader () |
| | Returns the Loader object that will be used by this GSG to load textures when necessary, if get_incomplete_render() is true.
|
| int | getMax2dTextureArrayLayers () |
| | Returns the largest possible number of pages, or -1 if there is no particular limit.
|
| int | getMax3dTextureDimension () |
| | Returns the largest possible texture size in any one dimension for a 3-d texture, or -1 if there is no particular limit.
|
| int | getMaxClipPlanes () |
| | Returns the maximum number of simultaneous clip planes that may be applied to geometry, or -1 if there is no particular limit.
|
| int | getMaxCubeMapDimension () |
| | Returns the largest possible texture size in any one dimension for a cube map texture, or -1 if there is no particular limit.
|
| int | getMaximumSimultaneousRenderTargets () |
| | Returns the maximum simultaneous render targets supported.
|
| int | getMaxLights () |
| | Returns the maximum number of simultaneous lights that may be rendered on geometry, or -1 if there is no particular limit.
|
| int | getMaxTextureStages () |
| | Returns the maximum number of simultaneous textures that may be applied to geometry with multitexturing, as supported by this particular GSG.
|
| int | getMaxVertexTransformIndices () |
| | Returns the maximum number of transforms there may be in a single TransformTable for this graphics hardware.
|
| int | getMaxVertexTransforms () |
| | Returns the maximum number of transform matrices that may be simultaneously used to transform any one vertex by the graphics hardware.
|
| GraphicsPipe | getPipe () |
| | Returns the graphics pipe on which this GSG was created.
|
| PreparedGraphicsObjects | getPreparedObjects () |
| | Returns the set of texture and geom objects that have been prepared with this GSG (and possibly other GSG's that share objects).
|
| PyObject | getPreparedTextures () |
| | Returns a Python list of all of the currently-prepared textures within the GSG.
|
| bool | getRuntimeColorScale () |
| | Returns true if this particular GSG can implement (or would prefer to implement) set color and/or color scale directly, without requiring any munging of vertices or tricks with lighting.
|
| SceneSetup | getScene () |
| | Returns the current SceneSetup object.
|
| int | getShaderModel () |
| | Returns the ShaderModel.
|
| bool | getSupports2dTextureArray () |
| | Returns true if this GSG can render 2-d textures array.
|
| bool | getSupports3dTexture () |
| | Returns true if this GSG can render 3-d (volumetric) textures.
|
| bool | getSupportsBasicShaders () |
| | Returns true if this particular GSG supports arbfp1+arbvp1 or above.
|
| bool | getSupportsCgProfile (string name) |
| | Returns true if this particular GSG supports the specified Cg Shader Profile.
|
| bool | getSupportsCompressedTexture () |
| | Returns true if this GSG can compress textures as it loads them into texture memory, and/or accept pre-compressed textures for storing.
|
| bool | getSupportsCubeMap () |
| | Returns true if this GSG can render cube map textures.
|
| bool | getSupportsDepthStencil () |
| | Returns true if this particular GSG supports textures whose format is F_depth_stencil.
|
| bool | getSupportsDepthTexture () |
| | Returns true if this particular GSG supports textures whose format is F_depth_stencil.
|
| bool | getSupportsGenerateMipmap () |
| | Returns true if this particular GSG can generate mipmaps for a texture automatically, or if they must be generated in software.
|
| bool | getSupportsGeometryInstancing () |
| | Returns true if this particular GSG supports hardware geometry instancing: the ability to render multiple copies of a model.
|
| bool | getSupportsGlsl () |
| | Returns true if this particular GSG supports GLSL shaders.
|
| bool | getSupportsStencil () |
| | Returns true if this particular GSG supports stencil buffers at all.
|
| bool | getSupportsTexNonPow2 () |
| | Returns true if this GSG can handle non power of two sized textures.
|
| bool | getSupportsTextureCombine () |
| | Returns true if this particular GSG can use the TextureStage.M_combine mode, which includes all of the texture blend modes specified by set_combine_rgb() and/or set_combine_alpha().
|
| bool | getSupportsTextureDot3 () |
| | Returns true if this GSG can use the TextureStage.CM_dot3_rgb or CM_dot3_rgba combine modes.
|
| bool | getSupportsTextureSavedResult () |
| | Returns true if this GSG can use the TextureStage.CS_last_saved_result source, which allows you to save the result of a TextureStage and re-use it for multiple inputs.
|
| bool | getSupportsTwoSidedStencil () |
| | Returns true if this particular GSG supports two sided stencil: different stencil settings for the front and back side of the same polygon.
|
| QualityLevel | getTextureQualityOverride () |
| | Returns the global quality_level override specified by set_texture_quality_override.
|
| GraphicsThreadingModel const | getThreadingModel () |
| | Returns the threading model that was used to create this GSG.
|
| bool | isActive () |
| | Returns the active flag associated with the GraphicsStateGuardian.
|
| bool | isHardware () |
| | Returns true if this GSG appears to be hardware-accelerated, or false if it is known to be software only.
|
| bool | isValid () |
| | Returns true if the GSG has been correctly initialized within a graphics context, false if there has been some problem or it hasn't been initialized yet.
|
| bool | needsReset () |
| | Returns true if the gsg is marked as needing a reset.
|
| | releaseAll () |
| | Releases all prepared objects.
|
| int | releaseAllGeoms () |
| | Frees the resources for all geoms associated with this GSG.
|
| int | releaseAllIndexBuffers () |
| | Frees the resources for all index buffers associated with this GSG.
|
| int | releaseAllTextures () |
| | Frees the resources for all textures associated with this GSG.
|
| int | releaseAllVertexBuffers () |
| | Frees the resources for all vertex buffers associated with this GSG.
|
| | restoreGamma () |
| | Restore original gamma setting.
|
| | setActive (bool active) |
| | Sets the active flag associated with the GraphicsStateGuardian.
|
| | setCoordinateSystem (CoordinateSystem cs) |
| | Changes the coordinate system in effect on this particular gsg.
|
| | setFlashTexture (Texture tex) |
| | Sets the "flash texture".
|
| bool | setGamma (float gamma) |
| | Set gamma.
|
| | setIncompleteRender (bool incomplete_render) |
| | Sets the incomplete_render flag.
|
| | setLoader (PandaLoader loader) |
| | Sets the Loader object that will be used by this GSG to load textures when necessary, if get_incomplete_render() is true.
|
| bool | setScene (SceneSetup scene_setup) |
| | Sets the SceneSetup object that indicates the initial camera position, etc.
|
| | setShaderModel (int shader_model) |
| | Sets the ShaderModel.
|
| | setTextureQualityOverride (QualityLevel quality_level) |
| | Specifies the global quality_level to be imposed for all Textures rendered by this GSG.
|
Static Public Member Functions |
| static TextureStage | getAlphaScaleTextureStage () |
| | Returns the TextureStage that will be used to apply an alpha scale, if get_alpha_scale_via_texture() returns true.
|
| static TypeHandle | getClassType () |
Encapsulates all the communication with a particular instance of a given rendering backend.
Tries to guarantee that redundant state-change requests are not issued (hence "state guardian").
There will be one of these objects for each different graphics context active in the system.