Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
// Generated by raea-bevy-sdk from raea's Bevy App's TypeRegistry (proc_gen (bevy_ghx_proc_gen)); don't edit, regenerate
// (tools/bevy-plugins.sh gen). 10 component.
// - In a scene (TSX): 10 wrappers, each a <BevyComponent> (or <BevyResource>) naming its type path, which raea-render
// applies with ReflectComponent::insert. Put a component inside the <Mesh3d> it belongs to; <ProcGenSettings> sets the
// plugin's resources.
// - In a TypeScript program (raea/bevy's BevyApp): `proc_gen` holds a typed handle for every component,
// resource, event, message and state, to spawn, insert, get, trigger, write, observe and set.
import { BevyComponent, BevyResource } from "raea/3d";
import { component, resource, event, message, state } from "raea/bevy";
/** ghx_grid::cartesian::coordinates::Cartesian2D */
export interface Cartesian2D {
}
/** ghx_grid::cartesian::coordinates::Cartesian3D */
export interface Cartesian3D {
}
/** ghx_grid::cartesian::coordinates::CartesianPosition */
export interface CartesianPosition {
x: number;
y: number;
z: number;
}
/** ghx_grid::cartesian::coordinates::GridDelta */
export interface GridDelta {
dx: number;
dy: number;
dz: number;
}
/** ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian2D> */
export interface CartesianGridCartesian2D {
size_x: number;
size_y: number;
size_z: number;
looping_x: boolean;
looping_y: boolean;
looping_z: boolean;
coord_system: Cartesian2D;
size_xy: number;
}
/** ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian3D> */
export interface CartesianGridCartesian3D {
size_x: number;
size_y: number;
size_z: number;
looping_x: boolean;
looping_y: boolean;
looping_z: boolean;
coord_system: Cartesian3D;
size_xy: number;
}
/** ghx_grid::direction::Direction */
export type Direction =
| "XForward"
| "YForward"
| "XBackward"
| "YBackward"
| "ZForward"
| "ZBackward";
/** ghx_proc_gen::generator::model::ModelRotation */
export type ModelRotation =
| "Rot0"
| "Rot90"
| "Rot180"
| "Rot270";
/** ghx_proc_gen::generator::model::ModelInstance */
export interface ModelInstance {
model_index: number;
rotation: ModelRotation;
}
/** ghx_proc_gen::generator::rules::ModelInfo */
export interface ModelInfo {
weight: number;
name: string;
}
/** ghx_grid::cartesian::coordinates::Cartesian2D (component) */
export function Cartesian2D(props: { value: Cartesian2D; from?: number }) {
return <BevyComponent type="ghx_grid::cartesian::coordinates::Cartesian2D" value={props.value ?? null} from={props.from} />;
}
/** ghx_grid::cartesian::coordinates::Cartesian3D (component) */
export function Cartesian3D(props: { value: Cartesian3D; from?: number }) {
return <BevyComponent type="ghx_grid::cartesian::coordinates::Cartesian3D" value={props.value ?? null} from={props.from} />;
}
/** ghx_grid::cartesian::coordinates::CartesianPosition (component) */
export function CartesianPosition(props: { value: CartesianPosition; from?: number }) {
return <BevyComponent type="ghx_grid::cartesian::coordinates::CartesianPosition" value={props.value ?? null} from={props.from} />;
}
/** ghx_grid::cartesian::coordinates::GridDelta (component) */
export function GridDelta(props: { value: GridDelta; from?: number }) {
return <BevyComponent type="ghx_grid::cartesian::coordinates::GridDelta" value={props.value ?? null} from={props.from} />;
}
/** ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian2D> (component) */
export function CartesianGridCartesian2D(props: { value: CartesianGridCartesian2D; from?: number }) {
return <BevyComponent type="ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian2D>" value={props.value ?? null} from={props.from} />;
}
/** ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian3D> (component) */
export function CartesianGridCartesian3D(props: { value: CartesianGridCartesian3D; from?: number }) {
return <BevyComponent type="ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian3D>" value={props.value ?? null} from={props.from} />;
}
/** ghx_grid::direction::Direction (component) */
export function Direction(props: { value: Direction; from?: number }) {
return <BevyComponent type="ghx_grid::direction::Direction" value={props.value ?? null} from={props.from} />;
}
/** ghx_proc_gen::generator::model::ModelInstance (component) */
export function ModelInstance(props: { value: ModelInstance; from?: number }) {
return <BevyComponent type="ghx_proc_gen::generator::model::ModelInstance" value={props.value ?? null} from={props.from} />;
}
/** ghx_proc_gen::generator::model::ModelRotation (component) */
export function ModelRotation(props: { value: ModelRotation; from?: number }) {
return <BevyComponent type="ghx_proc_gen::generator::model::ModelRotation" value={props.value ?? null} from={props.from} />;
}
/** ghx_proc_gen::generator::rules::ModelInfo (component) */
export function ModelInfo(props: { value: ModelInfo; from?: number }) {
return <BevyComponent type="ghx_proc_gen::generator::rules::ModelInfo" value={props.value ?? null} from={props.from} />;
}
/** proc_gen's settings: each one given is its resource, set at load (left out, the plugin's default). */
export function ProcGenSettings(props: {
/* no reflected resources */
}) {
return (
<>
</>
);
}
/** Typed handles for a TypeScript App (raea/bevy): `app.spawn(with(proc_gen.X, value))`, `app.trigger(proc_gen.E, value)`. */
export const procGen = {
plugin: "proc_gen" as const,
/** ghx_grid::cartesian::coordinates::Cartesian2D (component) */
Cartesian2D: component<Cartesian2D>("ghx_grid::cartesian::coordinates::Cartesian2D"),
/** ghx_grid::cartesian::coordinates::Cartesian3D (component) */
Cartesian3D: component<Cartesian3D>("ghx_grid::cartesian::coordinates::Cartesian3D"),
/** ghx_grid::cartesian::coordinates::CartesianPosition (component) */
CartesianPosition: component<CartesianPosition>("ghx_grid::cartesian::coordinates::CartesianPosition"),
/** ghx_grid::cartesian::coordinates::GridDelta (component) */
GridDelta: component<GridDelta>("ghx_grid::cartesian::coordinates::GridDelta"),
/** ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian2D> (component) */
CartesianGridCartesian2D: component<CartesianGridCartesian2D>("ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian2D>"),
/** ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian3D> (component) */
CartesianGridCartesian3D: component<CartesianGridCartesian3D>("ghx_grid::cartesian::grid::CartesianGrid<ghx_grid::cartesian::coordinates::Cartesian3D>"),
/** ghx_grid::direction::Direction (component) */
Direction: component<Direction>("ghx_grid::direction::Direction"),
/** ghx_proc_gen::generator::model::ModelInstance (component) */
ModelInstance: component<ModelInstance>("ghx_proc_gen::generator::model::ModelInstance"),
/** ghx_proc_gen::generator::model::ModelRotation (component) */
ModelRotation: component<ModelRotation>("ghx_proc_gen::generator::model::ModelRotation"),
/** ghx_proc_gen::generator::rules::ModelInfo (component) */
ModelInfo: component<ModelInfo>("ghx_proc_gen::generator::rules::ModelInfo"),
};
void BevyResource;
void BevyComponent;
void component;
void resource;
void event;
void message;
void state;