# panda3d.core.GraphicsStateGuardianBase¶

from panda3d.core import GraphicsStateGuardianBase

class GraphicsStateGuardianBase

This is a base class for the GraphicsStateGuardian class, which is itself a base class for the various GSG’s for different platforms. This class contains all the function prototypes to support the double-dispatch of GSG to geoms, transitions, etc. It lives in a separate class in its own package so we can avoid circular build dependency problems.

GraphicsStateGuardians are not actually writable to bam files, of course, but they may be passed as event parameters, so they inherit from TypedWritableReferenceCount instead of TypedReferenceCount for that convenience.

Inheritance diagram

static getClassType() → TypeHandle
Return type

TypeHandle

static getDefaultGsg() → GraphicsStateGuardianBase

Returns a pointer to the “default” GSG. This is typically the first GSG created in an application; in a single-window application, it will be the only GSG. This GSG is used to determine default optimization choices for loaded geometry.

The return value may be NULL if a GSG has not been created.

Return type

GraphicsStateGuardianBase

getEffectiveIncompleteRender() → bool
static getGsg(n: size_t) → GraphicsStateGuardianBase

Returns the nth GSG in the universe. GSG’s automatically add themselves and remove themselves from this list as they are created and destroyed.

Return type

GraphicsStateGuardianBase

getGsgs() → list
getIncompleteRender() → bool
getMaxTextureDimension() → int
getMaxVerticesPerArray() → int
getMaxVerticesPerPrimitive() → int
static getNumGsgs() → size_t

Returns the total number of GSG’s in the universe.

Return type

size_t

getSupportedGeomRendering() → int
getSupportsCompressedTextureFormat(compression_mode: int) → bool
getSupportsHlsl() → bool
getSupportsMultisample() → bool
getSupportsShadowFilter() → bool
getSupportsTextureSrgb() → bool
prefersTriangleStrips() → bool
static setDefaultGsg(default_gsg: GraphicsStateGuardianBase) → None

Specifies a particular GSG to use as the “default” GSG. See getDefaultGsg().