Help us shape the future of Go! Take the 2026 Go Developer Survey

codegen

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package codegen emits project-specific Go adapters for Karty UI and assets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectConfigFile added in v0.0.4

func ProjectConfigFile(config ProjectConfiguration) ([]byte, error)

ProjectConfigFile emits the inspectable .karty/config/project.go adapter.

func TextureAssetFile

func TextureAssetFile(names []string) ([]byte, error)

TextureAssetFile emits typed logical texture references from karty.toml.

func TextureAssetPackageFile added in v0.0.3

func TextureAssetPackageFile(names []string, engineImport string) ([]byte, error)

TextureAssetPackageFile emits typed texture references in package assets.

func UIAssetFile

func UIAssetFile(names []string) ([]byte, error)

UIAssetFile emits typed UI asset names, sharing identifier collision checks.

func UIAssetPackageFile added in v0.0.3

func UIAssetPackageFile(names []string, engineImport string) ([]byte, error)

UIAssetPackageFile emits typed UI references in package assets.

func UIClientFiles

func UIClientFiles(components []uicompiler.Component, module string) (map[string][]byte, error)

UIClientFiles emits same-package client functions for model-bound screens. Callers stage these next to copies of authored Go; never write them into src.

func UIPackageFiles

func UIPackageFiles(components []uicompiler.Component, module string) (map[string][]byte, error)

UIPackageFiles emits the persistent, importable UI package.

Types

type ProjectConfiguration added in v0.0.4

type ProjectConfiguration struct {
	ResolutionWidth, ResolutionHeight                    uint32
	CameraFOVY, CameraNear, CameraFar, CameraOrthoHeight float32
}

ProjectConfiguration provides validated build-time project camera defaults. The CLI owns manifest parsing and converts authored FOV degrees to radians.

Jump to

Keyboard shortcuts

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