Changeset 30953 in project


Ignore:
Timestamp:
06/03/14 01:45:33 (6 years ago)
Author:
acharlton
Message:

Update to 0.4.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/opengl-glew

    r30943 r30953  
    4040Creates and compiles a shader object given the shader's type (e.g. {{+vertex-shader+}}, {{+geometry-shader+}}, {{+fragment-shader}}), and a string containing the GLSL source. Returns an integer representing the ID of the shader.
    4141
    42 <procedure> (make-program SHADER-LIST)</procedure>
     42<procedure> (make-program SHADER-LIST [PROGRAM-ID])</procedure>
    4343
    4444Creates and links a program object, given a list of shader objects (i.e. the integers returned by {{make-shader}}. Returns an integer representing the ID of the program.
     45
     46Accepts an optional {{PROGRAM-ID}} argument. If given, {{make-program}} will use this ID rather than generating a new one.
    4547
    4648<procedure> (gen-buffer)</procedure>
     
    234236<procedure> (load-ply-vao FILE #!key VERTEX FACE)</procedure>
    235237
    236 Similar to {{load-ply}}, but returns a single vertex array ID as generated by {{make-vao}}. {{FILE}} is a PLY file (which may be gziped). The PLY file must contain at least the elements {{vertex}} and {{face}} (other elements will be ignored). {{VERTEX}} is a list of {{(attribute-location property-name ...)}} elements, which specifies how the vertex buffers of the VAO will be arranged. All properties named by each element of {{VERTEX}} must be of the same type. {{FACE}} is the name of the face property list.
     238Similar to {{load-ply}}, but returns a number of values:
     239
     240* A vertex array ID as generated by {{make-vao}}.
     241* A blob representing the vertex data of the model
     242* A blob representing the index data of the model
     243* The number of vertices of the model
     244* The GL enum value of the type of primitive used for the model (e.g. {{+triangles+}})
     245* The GL enum value of the element data type
     246
     247{{FILE}} is a PLY file (which may be gziped). The PLY file must contain at least the elements {{vertex}} and {{face}} (other elements will be ignored). {{VERTEX}} is a list of {{(attribute-location property-name ...)}} elements, which specifies how the vertex buffers of the VAO will be arranged. All properties named by each element of {{VERTEX}} must be of the same type. {{FACE}} is the name of the face property list.
    237248
    238249Again, for a PLY file that has element {{vertex}} with properties {{float x}}, {{float y}}, {{float z}}, {{float confidence}}, {{uchar r}}, {{uchar g}}, and {{uchar b}}, as well as a element {{face}} with a property list {{uchar ushort vertex_index}}, the following could be used:
     
    347358
    348359=== Version history
    349 ==== Version 0.4.3
     360
     361==== Version 0.4.4
     3622 June 2014
     363
     364* {{load-ply-vao}} now returns buffer data (which is important to keep around!)
     365
     366'''Version 0.4.3'''
     367
    35036830 May 2014
     369
    351370* Add optional program argument to {{make-program}}
    352371* gl-math short-circuits rotations of 0
     
    355374
    35637524 May 2014
     376
    357377* Fix segfaults caused by glewExperimental not being set (thanks, Terpri!)
    358378
     
    360380
    36138112 May 2014
     382
    362383* Remove rogue print statement
    363384
     
    365386
    36638711 May 2014
     388
    367389* Add gl-math module
    368390* Add gl-utils module
Note: See TracChangeset for help on using the changeset viewer.