Class: Gosu::GLTexInfo

Inherits:
Object
  • Object
show all
Defined in:
rdoc/gosu.rb

Overview

Holds information about the underlying OpenGL texture and UV coordinates of an image.

Can be retrieved from some images to use them in OpenGL operations.

See Also:

Instance Attribute Summary collapse

Instance Attribute Details

#bottomFloat (readonly)

Returns the V coordinate of the bottom edge of the image.

Returns:

  • (Float)

    the V coordinate of the bottom edge of the image.


999
1000
1001
# File 'rdoc/gosu.rb', line 999

def bottom
  @bottom
end

#leftFloat (readonly)

Returns the U coordinate of the left edge of the image.

Returns:

  • (Float)

    the U coordinate of the left edge of the image.


987
988
989
# File 'rdoc/gosu.rb', line 987

def left
  @left
end

#rightFloat (readonly)

Returns the U coordinate of the right edge of the image.

Returns:

  • (Float)

    the U coordinate of the right edge of the image.


991
992
993
# File 'rdoc/gosu.rb', line 991

def right
  @right
end

#tex_nameInteger (readonly)

Returns OpenGL texture id.

Returns:

  • (Integer)

    OpenGL texture id


983
984
985
# File 'rdoc/gosu.rb', line 983

def tex_name
  @tex_name
end

#topFloat (readonly)

Returns the V coordinate of the top edge of the image.

Returns:

  • (Float)

    the V coordinate of the top edge of the image.


995
996
997
# File 'rdoc/gosu.rb', line 995

def top
  @top
end