Rendering with HiAPI
This section covers the rendering capabilities of HiAPI, focusing on how to create and display visual content in your applications.
Overview
HiAPI provides a powerful rendering system built around the DispEngine and IDisplayee interface. This system enables you to:
- Create and render 3D and 2D graphics
- Implement interactive user interfaces
- Achieve high-performance rendering across multiple platforms
- Handle touch, mouse, and keyboard input uniformly
Key Components
The HiAPI rendering system consists of several key components:
- DispEngine: The core rendering engine that processes displayees and handles user interaction
- IDisplayee: The interface for renderable objects
- Drawing: A fundamental rendering unit for creating basic geometric elements
- RenderingCanvas: UI controls for different frameworks that host the DispEngine
Sections
| Topic | Description |
|---|---|
| Using RenderingCanvas with DispEngine | Learn how to use the RenderingCanvas component in your applications |
| Building Your Own Rendering Canvas | Understand how to implement custom rendering components |
| Drawing | Learn how to use the Drawing class to create basic geometric elements |
Basic Rendering Workflow
The typical workflow for rendering with HiAPI follows these steps:
- Create Displayees: Implement IDisplayee or use existing implementations like Drawing
- Configure DispEngine: Create and initialize a DispEngine with your displayees
- UI Integration: Use RenderingCanvas components to display the rendered content in your UI
- Handle Input: Process user interactions through the DispEngine's input handling methods
This pattern works consistently across all supported UI frameworks, allowing you to develop cross-platform applications with a unified codebase.