[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Public WebGL] resizing the canvas render surface
- To: public_webgl@khronos.org
- Subject: [Public WebGL] resizing the canvas render surface
- From: Philip Rideout <philiprideout@gmail.com>
- Date: Tue, 22 Jun 2010 21:41:28 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=etcHVmLAIPX6fmcumR8I+TJnNUbvWbaEzelHMa7h3/g=; b=bLrmhbbFgxKChu8RAOE45P1+eg7pewhiR3xcH2H6AP9ki0dFhFZX82NqtMZvoTOnRs 5U5gFULpFf3euSE6vCbEH6npjgvI+Z84gUWo1w8jtWjUrvzZKleez6KxU5ma00lN0yj/ jbywsKnlZEssjnRGgdYVRSH0dvn8ltO/n/eRk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=wVlAIceEI/y95CzQJcUv9br9RlbE+Wh2t9n4nIrES4hO81xNzVKNVn1+MoQxIDw33y 0V8MDNKNN1OB0SI8nN0+WnNz+ER4Yp9UMfl3wkcGRVPVjRuCL2iPTzYD6Cx/e/im/b0W R8BcbHnQHe0wmMH7jANS3J73u/dXP8lInJGKY=
- Sender: owner-public_webgl@khronos.org
I wrote my first WebGL demo and it looks aliased when CSS causes the
canvas to enlarge. This is probably expected behavior, but what's the
recommended practice for dealing with it? Should my resize handler
create a new WebGLRenderingContext object somehow? I'd love to see a
tiny snippet of Javascript that shows how to do this. Looks like the
current spec is very clear about the viewport transform, but has
little to say about resolution.
Philip
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: