Files
Liu afa800dfaf build(xmake): fix package name, target naming and example install
- Remove per-lib set_project() calls that overrode the global lcui
  project name; xmake show now correctly reports the project as lcui.
- Move per-lib set_version() into the corresponding target() block so
  each sub-library keeps an independent version usable for standalone
  packaging.
- Add set_default(false) and set_group(examples) to all pandagl
  examples so they are no longer picked up by xmake package.
- Rename targets to use dashes for consistency:
    pandagl_cairo_example  -> pandagl-cairo-example
    preview_block_layout   -> preview-block-layout
    preview_flex_layout    -> preview-flex-layout
    preview_scrollbar      -> preview-scrollbar
    preview_widget_opacity -> preview-widget-opacity
- Bump yutil submodule to drop its set_project() call as well.
2026-06-01 22:27:07 +08:00
..
2025-01-05 23:29:56 +08:00
2023-04-01 22:35:30 +08:00
2023-04-01 22:35:30 +08:00
2023-04-01 22:35:30 +08:00

Cairo Example

(English/中文)

An example of drawing with PandaGL and Cairo graphics libraries. It creates a canvas using PandaGL, then creates a Surface based on the canvas for Cairo to draw complex shapes, fills simple shapes with PandaGL, and outputs the results as a PNG image file using Cairo.

# Build PandaGL
xmake build pandagl

# Package PandaGL
xmake package pandagl

# Build example project
xmake -P .

# Run example project
xmake run -P . -w .

Open the output.png file and you'll see something like this:

output