Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. case attachment.`type`:
  2. of SP_ATTACHMENT_REGION:
  3. echo "HERE"
  4. of SP_ATTACHMENT_MESH:
  5. var meshAttachment = cast[ptr spMeshAttachment](attachment)
  6. var region = cast[ptr spAtlasRegion](meshAttachment.rendererObject)
  7. #var attachmentVertices = AttachmentVertices(
  8. # texture: cast[Texture](region.page.rendererObject),
  9. # renderData: RenderData(
  10. # vertices: @[],
  11. # indices: meshAttachment.triangles
  12. # )
  13.  
  14. #)
  15. var triangleCount: int = meshAttachment.trianglesCount
  16. echo repr cast[array[triangleCount, uint32]](meshAttachment.triangles) # error here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement