[Openmcl-devel] Multi-dimensional foreign memory array

nrms nils.stritzel at gmx.net
Tue Mar 8 14:45:08 PST 2005


Thanks for being so patient with me ;)

I added  (#_gluOrtho2D ... ) to my init function and now it works. 
Although I still don't know why my c source is still working without 
this statement.

Cheers,

Nils

Am 08.03.2005 um 22:56 schrieb Gary Byers:

>
>
> On Tue, 8 Mar 2005, nrms wrote:
>
>> Hi Gary!
>> It got me started, but I guess I will need some more enlightment which
>> maybe a result of the fact that I am not a Lisp veteran. I tried to
>> start quite easy with programm that paints a white quadrat on a black
>> background. This something I have done in a small C-program before. As
>> a starting point I used opengl-ffi.lisp
>> and tried to adapt it. Unfortunately I don't get a white quadrat, I 
>> get
>> only the black background.
>> Furthermore I have two rather naive (or stupit) questions, although I
>> think the answers won't solve my problem
>> Does  ":element-type '(unsigned-byte 8)" mean the element get 8 bits 
>> in
>> memory, i.e. 1 byte?
>> In (%stack-block ((p size)) p is a pointer and size is size of the
>> memory block, but in which unit? Bytes?
>> By the way chapter 9.3 refers to 9.1 for a description of rlet, but
>> there is none there.
>>
>> So what I coded myself is the following segment (or run the 
>> attachement
>> if interested).
>
>> 				    (for (i 1 100)
>> 					 (#_glRasterPos2i i (* i i))
>
> Hmm.  This will cause the raster position to vary from (1, 1) to
> (100, 10000).
>
> What coordinate system have you set up ?  Where is the point (1, 1) ?
> (Hint: where is the point (0, 0) ?  Where is (-1,-1) ?)
>
>




More information about the Openmcl-devel mailing list