GraphicsThreadingModel

from panda3d.core import GraphicsThreadingModel
class GraphicsThreadingModel

Bases: DTOOL_SUPER_BASE

This represents the user’s specification of how a particular frame is handled by the various threads.

Inheritance diagram

Inheritance diagram of GraphicsThreadingModel

__init__(*args, **kwargs)
assign()

C++ Interface: assign(const GraphicsThreadingModel self, const GraphicsThreadingModel copy)

getCullName()

C++ Interface: get_cull_name(GraphicsThreadingModel self)

/**
  • Returns the name of the thread that will handle culling in this model.

*/

getCullSorting()

C++ Interface: get_cull_sorting(GraphicsThreadingModel self)

/**
  • Returns true if the model involves a separate cull pass, or false if

  • culling happens implicitly, at the same time as draw.

*/

getCullStage()

C++ Interface: get_cull_stage(GraphicsThreadingModel self)

/**
  • Returns the pipeline stage from which the cull thread should access data.

  • This will be 0 if the cull is run in the same thread as app, or 1 if it is

  • its own thread.

*/

getDrawName()

C++ Interface: get_draw_name(GraphicsThreadingModel self)

/**
  • Returns the name of the thread that will handle sending the actual graphics

  • primitives to the graphics API in this model.

*/

getDrawStage()

C++ Interface: get_draw_stage(GraphicsThreadingModel self)

/**
  • Returns the pipeline stage from which the draw thread should access data.

  • This will be the same value as get_cull_stage() if cull and draw are run in

  • the same thread, or one more than that value if draw should be in its own

  • thread.

*/

getModel()

C++ Interface: get_model(GraphicsThreadingModel self)

/**
  • Returns the string that describes the threading model. See the

  • constructor.

*/

get_cull_name()

C++ Interface: get_cull_name(GraphicsThreadingModel self)

/**
  • Returns the name of the thread that will handle culling in this model.

*/

get_cull_sorting()

C++ Interface: get_cull_sorting(GraphicsThreadingModel self)

/**
  • Returns true if the model involves a separate cull pass, or false if

  • culling happens implicitly, at the same time as draw.

*/

get_cull_stage()

C++ Interface: get_cull_stage(GraphicsThreadingModel self)

/**
  • Returns the pipeline stage from which the cull thread should access data.

  • This will be 0 if the cull is run in the same thread as app, or 1 if it is

  • its own thread.

*/

get_draw_name()

C++ Interface: get_draw_name(GraphicsThreadingModel self)

/**
  • Returns the name of the thread that will handle sending the actual graphics

  • primitives to the graphics API in this model.

*/

get_draw_stage()

C++ Interface: get_draw_stage(GraphicsThreadingModel self)

/**
  • Returns the pipeline stage from which the draw thread should access data.

  • This will be the same value as get_cull_stage() if cull and draw are run in

  • the same thread, or one more than that value if draw should be in its own

  • thread.

*/

get_model()

C++ Interface: get_model(GraphicsThreadingModel self)

/**
  • Returns the string that describes the threading model. See the

  • constructor.

*/

isDefault()

C++ Interface: is_default(GraphicsThreadingModel self)

/**
  • Returns true if the threading model is the default, cull-then-draw single-

  • threaded model, or false otherwise.

*/

isSingleThreaded()

C++ Interface: is_single_threaded(GraphicsThreadingModel self)

/**
  • Returns true if the threading model is a single-threaded model, or false if

  • it involves threads.

*/

is_default()

C++ Interface: is_default(GraphicsThreadingModel self)

/**
  • Returns true if the threading model is the default, cull-then-draw single-

  • threaded model, or false otherwise.

*/

is_single_threaded()

C++ Interface: is_single_threaded(GraphicsThreadingModel self)

/**
  • Returns true if the threading model is a single-threaded model, or false if

  • it involves threads.

*/

output()

C++ Interface: output(GraphicsThreadingModel self, ostream out)

/**

*/

setCullName()

C++ Interface: set_cull_name(const GraphicsThreadingModel self, str cull_name)

/**
  • Changes the name of the thread that will handle culling in this model.

  • This won’t change any windows that were already created with this model;

  • this only has an effect on newly-opened windows.

*/

setCullSorting()

C++ Interface: set_cull_sorting(const GraphicsThreadingModel self, bool cull_sorting)

/**
  • Changes the flag that indicates whether the threading model involves a

  • separate cull pass. This won’t change any windows that were already

  • created with this model; this only has an effect on newly-opened windows.

*/

setDrawName()

C++ Interface: set_draw_name(const GraphicsThreadingModel self, str cull_name)

/**
  • Changes the name of the thread that will handle drawing in this model.

  • This won’t change any windows that were already created with this model;

  • this only has an effect on newly-opened windows.

*/

set_cull_name()

C++ Interface: set_cull_name(const GraphicsThreadingModel self, str cull_name)

/**
  • Changes the name of the thread that will handle culling in this model.

  • This won’t change any windows that were already created with this model;

  • this only has an effect on newly-opened windows.

*/

set_cull_sorting()

C++ Interface: set_cull_sorting(const GraphicsThreadingModel self, bool cull_sorting)

/**
  • Changes the flag that indicates whether the threading model involves a

  • separate cull pass. This won’t change any windows that were already

  • created with this model; this only has an effect on newly-opened windows.

*/

set_draw_name()

C++ Interface: set_draw_name(const GraphicsThreadingModel self, str cull_name)

/**
  • Changes the name of the thread that will handle drawing in this model.

  • This won’t change any windows that were already created with this model;

  • this only has an effect on newly-opened windows.

*/