# GraphicsThreadingModel

from pandac.PandaModules import GraphicsThreadingModel

Class : GraphicsThreadingModel
Description : This represents the user's specification of how a particular frame is handled by the various threads.

## Inheritance:

GraphicsThreadingModel:

## Methods of GraphicsThreadingModel:

getCullName
getCullSorting
getCullStage
getDrawName
getDrawStage
getModel
isDefault
isSingleThreaded
operator =
output
setCullName
setCullSorting
setDrawName

getCullName string const &GraphicsThreadingModel::get_cull_name(void) const; Description: Returns the name of the thread that will handle culling in this model.

getCullSorting bool GraphicsThreadingModel::get_cull_sorting(void) const; Description: Returns true if the model involves a separate cull pass, or false if culling happens implicitly, at the same time as draw.

getCullStage int GraphicsThreadingModel::get_cull_stage(void) const; Description: 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 string const &GraphicsThreadingModel::get_draw_name(void) const; Description: Returns the name of the thread that will handle sending the actual graphics primitives to the graphics API in this model.

getDrawStage int GraphicsThreadingModel::get_draw_stage(void) const; Description: 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 string GraphicsThreadingModel::get_model(void) const; Description: Returns the string that describes the threading model. See the constructor.

isDefault bool GraphicsThreadingModel::is_default(void) const; Description: Returns true if the threading model is the default, cull-then-draw single-threaded model, or false otherwise.

isSingleThreaded bool GraphicsThreadingModel::is_single_threaded(void) const; Description: Returns true if the threading model is a single-threaded model, or false if it involves threads.

operator = void GraphicsThreadingModel::operator =(GraphicsThreadingModel const &copy); Description:

output void GraphicsThreadingModel::output(ostream &out) const; Description:

setCullName void GraphicsThreadingModel::set_cull_name(string const &cull_name); Description: 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 void GraphicsThreadingModel::set_cull_sorting(bool cull_sorting); Description: 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 void GraphicsThreadingModel::set_draw_name(string const &cull_name); Description: 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.