From 128ff759facb55e3c0c1326e97c00b325ac3f484 Mon Sep 17 00:00:00 2001 From: "yux@google.com" Date: Wed, 15 Jul 2009 01:07:36 +0000 Subject: expose bitmap in js. Review URL: http://codereview.chromium.org/150058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20700 0039d316-1c4b-4281-b951-d872f2087c98 --- o3d/samples/MANIFEST | 1 + o3d/samples/assets/bmp_mip.o3dtgz | Bin 0 -> 105972 bytes o3d/samples/bitmap-draw-image.html | 234 +++++++++++++++++++++++++++++++++++++ o3d/samples/build.scons | 1 + 4 files changed, 236 insertions(+) create mode 100644 o3d/samples/assets/bmp_mip.o3dtgz create mode 100644 o3d/samples/bitmap-draw-image.html (limited to 'o3d/samples') diff --git a/o3d/samples/MANIFEST b/o3d/samples/MANIFEST index 181a43a..ef3a61c 100644 --- a/o3d/samples/MANIFEST +++ b/o3d/samples/MANIFEST @@ -2,6 +2,7 @@ archive-textures.html assets/android.png assets/archive_textures.o3dtgz assets/block.png +assets/bmp_mip.o3dtgz assets/brush.png assets/dome1.o3dtgz assets/dome2.o3dtgz diff --git a/o3d/samples/assets/bmp_mip.o3dtgz b/o3d/samples/assets/bmp_mip.o3dtgz new file mode 100644 index 0000000..b7a0c52 Binary files /dev/null and b/o3d/samples/assets/bmp_mip.o3dtgz differ diff --git a/o3d/samples/bitmap-draw-image.html b/o3d/samples/bitmap-draw-image.html new file mode 100644 index 0000000..038cd32 --- /dev/null +++ b/o3d/samples/bitmap-draw-image.html @@ -0,0 +1,234 @@ + + + + + + + + +Bitmap Draw Image Demo + + + + + +

Bitmap Draw Image Demo

+This tutorial shows how to create bitmap and how to draw image +on both bitmap and texture mipmap. +
+Scroll wheel to see different mipmaps. +
+ +
+ + + \ No newline at end of file diff --git a/o3d/samples/build.scons b/o3d/samples/build.scons index 04f8be7..8ca4018 100644 --- a/o3d/samples/build.scons +++ b/o3d/samples/build.scons @@ -118,6 +118,7 @@ samples = [ '2d.html', 'animated-scene.html', 'animation.html', + 'bitmap-draw-image.html', 'billboards.html', 'canvas-texturedraw.html', 'canvas.html', -- cgit v1.1