Click or drag to resize

LineSubRenderableRenderSnappedToPixel Method

Render the line so it's pixel perfect

Namespace: Demo3D.Visuals.Renderers.Lines
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public void RenderSnappedToPixel(
	IDisplay display,
	Matrix viewMatrix,
	Matrix projMatrix,
	Vector2 halfScreenSize,
	bool areDepthMatriciesSet
)

Parameters

display  IDisplay
The current display
viewMatrix  Matrix
The current camera view matrix
projMatrix  Matrix
The current projection matrix, not the screen space matrix
halfScreenSize  Vector2
Half the rendering view size
areDepthMatriciesSet  Boolean
When true we assume that UpdateDepthEffectMatricies has been called in this render loop. This helps performance when called multiple times
See Also