Navigation Menu

Skip to content

Commit

Permalink
Updates from analysis of priority API routines
Browse files Browse the repository at this point in the history
  • Loading branch information
devel-chm committed Apr 7, 2017
1 parent c51d1d5 commit 69e8e29
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
16 changes: 14 additions & 2 deletions utils/priority_xs/NOTES.txt
Expand Up @@ -9,5 +9,17 @@

* glDelete* and glGen* routines have the same calling convention save
that the glDelete takes a pointer to n object ids to be deleted while
glGen take a pointer argument to a buffer large enough to recieve n
generated object ids.
glGen* routines take a pointer argument to a buffer large enough to
receive n generated object ids.

* glUniform[1234]{f,i,ui}v(location,count,<type*>value) is used to set
a single uniform value or array of uniform values. The uniform value
is either a single float, int, or uint (for the 1 versions) or the
vec[234] versions. The value array needs to include [1234] times
count elements of type <type> to load into the uniform variable.
Extensions add support for int64, uint64, and doubles to this.

* glUniformMatrix{2,3,4,2x3,3x2,2x4,4x2,3x4,4x3}{f}v(location,count,<type*>value)
behaves similarly but the number of elements is a multiple of the number of
elements in the base matrix (e.g., 4==4x4==16,...) multiplied by count.
Extensions add support for doubles to this.
4 changes: 2 additions & 2 deletions utils/priority_xs/glBufferData/usage.txt
@@ -1,10 +1,10 @@
GL_VERSION_1_5.0001.csv, glBufferData, -1,0,void,N/A,N/A,out,fixed,N/A
GL_VERSION_1_5.0001.csv, glBufferData, 0,0,GLenum,target,N/A,in,fixed,N/A
GL_VERSION_1_5.0001.csv, glBufferData, 1,0,GLsizeiptr,size,N/A,in,fixed,"number of bytes in data"
GL_VERSION_1_5.0001.csv, glBufferData, 2,1,"const void *",data,arg1(size),in,variable,"either pointer to size bytes of data or NULL (should we implement NULL or use 0?)"
GL_VERSION_1_5.0001.csv, glBufferData, 3,0,GLenum,usage,N/A,in,fixed,N/A
GL_VERSION_1_5.0001.csv, glBufferData, -1,0,void,N/A,N/A,out,fixed,N/A
GL_ARB_vertex_buffer_object.csv,glBufferDataARB,-1,0,void,N/A,N/A,out,fixed,N/A
GL_ARB_vertex_buffer_object.csv,glBufferDataARB, 0,0,GLenum,target,N/A,in,fixed,N/A
GL_ARB_vertex_buffer_object.csv,glBufferDataARB, 1,0,GLsizeiptrARB,size,N/A,in,fixed,"number of bytes in data"
GL_ARB_vertex_buffer_object.csv,glBufferDataARB, 2,1,"const void *",data,arg1(size),in,variable,"either pointer to size bytes of data or NULL (should we implement NULL or use 0?)"
GL_ARB_vertex_buffer_object.csv,glBufferDataARB, 3,0,GLenum,usage,N/A,in,fixed,N/A
GL_ARB_vertex_buffer_object.csv,glBufferDataARB,-1,0,void,N/A,N/A,out,fixed,N/A

0 comments on commit 69e8e29

Please sign in to comment.