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
On Thu, Jul 19, 2012 at 1:39 PM, Chris Bagley chris.bagley@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?
cl-opengl-devel@common-lisp.net