rdoc/gosu.rb in gosu-0.11.2 vs rdoc/gosu.rb in gosu-0.11.3.pre1
- old
+ new
@@ -388,12 +388,10 @@
#
# @see https://github.com/gosu/gosu/wiki/Basic-Concepts#tileability Tileability explained in the Gosu Wiki
def self.load_tiles(source, tile_width, tile_height, options = {}); end
##
- # EXPERIMENTAL - MAY DISAPPEAR WITHOUT WARNING.
- #
# Returns an image that is a smaller, rectangular view of this {Image}.
#
# This is a very fast operation, and no new textures are allocated.
# If you update this {Image} or the {#subimage} using {#insert}, the other {Image} will be affected as well.
#
@@ -404,12 +402,9 @@
#
# Caveats:
# * {#subimage} only works if the image lives on a single texture.
# If the image was too large and had to be split up into several OpenGL textures, subimage will return nil (same as {#gl_tex_info}).
# * If you stretch or rotate a {#subimage}, the pixels adjacent to it might bleed into it, as Gosu does not manage the 'tileability' of subimages.
- #
- # If you find a good way to use {#subimage}, please let us know on the forum and we can make this a part of Gosu's stable interface.
- # Thank you!
#
# @return [Image?] an image that represents a portion of the containing image
def subimage(left, top, width, height); end
# @!endgroup