My intention is to change 200 for the height and width to a variable, then use the interpreter to change the variable. If I define height2 and width2, it calls them constants.
If you meant changes I made, I just put (define height2 300) (define width2 300) after the first opengl definition, replace the 200s with their appropriate replacement, run the program, and try and redefine one of em.
The exact error is:
define-values: cannot re-define a constant: width2
Name:
Anonymous2010-11-16 12:40
You have a rather ugly way of closing parens. This isn't C, you can close all of them on one line.
Name:
Anonymous2010-11-16 12:53
>>6
What the fuck are you doing with those parens? Format it right, faggot.
Unfortunately, it doesn't change the screen width/height BUT it does change that value, and that is absolutely useful. Probably something to do with the screen-size maker thing running only once, then it continuously draws the stuff inside it, or even a single frame, I can't decipher this code.
The code was copypasta from a google groups on OpenGL, I did not do indenting or anything
Name:
Anonymous2010-11-17 1:08
>>13 >>17
I think I may have noticed why it does that behavior - they mention it can be a compile time optimization, that makes me believe that the first reference initials the data to that value, while forcing constant, THEN the following set! changes it to a variable, otherwise, it'd be kind of hard to have both behaviors possible with special flags.
Name:
Anonymous2010-11-17 1:43
Grr, if I send the initialization command after set!ing the variables, it doesn't change the window size.