Documentation
¶
Overview ¶
Package codegen emits project-specific Go adapters for Karty UI and assets.
Index ¶
- func ProjectConfigFile(config ProjectConfiguration) ([]byte, error)
- func TextureAssetFile(names []string) ([]byte, error)
- func TextureAssetPackageFile(names []string, engineImport string) ([]byte, error)
- func UIAssetFile(names []string) ([]byte, error)
- func UIAssetPackageFile(names []string, engineImport string) ([]byte, error)
- func UIClientFiles(components []uicompiler.Component, module string) (map[string][]byte, error)
- func UIPackageFiles(components []uicompiler.Component, module string) (map[string][]byte, error)
- type ProjectConfiguration
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 ¶
TextureAssetFile emits typed logical texture references from karty.toml.
func TextureAssetPackageFile ¶ added in v0.0.3
TextureAssetPackageFile emits typed texture references in package assets.
func UIAssetFile ¶
UIAssetFile emits typed UI asset names, sharing identifier collision checks.
func UIAssetPackageFile ¶ added in v0.0.3
UIAssetPackageFile emits typed UI references in package assets.
func UIClientFiles ¶
UIClientFiles emits same-package client functions for model-bound screens. Callers stage these next to copies of authored Go; never write them into src.
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.