Public Member Functions | |
| Span (const Span &s) | |
| Span & | operator= (const Span &s) |
| void | initialize (Scene *scene, rPrimitive *p, int Y) |
| const Primitive * | primitive () const |
| rPrimitive * | rprimitive () const |
Public Attributes | |
| VertexContext | vtx |
| Argument for Iop::fragment_shader() | |
| VArray | vX |
| Value for vtx.vP at x==0. | |
| int | x |
| int | r |
| Range of pixels the primitive intersects. | |
| bool | always_hit |
| Used by antialiasing. | |
| bool | never_hit |
| Used by antialiasing. | |
A Span represents the intersection of an rPrimitive with a scan line, the Render op uses these in it's implementation. The rPrimitive::intersect_scanline() method fills this in. This is the thread-safe part of the rendering system so one of these spans exist for each thread that's working on a primitive.
| void Render::Span::initialize | ( | Scene * | scene, |
| rPrimitive * | p, | ||
| int | Y | ||
| ) |
Call the rPrimitive::intersect_scanline and otherwise setup.
References always_hit, DD::Image::Scene::ambient, DD::Image::VertexContext::ambient, DD::Image::VertexContext::blending_shader, never_hit, r, DD::Image::VertexContext::texture_sampling, DD::Image::VertexContext::vdX, DD::Image::VertexContext::vdY, DD::Image::VertexContext::vP, vtx, and vX.
Referenced by DD::Image::Render::draw_primitives().
|
inline |
Return the parent primitive stored in the VertexContext.
|
inline |
Return the render primitive stored in the VertexContext.
Referenced by DD::Image::Render::draw_primitives().
| ©2024 The Foundry Visionmongers, Ltd. All Rights Reserved. |