Skip to content

RenderingEngine

Daynlight edited this page Dec 8, 2025 · 1 revision

Rendering Engine

๐Ÿšง Note: Full CWindow integration and 3D support are planned! See Roadmap.md for details.

Graphite uses a custom rendering engine based on CWindow for 2D/3D visualization and script output.


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 through math objects (like Point) and drawing functions.

Example Usage

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

Future Plans

  • The rendering engine will transition to use full CWindow functionality directly, removing custom wrappers and making Graphite a thin layer over CWindow.
  • This will allow for more advanced features, better performance, and easier maintenance.

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

Graphite Wiki Sidebar

Getting Started

References

Project & Versions

Community

Clone this wiki locally