Skip to content

docs(scripting): add VertexBuffer and TriangleBuffer reference pages - #884

Open
neurowave wants to merge 3 commits into
mainfrom
docs/scripting-mesh-buffers
Open

docs(scripting): add VertexBuffer and TriangleBuffer reference pages#884
neurowave wants to merge 3 commits into
mainfrom
docs/scripting-mesh-buffers

Conversation

@neurowave

@neurowave neurowave commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Renderer.drawImageMesh takes VertexBuffer and TriangleBuffer:

drawImageMesh(image: Image, sampler: ImageSampler, vertices: VertexBuffer, uvs: VertexBuffer, triangles: TriangleBuffer, blendMode: BlendMode, opacity: number) -> ()

Neither type had a page, so the signature named types you couldn't look up. Every other Renderer method links its parameter types: drawPath links Path and Paint, drawImage links Image, ImageSampler, and BlendMode.

Adds a page for each with their add and reset methods, a Mesh group in the sidebar, and links from the drawImageMesh description.

Content comes from the Luau declarations in scripting_workspace builtins. Page structure follows the existing reference pages: ## Methods, the {/* */} signature comment above each signature block, and a code block rather than constructor prose, matching ImageSampler, which is constructed the same way.

mint broken-links passes.

drawImageMesh takes both types, but neither had a page, so the signature
named types the reader could not look up. Every other Renderer method
links its parameter types.

Content is taken from the Luau declarations in scripting_workspace
builtins.
@neurowave
neurowave requested a review from a team as a code owner August 23, 2026 19:04
@mintlify

mintlify Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
rive 🟢 Ready View Preview Aug 23, 2026, 7:07 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Use Methods rather than Fields for the two methods, add the signature
comments every other page carries above the signature block, and drop
the constructor prose; ImageSampler is constructed the same way and
introduces itself with a code block alone.
The api-reference groups run alphabetically; Mesh was inserted after
Path instead of between Mat4 and Paint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant