Demo

Ortho demo

This demo shows how to render a bitmap in an orthogonal view. The size of the canvas doesn't matter, the bitmap is rendered in the original size.

The size of the bitmap is also checked to make sure that the format is a power of two.

The basic WebGL code in this demo is based on a demo from LearningWebGL which is an excellent place to start learning WebGL.

The source of this demo is published under the Creative Commons Attribution/Share-Alike license.

Download the source

Place a new comment

Copyright © Arno van der Vegt 2010, 2011  Disclaimer