Skip to content

Commit

Permalink
use baboon-image instead of lena
Browse files Browse the repository at this point in the history
  • Loading branch information
sidorares committed May 28, 2017
1 parent 52da560 commit e57066f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/simpletex.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function draw(gl) {
gl.SwapBuffers();
}

var lena = require('lena');
var texture = require('baboon-image');

ntk.createClient(function(err, app) {

Expand All @@ -55,7 +55,7 @@ ntk.createClient(function(err, app) {
gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);

gl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGB, 512, 512, 0, gl.RGB, gl.UNSIGNED_BYTE, lena.data);
gl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGB, 512, 512, 0, gl.RGB, gl.UNSIGNED_BYTE, texture.data);
draw(gl);

wnd.on('resize', function(ev) {
Expand Down

0 comments on commit e57066f

Please sign in to comment.