Skip to content

armgit / raea

Public Imported from GitHub
0

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.

1.6 KB
Raw Blame
// Generated by raea-bevy-sdk from raea's Bevy App's TypeRegistry (obj (bevy_obj)); don't edit, regenerate
// (tools/bevy-plugins.sh gen). 1 component.
// - In a scene (TSX): 1 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; <ObjSettings> sets the
//   plugin's resources.
// - In a TypeScript program (raea/bevy's BevyApp): `obj` 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";

/** bevy_obj::scene::MeshGroups */
export type MeshGroups = (string)[];

/** bevy_obj::scene::MeshGroups (component) */
export function MeshGroups(props: { value: MeshGroups; from?: number }) {
  return <BevyComponent type="bevy_obj::scene::MeshGroups" value={props.value ?? null} from={props.from} />;
}

/** obj's settings: each one given is its resource, set at load (left out, the plugin's default). */
export function ObjSettings(props: {
  /* no reflected resources */
}) {
  return (
    <>

    </>
  );
}

/** Typed handles for a TypeScript App (raea/bevy): `app.spawn(with(obj.X, value))`, `app.trigger(obj.E, value)`. */
export const obj = {
  plugin: "obj" as const,
  /** bevy_obj::scene::MeshGroups (component) */
  MeshGroups: component<MeshGroups>("bevy_obj::scene::MeshGroups"),
};

void BevyResource;
void BevyComponent;
void component;
void resource;
void event;
void message;
void state;