Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case attachment.`type`:
- of SP_ATTACHMENT_REGION:
- echo "HERE"
- of SP_ATTACHMENT_MESH:
- var meshAttachment = cast[ptr spMeshAttachment](attachment)
- var region = cast[ptr spAtlasRegion](meshAttachment.rendererObject)
- #var attachmentVertices = AttachmentVertices(
- # texture: cast[Texture](region.page.rendererObject),
- # renderData: RenderData(
- # vertices: @[],
- # indices: meshAttachment.triangles
- # )
- #)
- var triangleCount: int = meshAttachment.trianglesCount
- echo repr cast[array[triangleCount, uint32]](meshAttachment.triangles) # error here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement