With
function init() {
try {
var canvas = document.getElementById("glcanvas");
gl = canvas.getContext('webgl', {preserveDrawingBuffer: true});
if ( ! gl ) {
throw "Could not create WebGL context.";
}
I cannot reproduce this.
With
function init() {
try {
var canvas = document.getElementById("glcanvas");
gl = canvas.getContext('webgl');
if ( ! gl ) {
throw "Could not create WebGL context.";
}
I can reproduce the drawing disappears effect by hitting enter on the text
field.
I haven't studied your code enough to see why you are not redrawing the
cube in draw().
Does that help?
Thanks,
--
Raul
On Sat, Mar 8, 2014 at 9:44 PM, Brian Schott <[email protected]> wrote:
> When I click enter on the text field and press enter, even with the phony
> text that is presently in it, the drawing disappears, instead of staying
> and a new line appearing. When there is real information in the text field,
> a turtle command moving the turtle forward by n steps, the drawing
> disappears and a line as long as n steps that the turtle would
> take,appears. Then when I repeat the click and enter, the turtle moves
> again, but only the newest path ever shows.
>
> Is that clearer?
>
>
> On Sat, Mar 8, 2014 at 8:43 PM, Raul Miller <[email protected]> wrote:
>
> > Can you tell me the steps you are using to get the behavior you do not
> want
> > (and what you want to happen instead)?
> >
> > Thanks,
> >
> > --
> > Raul
> >
> > --
> (B=)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm