ScissorAttrib

from panda3d.core import ScissorAttrib
class ScissorAttrib

Bases: RenderAttrib

This restricts rendering to within a rectangular region of the scene, without otherwise affecting the viewport or lens properties. Geometry that falls outside the scissor region is not rendered. It is akin to the OpenGL glScissor() function.

The ScissorAttrib always specifies its region relative to its enclosing DisplayRegion, in screen space, and performs no culling.

See ScissorEffect if you wish to define a region relative to 2-D or 3-D coordinates in the scene graph, with culling.

Inheritance diagram

Inheritance diagram of ScissorAttrib

__init__(*args, **kwargs)
class_slot = 23
frame
getClassSlot()

C++ Interface: get_class_slot()

getClassType()

C++ Interface: get_class_type()

getFrame()

C++ Interface: get_frame(ScissorAttrib self)

/**
  • Returns the left, right, bottom, top coordinates of the scissor frame.

  • This defines a frame within the current DisplayRegion, where 0,0 is the

  • lower-left corner of the DisplayRegion, and 1,1 is the upper-right corner.

*/

get_class_slot()

C++ Interface: get_class_slot()

get_class_type()

C++ Interface: get_class_type()

get_frame()

C++ Interface: get_frame(ScissorAttrib self)

/**
  • Returns the left, right, bottom, top coordinates of the scissor frame.

  • This defines a frame within the current DisplayRegion, where 0,0 is the

  • lower-left corner of the DisplayRegion, and 1,1 is the upper-right corner.

*/

isOff()

C++ Interface: is_off(ScissorAttrib self)

/**
  • Returns true if the ScissorAttrib is an ‘off’ ScissorAttrib, indicating

  • that scissor testing is disabled.

*/

is_off()

C++ Interface: is_off(ScissorAttrib self)

/**
  • Returns true if the ScissorAttrib is an ‘off’ ScissorAttrib, indicating

  • that scissor testing is disabled.

*/

make()

C++ Interface: make(const LVecBase4f frame) make(float left, float right, float bottom, float top)

/**
  • Constructs a ScissorAttrib that restricts rendering to the indicated frame

  • within the current DisplayRegion. (0,0) is the lower-left corner of the

  • DisplayRegion, and (1,1) is the upper-right corner.

*/

/**
  • Constructs a ScissorAttrib that restricts rendering to the indicated frame

  • within the current DisplayRegion. (0,0) is the lower-left corner of the

  • DisplayRegion, and (1,1) is the upper-right corner.

*/

makeDefault()

C++ Interface: make_default()

/**
  • Returns a RenderAttrib that corresponds to whatever the standard default

  • properties for render attributes of this type ought to be.

*/

makeOff()

C++ Interface: make_off()

/**
  • Constructs a new ScissorAttrib object that removes the scissor region and

  • fills the DisplayRegion.

*/

make_default()

C++ Interface: make_default()

/**
  • Returns a RenderAttrib that corresponds to whatever the standard default

  • properties for render attributes of this type ought to be.

*/

make_off()

C++ Interface: make_off()

/**
  • Constructs a new ScissorAttrib object that removes the scissor region and

  • fills the DisplayRegion.

*/