Changeset 31369 in project


Ignore:
Timestamp:
09/11/14 03:15:04 (5 years ago)
Author:
acharlton
Message:

wiki/glls: Update to 0.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/glls

    r31297 r31369  
    1 
    21== glls
    32[[toc:]]
     
    8281
    8382Return the location of {{ATTRIBUTE}}. The {{PIPELINE}} must be compiled before this function can be used.
     83
     84<procedure> (pipeline-mesh-attributes PIPELINE)</procedure>
     85
     86Return a list of {{(ATTRIBUTE-NAME . LOCATION)}} pairs, suitable for passing to [[http://wiki.call-cc.org/eggref/4/gl-utils|gl-utils’]] {{mesh-attribute-locations-set!}}.
    8487
    8588
     
    259262* {{n-elements:}} – The number of elements (vertices) to draw.
    260263* {{element-type:}} – The type of the values in the VAO’s element array. Must be one of {{+unsigned-byte+}}, {{+unsigned-short+}}, or {{+unsigned-int+}}.
     264* {{mesh:}} – A [[http://wiki.call-cc.org/eggref/4/gl-utils|gl-utils]] mesh, provided in place of {{vao:}}, {{mode:}}, {{n-elements:}}, and {{element-type:}}.
    261265* {{offset:}} – A byte offset to the location of the desired indices to draw.
    262266* {{data:}} – An optional pointer to an appropriate glls renderable object. If not provided, a fresh renderable object will be created. [[https://github.com/AlexCharlton/glls/blob/master/gllsRender.h|gllsRenderable.h]] defines the structs used for renderables. Which struct is used for a given pipeline is chosen based on the number of uniforms present in the pipeline.
     
    293297
    294298Since glls-render causes {{define-pipeline}} to define multiple functions, this macro exports everything related to {{PIPELINE}}.
    295 
    296 <procedure> (load-ply-renderable PLY RENDERABLE-MAKER . ARGS)</procedure>
    297 
    298 Load the given PLY file and return a renderable. Returns three values: a renderable, the vertex data blob, and the index data blob.  {{PLY}} is a PLY file name such as those accepted by opengl-glew’s [[http://api.call-cc.org/doc/opengl-glew/load-ply|{{load-ply}}]]. {{RENDERABLE-MAKER}} is the function used to construct the renderable of the desired pipeline. {{ARGS}} are the keyword arguments that must include {{vertex:}} and a {{face:}} arguments (as per [[http://api.call-cc.org/doc/opengl-glew/load-ply-vao|{{load-ply-vao}}]]) as well as arguments for each uniform (as per the renderable maker function).
    299299
    300300
     
    368368=== Version history
    369369
     370==== Version 0.6.0
     37110 September 2014
     372
     373* Integrate with gl-utils’ meshes
     374* Remove obsolete {{load-ply-renderable}}
     375
     376
    370377==== Version 0.5.2
    37137824 August 2014
Note: See TracChangeset for help on using the changeset viewer.