C# Class TechEngine.Engine.Renderer

Inheritance: System.Windows.Forms.PictureBox
Show file Open project: DotTech/3D-software-renderer Class Usage Examples

Public Methods

Method Description
Init ( ) : void

Must be called before any methods are invoked

SetBackbuffer ( FrameBuffer buffer ) : void

Draws an entire frame to the backbuffer

SwapBuffer ( ) : void

Swap framebuffer

Update ( ) : void

Draw the screenbuffer and update fps count

Protected Methods

Method Description
OnPaint ( PaintEventArgs pe ) : void

Paint the contents of the screenBuffer on the control surface

Method Details

Init() public method

Must be called before any methods are invoked
public Init ( ) : void
return void

OnPaint() protected method

Paint the contents of the screenBuffer on the control surface
protected OnPaint ( PaintEventArgs pe ) : void
pe PaintEventArgs
return void

SetBackbuffer() public method

Draws an entire frame to the backbuffer
public SetBackbuffer ( FrameBuffer buffer ) : void
buffer FrameBuffer
return void

SwapBuffer() public method

Swap framebuffer
public SwapBuffer ( ) : void
return void

Update() public method

Draw the screenbuffer and update fps count
public Update ( ) : void
return void