Anonymous

Not logged in

  • English
  • Log in
GiderosMobile

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help

Categories

► Lua API
► Main API
► Plugins

Wiki tools

Wiki tools

  • Special pages

Page tools

Page tools

    Userpage tools

      More

      • What links here
      • Related changes
      • Printable version
      • Permanent link
      • Page information
      • Page logs

      Categories

      Categories

      • Mesh

      Mesh:setInstanceCount

      Namespaces

      • Page
      • Discussion

      Page actions

      • View
      • View source
      • History
      • More

      Available since: Gideros 2019.12
      Class: Mesh

      Description

      Enables instanced rendering and sets the number of instances to draw.

      Mesh:setInstanceCount(count)
      

      The GPU will draw your mesh a number of times instead of just once. This isn’t very useful unless you make a shader that is aware of it and can change vertices positions for each instance (please see Gideros Studio sample code).

      Parameters

      count: (number) number of instance to draw



      • Mesh
      • Mesh.new
      • Mesh:clearColorArray
      • Mesh:clearIndexArray
      • Mesh:clearTexture
      • Mesh:clearTextureCoordinateArray
      • Mesh:clearVertexArray
      • Mesh:getColor
      • Mesh:getColorArraySize
      • Mesh:getIndex
      • Mesh:getIndexArraySize
      • Mesh:getTextureCoordinate
      • Mesh:getTextureCoordinateArraySize
      • Mesh:getVertex
      • Mesh:getVertexArraySize
      • Mesh:resizeColorArray
      • Mesh:resizeIndexArray
      • Mesh:resizeTextureCoordinateArray
      • Mesh:resizeVertexArray
      • Mesh:setColor
      • Mesh:setColorArray
      • Mesh:setColors
      • Mesh:setCullMode
      • Mesh:setGenericArray
      • Mesh:setIndex
      • Mesh:setIndexArray
      • Mesh:setIndices
      • Mesh:setInstanceCount
      • Mesh:setPrimitiveType
      • Mesh:setTexture
      • Mesh:setTextureCoordinate
      • Mesh:setTextureCoordinateArray
      • Mesh:setTextureCoordinates
      • Mesh:setVertex
      • Mesh:setVertexArray
      • Mesh:setVertices



      • Main Page
      • Lua API
      • Main API
      • Plugins
      Retrieved from "https://wiki.gideros.rocks/index.php?title=Mesh:setInstanceCount&oldid=18867"
      Category:
      • Mesh
      Powered by MediaWiki
      • This page was last edited on 23 December 2022, at 10:30.
      • Privacy policy
      • About GiderosMobile
      • Disclaimers