render

package module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 6 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

meui-render

The renderer-neutral graphics.Device adapter and device factory for MeUI.

import "github.com/sixnineone/meui-render"

dev := render.New(width, height)

render.New selects the linked backend through graphics.RegisterDeviceFactory. It bridges core's graphics types (Paint, Image, Path, fonts, blur, offscreen) to:

  • meui-render-gl — OpenGL/GLES (glrender), used by meui-gl;
  • meui-render-sdlgpu — SDL3 GPU (Vulkan, Metal, D3D12), used directly by GPU applications.

Core and widgets never import a renderer. meui-gl is the SDL3 window/input/platform adapter for the GL path; meui-sdl owns the window and input itself.

MIT.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(width, height float32) Device

NewRendererDevice creates the built-in renderer-backed device with its own surface. Callers normally use internal/mobileglesdevice.New instead.

func Wrap

func Wrap(surface any) Device

WrapRendererCanvas adapts an existing renderer canvas, which the platform layer owns. The parameter is opaque so the seam names no backend type; the value must be the built-in renderer's canvas. Callers normally use internal/mobileglesdevice.Wrap or meui-gl/sdl3 instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL