Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: plugin/idl/texture.idl

Issue 150058: expose bitmap in js. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « plugin/idl/pack.idl ('k') | plugin/idl_list.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 \param values Values to be stored in the buffer. 179 \param values Values to be stored in the buffer.
180 \see o3d.Texture2D.set 180 \see o3d.Texture2D.set
181 %] 181 %]
182 [nocpp, userglue, include="core/cross/math_utilities.h"] 182 [nocpp, userglue, include="core/cross/math_utilities.h"]
183 void SetRect(int level, 183 void SetRect(int level,
184 int destination_x, 184 int destination_x,
185 int destination_y, 185 int destination_y,
186 int source_width, 186 int source_width,
187 float[] values); 187 float[] values);
188 188
189 %[
190 Copy pixels from source bitmap to certain mip level.
191 Scales if the width and height of source and dest do not match.
192
193 \param source_img source bitmap which would be drawn.
194 \param source_x x-coordinate of the starting pixel in the source image.
195 \param source_y y-coordinate of the starting pixel in the source image.
196 \param source_width width of the source image to draw.
197 \param source_height Height of the source image to draw.
198 \param dest_x x-coordinate of the starting pixel in the dest image.
199 \param dest_y y-coordinate of the starting pixel in the dest image.
200 \param dest_width width of the dest image.
201 \param dest_height height of the dest image.
202 \param dest_mip on which mip level the sourceImg would be drawn.
203 %]
204 void DrawImage(Bitmap source_img, int source_x, int source_y,
205 int source_width, int source_height,
206 int dest_x, int dest_y,
207 int dest_width, int dest_height, int dest_mip);
189 208
190 [verbatim=cpp_glue] %{ 209 [verbatim=cpp_glue] %{
191 void SetRectCheck(o3d::Texture2D* self, 210 void SetRectCheck(o3d::Texture2D* self,
192 int level, 211 int level,
193 int destination_x, 212 int destination_x,
194 int destination_y, 213 int destination_y,
195 int source_width, 214 int source_width,
196 const std::vector<float>& values, 215 const std::vector<float>& values,
197 bool check_needed) { 216 bool check_needed) {
198 if (level < 0 || level >= self->levels()) { 217 if (level < 0 || level >= self->levels()) {
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 %[ 438 %[
420 Returns a RenderSurface object associated with a given cube face and 439 Returns a RenderSurface object associated with a given cube face and
421 mip_level of a texture. 440 mip_level of a texture.
422 441
423 \param face The cube face from which to extract the surface. 442 \param face The cube face from which to extract the surface.
424 \param mip_level The mip-level of the surface to be returned. 443 \param mip_level The mip-level of the surface to be returned.
425 \param pack The pack in which the surface will reside. 444 \param pack The pack in which the surface will reside.
426 \return The RenderSurface object. 445 \return The RenderSurface object.
427 %] 446 %]
428 RenderSurface? GetRenderSurface(CubeFace face, int mip_level, Pack pack); 447 RenderSurface? GetRenderSurface(CubeFace face, int mip_level, Pack pack);
448
449 %[
450 Copy pixels from source bitmap to certain mip level.
451 Scales if the width and height of source and dest do not match.
452
453 \param source_img source bitmap which would be drawn.
454 \param source_x x-coordinate of the starting pixel in the source image.
455 \param source_y y-coordinate of the starting pixel in the source image.
456 \param source_width width of the source image to draw.
457 \param source_height Height of the source image to draw.
458 \param dest_x x-coordinate of the starting pixel in the dest image.
459 \param dest_y y-coordinate of the starting pixel in the dest image.
460 \param dest_width width of the dest image.
461 \param dest_height height of the dest image.
462 \param face on which face the sourceImg would be drawn.
463 \param dest_mip on which mip level the sourceImg would be drawn.
464 %]
465 void DrawImage(Bitmap source_img, int source_x, int source_y,
466 int source_width, int source_height,
467 int dest_x, int dest_y,
468 int dest_width, int dest_height,
469 CubeFace face, int dest_mip);
429 }; // TextureCUBE 470 }; // TextureCUBE
430 471
431 } // namespace o3d 472 } // namespace o3d
OLDNEW
« no previous file with comments | « plugin/idl/pack.idl ('k') | plugin/idl_list.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698