Get Started With WebGL: Draw a Square

Bartek Drozdz has written a tutorial in .net magazine for any aspiring WebGL developers which shows you how to… wait for it… draw a square!

Why so simple? Bartek explains..

The first encounter with WebGL can be intimidating. The API has nothing of the friendly object-oriented libraries you might have used. WebGL is based on OpenGL, which is a rather old type C-style library. It features a long list of functions used to set different states and pass data to the GPU.

Shapes and shaders

The tutorial explains how the WebGL context works; how to create shaders; how the co-ordinates system works and how to set the drawing mode.

Info

Type:
Beginner, Tutorials
Author:
Bartek Drozdz
Posted on:
July 26th, 2011
Posted by:
Andi Smith
Views:
12288

Rating

2.56

Your Rating:
1 Star2 Stars3 Stars4 Stars5 Stars

Works on

BETA Please let us know if you find Get Started With WebGL: Draw a Square works in other browsers by leaving a comment below.

Comments

Emma

great post, where should I start ? What SDK should I install ? thanks

Posted on August 9, 2012

Add comment

(required)
(required)
(will not be published)
(required)