Directories
¶
| Path | Synopsis |
|---|---|
|
bundles
|
|
|
anim
Package anim declares timelines of eased value tracks and one-tick cues.
|
Package anim declares timelines of eased value tracks and one-tick cues. |
|
anim/animplugin
Package animplugin constructs the anim plugin.
|
Package animplugin constructs the anim plugin. |
|
anim/internal
Package internal is the anim plugin: New, and the handler behind anim's AdvanceOnUpdate subscription that advances every timeline each tick.
|
Package internal is the anim plugin: New, and the handler behind anim's AdvanceOnUpdate subscription that advances every timeline each tick. |
|
anim/internal/types
Package types declares the concrete types anim's root aliases: Timelines and Timeline, whose unexported state the plugin advances, and everything those refer to or a track is built from (Params, State, Easing, Sequence, Lerp and Flipbook), with the easings, the Lerp constructors and Over that the root forwards to.
|
Package types declares the concrete types anim's root aliases: Timelines and Timeline, whose unexported state the plugin advances, and everything those refer to or a track is built from (Params, State, Easing, Sequence, Lerp and Flipbook), with the easings, the Lerp constructors and Over that the root forwards to. |
|
canvas
Package canvas declares the 2D drawing Bundle: layered sprites, text, primitives and custom triangles recorded into a frame-local queue, and sprites and text measured through a persistent lookup.
|
Package canvas declares the 2D drawing Bundle: layered sprites, text, primitives and custom triangles recorded into a frame-local queue, and sprites and text measured through a persistent lookup. |
|
canvas/canvasplugin
Package canvasplugin constructs the canvas plugin.
|
Package canvasplugin constructs the canvas plugin. |
|
canvas/internal
Package internal is the canvas plugin: New, the resolution of canvas.Config, the flush that turns a tick's recorded canvas.OpQueue into gfx draws through the sprite and triangle batchers, the draw-snapshot slot behind canvas.ArmDrawsCmd, the Start mount of the built-in shaders and default font, and the mcp Provider offering canvas_draws.
|
Package internal is the canvas plugin: New, the resolution of canvas.Config, the flush that turns a tick's recorded canvas.OpQueue into gfx draws through the sprite and triangle batchers, the draw-snapshot slot behind canvas.ArmDrawsCmd, the Start mount of the built-in shaders and default font, and the mcp Provider offering canvas_draws. |
|
canvas/internal/types
Package types declares the concrete types canvas's root aliases, and the machinery behind them: the recording vocabulary and the two resources, OpQueue and Lookup, with their recording and measuring methods; the consume side of the queue; the sprite and glyph atlases, the font store and inline-text parsing; Config, which the atlases hold; the halo profile; and the built-in materials.
|
Package types declares the concrete types canvas's root aliases, and the machinery behind them: the recording vocabulary and the two resources, OpQueue and Lookup, with their recording and measuring methods; the consume side of the queue; the sprite and glyph atlases, the font store and inline-text parsing; Config, which the atlases hold; the halo profile; and the built-in materials. |
|
ecs
Package ecs describes things in the world as Entities carrying Components.
|
Package ecs describes things in the world as Entities carrying Components. |
|
ecs/ecsplugin
Package ecsplugin constructs the ecs plugin.
|
Package ecsplugin constructs the ecs plugin. |
|
ecs/internal
Package internal is the ecs plugin: New, the resolution of ecs.Config, and the registration that publishes the id authority, *ecs.Entities, as the resource every System holds for read and every structural change holds for write.
|
Package internal is the ecs plugin: New, the resolution of ecs.Config, and the registration that publishes the id authority, *ecs.Entities, as the resource every System holds for read and every structural change holds for write. |
|
ecs/internal/types
Package types declares the concrete types ecs's root aliases, and the machinery behind them: the Entity handle and the id authority, Entities; the Store and component registration; the System parameters (Query, Spawn, WriteableEntities, Get, Set, Remove, Read, Write, In and Resp) with the Query fill and the handler builders ToHandler and ToExecute; the filters; List; and validation mode.
|
Package types declares the concrete types ecs's root aliases, and the machinery behind them: the Entity handle and the id authority, Entities; the Store and component registration; the System parameters (Query, Spawn, WriteableEntities, Get, Set, Remove, Read, Write, In and Resp) with the Query fill and the handler builders ToHandler and ToExecute; the filters; List; and validation mode. |
|
ecsphysics2d
Package ecsphysics2d gives an app 2D rigid-body physics on a plane.
|
Package ecsphysics2d gives an app 2D rigid-body physics on a plane. |
|
ecsphysics2d/ecsphysics2dplugin
Package ecsphysics2dplugin constructs the physics plugin.
|
Package ecsphysics2dplugin constructs the physics plugin. |
|
ecsphysics2d/internal
Package internal is the physics plugin itself: the Components it registers, the four Systems the step is, and the settings resolved at registration.
|
Package internal is the physics plugin itself: the Components it registers, the four Systems the step is, and the settings resolved at registration. |
|
ecsphysics2d/internal/types
Package types declares the concrete types ecsphysics2d's root aliases, and the plain functions its forwarders call.
|
Package types declares the concrete types ecsphysics2d's root aliases, and the plain functions its forwarders call. |
|
ecsscene
Package ecsscene records Entities into scene.
|
Package ecsscene records Entities into scene. |
|
ecsscene/ecssceneplugin
Package ecssceneplugin constructs the ecsscene plugin.
|
Package ecssceneplugin constructs the ecsscene plugin. |
|
ecsscene/internal
Package internal is the ecsscene plugin: New, the registration of every Component ecsscene's root declares, the recording scratch, and the one System, subscribed as ecsscene.RecordOnUpdate, that copies every matching Entity into scene's op queue once a tick.
|
Package internal is the ecsscene plugin: New, the registration of every Component ecsscene's root declares, the recording scratch, and the one System, subscribed as ecsscene.RecordOnUpdate, that copies every matching Entity into scene's op queue once a tick. |
|
input
Package input declares the driver-agnostic input Bundle: a unified Key space (keyboard keys AND mouse buttons), a polled State resource, discrete input events, and the Apply command a driver uses to feed input changes.
|
Package input declares the driver-agnostic input Bundle: a unified Key space (keyboard keys AND mouse buttons), a polled State resource, discrete input events, and the Apply command a driver uses to feed input changes. |
|
input/inputplugin
Package inputplugin constructs the input plugin.
|
Package inputplugin constructs the input plugin. |
|
input/internal
Package internal is the input plugin: New, the handlers behind input's commands and its AdvanceOnUpdate subscription, and the mcp Provider offering input_send and input_state.
|
Package internal is the input plugin: New, the handlers behind input's commands and its AdvanceOnUpdate subscription, and the mcp Provider offering input_send and input_state. |
|
input/internal/types
Package types declares the concrete types input's root aliases: Key with its name table, Mods, Pos, Change and State, whose unexported state the plugin reads or writes, and the consume side of State — folding a change in and advancing the per-tick edges.
|
Package types declares the concrete types input's root aliases: Key with its name table, Mods, Pos, Change and State, whose unexported state the plugin reads or writes, and the consume side of State — folding a change in and advancing the per-tick edges. |
|
mcp
Package mcp declares the agent-facing Bundle: how a plugin offers typed capabilities to an agent, and nothing about how those capabilities reach one.
|
Package mcp declares the agent-facing Bundle: how a plugin offers typed capabilities to an agent, and nothing about how those capabilities reach one. |
|
mcp/internal
Package internal is the mcp broker: the one plugin that collects every mcp.Provider Adapter in the engine and serves their capabilities to an agent over the Model Context Protocol.
|
Package internal is the mcp broker: the one plugin that collects every mcp.Provider Adapter in the engine and serves their capabilities to an agent over the Model Context Protocol. |
|
mcp/internal/types
Package types declares the concrete types mcp's root aliases: Capability, whose unexported fields only its two constructors, Command and Func, may set, and Option, which writes to capability settings no other package can reach.
|
Package types declares the concrete types mcp's root aliases: Capability, whose unexported fields only its two constructors, Command and Func, may set, and Option, which writes to capability settings no other package can reach. |
|
mcp/mcpplugin
Package mcpplugin constructs the mcp broker plugin.
|
Package mcpplugin constructs the mcp broker plugin. |
|
scene
Package scene declares the 3D Bundle: declarative frames - cameras and their passes, glTF models, buffer-built meshes, punctual lights and debug shapes - recorded into a frame-local queue, and models loaded, queried and unloaded through a persistent lookup.
|
Package scene declares the 3D Bundle: declarative frames - cameras and their passes, glTF models, buffer-built meshes, punctual lights and debug shapes - recorded into a frame-local queue, and models loaded, queried and unloaded through a persistent lookup. |
|
scene/internal
Package internal is the scene plugin: New, the resolution of scene.Config, the flush that turns a tick's recorded scene.OpQueue into gfx passes and draws - model expansion, light selection, culling, sorting, material interning and instance packing - the handlers of the two-hop model load, and the Start mount of the bundled shaders.
|
Package internal is the scene plugin: New, the resolution of scene.Config, the flush that turns a tick's recorded scene.OpQueue into gfx passes and draws - model expansion, light selection, culling, sorting, material interning and instance packing - the handlers of the two-hop model load, and the Start mount of the bundled shaders. |
|
scene/internal/types
Package types declares the concrete types scene's root aliases, and the machinery behind them: the recording vocabulary and the two resources with the recording methods of OpQueue and the queries and mutations of LookupAccess; the consume side of the queue; Config, which the Lookup holds; the model table with its residency, unloads and the glTF loader behind it; the mesh table; the bundled PBR material; the vertex, morph and animation packing; and the camera maths the flush and the coordinate helpers both build on.
|
Package types declares the concrete types scene's root aliases, and the machinery behind them: the recording vocabulary and the two resources with the recording methods of OpQueue and the queries and mutations of LookupAccess; the consume side of the queue; Config, which the Lookup holds; the model table with its residency, unloads and the glTF loader behind it; the mesh table; the bundled PBR material; the vertex, morph and animation packing; and the camera maths the flush and the coordinate helpers both build on. |
|
scene/sceneplugin
Package sceneplugin constructs the scene plugin.
|
Package sceneplugin constructs the scene plugin. |
|
ui
Package ui declares the immediate-mode layout and interaction Bundle: a consumer declares a tree of Elements into the Frame every update tick, and ui measures and arranges it, hit-tests the pointer, records the visuals into canvas and publishes what was interacted with in Interactions.
|
Package ui declares the immediate-mode layout and interaction Bundle: a consumer declares a tree of Elements into the Frame every update tick, and ui measures and arranges it, hit-tests the pointer, records the visuals into canvas and publishes what was interacted with in Interactions. |
|
ui/internal
Package internal is the ui plugin: New, the processing behind ui.ProcessOnUpdate that lays out the tick's ui.Frame, resolves the pointer into ui.Interactions and records into canvas, the private layout resource it keeps across ticks, the layout-snapshot slot behind ui.ArmLayoutCmd, and the mcp Provider offering ui_layout.
|
Package internal is the ui plugin: New, the processing behind ui.ProcessOnUpdate that lays out the tick's ui.Frame, resolves the pointer into ui.Interactions and records into canvas, the private layout resource it keeps across ticks, the layout-snapshot slot behind ui.ArmLayoutCmd, and the mcp Provider offering ui_layout. |
|
ui/internal/types
Package types declares the concrete types ui's root aliases, and the machinery behind them: the Element and Modifier vocabulary, the built-in visuals and containers, the Frame and Interactions resources, HoverTracker, the layout engine (Processor) that both Measure and the plugin run, and the rendering of a resolved tree into the layout-snapshot views.
|
Package types declares the concrete types ui's root aliases, and the machinery behind them: the Element and Modifier vocabulary, the built-in visuals and containers, the Frame and Interactions resources, HoverTracker, the layout engine (Processor) that both Measure and the plugin run, and the rendering of a resolved tree into the layout-snapshot views. |
|
ui/uiplugin
Package uiplugin constructs the ui plugin.
|
Package uiplugin constructs the ui plugin. |
|
docs
|
|
|
research/ecs-go-mechanics-bench/store
Package store is a throwaway stand-in for an ECS component store living in a DIFFERENT package from the loop that ranges over it.
|
Package store is a throwaway stand-in for an ECS component store living in a DIFFERENT package from the loop that ranges over it. |
|
extensions
|
|
|
diskstorage
Package diskstorage declares the desktop Extension of storage: a plugin that provides storage.PermanentFS as a directory confined under the user's data directory, named by the application id.
|
Package diskstorage declares the desktop Extension of storage: a plugin that provides storage.PermanentFS as a directory confined under the user's data directory, named by the application id. |
|
diskstorage/diskstorageplugin
Package diskstorageplugin constructs the diskstorage plugin.
|
Package diskstorageplugin constructs the diskstorage plugin. |
|
diskstorage/internal
Package internal is the diskstorage plugin: New, the application id and data directory resolution, and the confined directory it provides as storage's PermanentFS.
|
Package internal is the diskstorage plugin: New, the application id and data directory resolution, and the confined directory it provides as storage's PermanentFS. |
|
gogpu
Package gogpu declares cog's window, input, frame timing and WebGPU driver, built on, and named for, the gogpu library (github.com/gogpu/gogpu): the one kernel.PluginHost.
|
Package gogpu declares cog's window, input, frame timing and WebGPU driver, built on, and named for, the gogpu library (github.com/gogpu/gogpu): the one kernel.PluginHost. |
|
gogpu/gogpuplugin
Package gogpuplugin constructs the gogpu plugin.
|
Package gogpuplugin constructs the gogpu plugin. |
|
gogpu/internal
Package internal is the gogpu plugin: New, the kernel.PluginHost that owns the gogpu library's main loop, the app.MainLoop and gfx.Backend it provides, and the input bridge.
|
Package internal is the gogpu plugin: New, the kernel.PluginHost that owns the gogpu library's main loop, the app.MainLoop and gfx.Backend it provides, and the input bridge. |
|
jsstorage
Package jsstorage declares the browser Extension of storage: a plugin that provides storage.PermanentFS backed by the page's localStorage, under the key cog.storage.<AppId>.
|
Package jsstorage declares the browser Extension of storage: a plugin that provides storage.PermanentFS backed by the page's localStorage, under the key cog.storage.<AppId>. |
|
jsstorage/internal
Package internal is the jsstorage plugin: New, the application id check, and the localStorage-backed filesystem it provides as storage's PermanentFS.
|
Package internal is the jsstorage plugin: New, the application id check, and the localStorage-backed filesystem it provides as storage's PermanentFS. |
|
jsstorage/jsstorageplugin
Package jsstorageplugin constructs the jsstorage plugin.
|
Package jsstorageplugin constructs the jsstorage plugin. |
|
Package kernel is a small microkernel: plugins register resources, commands, and event subscriptions, then communicate through them.
|
Package kernel is a small microkernel: plugins register resources, commands, and event subscriptions, then communicate through them. |
|
archtest/internal
Package internal holds the fixture types kernel.TypeName's table test renders: named types declared in a package whose import path ends in internal, which is the shape every Bundle's and Port's internal/ package has.
|
Package internal holds the fixture types kernel.TypeName's table test renders: named types declared in a package whose import path ends in internal, which is the shape every Bundle's and Port's internal/ package has. |
|
libs
|
|
|
m
Package m provides immutable value-style mathematics for Cog.
|
Package m provides immutable value-style mathematics for Cog. |
|
slots
|
|
|
app
Package app declares the app Slot: the platform-agnostic application loop.
|
Package app declares the app Slot: the platform-agnostic application loop. |
|
app/appplugin
Package appplugin constructs the app plugin.
|
Package appplugin constructs the app plugin. |
|
app/internal
Package internal is the app plugin: New, the Loop a MainLoop drives, the tick source behind app.TimeCmd, the QuitCmd and TimeCmd handlers, and its mcp provider.
|
Package internal is the app plugin: New, the Loop a MainLoop drives, the tick source behind app.TimeCmd, the QuitCmd and TimeCmd handlers, and its mcp provider. |
|
gfx
Package gfx declares the gfx Slot, cog's driver-agnostic high-level renderer (renderer v2).
|
Package gfx declares the gfx Slot, cog's driver-agnostic high-level renderer (renderer v2). |
|
gfx/gfxplugin
Package gfxplugin constructs the gfx plugin.
|
Package gfxplugin constructs the gfx plugin. |
|
gfx/internal
Package internal is the gfx plugin: New, the handlers behind gfx's commands and subscriptions, the translator from recorded queues to a gfx.Queue, and the capture and frame-snapshot slots.
|
Package internal is the gfx plugin: New, the handlers behind gfx's commands and subscriptions, the translator from recorded queues to a gfx.Queue, and the capture and frame-snapshot slots. |
|
gfx/internal/types
Package types declares the concrete types gfx's root aliases: the recording types whose unexported state the renderer reads - OpQueue, ResourceQueue and the descriptors - with their recording methods and the consume side of the queues; the GPU vocabulary they carry in their fields, from IDs and formats to the backend Queue and its sinks; the view types snapshots share; and the shader preprocessor.
|
Package types declares the concrete types gfx's root aliases: the recording types whose unexported state the renderer reads - OpQueue, ResourceQueue and the descriptors - with their recording methods and the consume side of the queues; the GPU vocabulary they carry in their fields, from IDs and formats to the backend Queue and its sinks; the view types snapshots share; and the shader preprocessor. |
|
storage
Package storage declares the storage Slot: one kernel resource, FileSystem, a prioritized read-only overlay over every mounted filesystem, including the single permanent one that writes land in.
|
Package storage declares the storage Slot: one kernel resource, FileSystem, a prioritized read-only overlay over every mounted filesystem, including the single permanent one that writes land in. |
|
storage/internal
Package internal is the storage plugin: New and the handlers behind storage's commands.
|
Package internal is the storage plugin: New and the handlers behind storage's commands. |
|
storage/internal/types
Package types declares the concrete types storage's root aliases: FileSystem, WriteFS, Values and the value requests, whose unexported state the plugin's handlers read, and the types those refer to, PermanentFS included.
|
Package types declares the concrete types storage's root aliases: FileSystem, WriteFS, Values and the value requests, whose unexported state the plugin's handlers read, and the types those refer to, PermanentFS included. |
|
storage/storageplugin
Package storageplugin constructs the storage plugin.
|
Package storageplugin constructs the storage plugin. |
Click to show internal directories.
Click to hide internal directories.