Skip to content

RenderingEngine

Daynlight edited this page Dec 17, 2025 · 2 revisions

Rendering Engine

Graphite uses CWindow for 2D/3D visualization and script output. It is wrapped via AppRenderer.

Current API & Integration

  • The rendering engine currently implements some custom changes and wrappers around CWindow to support Graphiteโ€™s needs.
  • Rendering is managed via the AppRenderer class, which handles window creation, frame rendering, and event processing.
  • Scripts interact with the renderer mainly through Plot2D/Plot3D classes that contains other Math modules. Plots generates points that are send to GPU.

Example Usage

AppRenderer renderer;
while(renderer.isRunning()) {
	renderer.renderFrame([&script](){
		script.draw();
	});
}

More about CWindow

See the CWindow repository for more details on the rendering backend.

Graphite Wiki Sidebar

Getting Started

References

Project & Versions

Community

Clone this wiki locally