[cl-opengl-devel] gl-array count

2012-07-19 Thread Chris Bagley
I've been slowly getting my head round the gl-array macros and there is one
last thing that is confusing me
In this struct, size is set to the type of unsigned byte...why? It seem
that this stores the length of the foreign array which, as far as I can
tell from CFFI doco, is an integer.

(defstruct (gl-array (:copier nil))

  Pointer to C array with size and type information attached.

  (pointer (null-pointer))

  (size 0 :type unsigned-byte)

  (type nil :type symbol))

There's probably something I'm missing and if anyone can explain that
would be great!
Thanks folks
___
cl-opengl-devel mailing list
cl-opengl-devel@common-lisp.net
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel


Re: [cl-opengl-devel] gl-array count

2012-07-19 Thread Luís Oliveira
On Thu, Jul 19, 2012 at 1:39 PM, Chris Bagley chris.bag...@gmail.com wrote:
 In this struct, size is set to the type of unsigned byte...why? It seem that
 this stores the length of the foreign array which, as far as I can tell from
 CFFI doco, is an integer.

unsigned-byte is the same as the type specifier (integer 0 *), i.e. an
unsigned integer. Does that clear it up?

-- 
Luís Oliveira
http://r42.eu/~luis/

___
cl-opengl-devel mailing list
cl-opengl-devel@common-lisp.net
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel