DD::Image::Render::Span Class Reference

Public Member Functions

 Span (const Span &s)
 
Spanoperator= (const Span &s)
 
void initialize (Scene *scene, rPrimitive *p, int Y)
 
const Primitiveprimitive () const
 
rPrimitiverprimitive () 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.
 

Detailed Description

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.

Member Function Documentation

const Primitive* DD::Image::Render::Span::primitive ( ) const
inline

Return the parent primitive stored in the VertexContext.

rPrimitive* DD::Image::Render::Span::rprimitive ( ) const
inline

Return the render primitive stored in the VertexContext.

Referenced by DD::Image::Render::draw_primitives().



©2020 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk