Class: Gosu::GLTexInfo
- Inherits:
-
Object
- Object
- Gosu::GLTexInfo
- 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.
Instance Attribute Summary collapse
-
#bottom ⇒ Float
readonly
The V coordinate of the bottom edge of the image.
-
#left ⇒ Float
readonly
The U coordinate of the left edge of the image.
-
#right ⇒ Float
readonly
The U coordinate of the right edge of the image.
-
#tex_name ⇒ Integer
readonly
OpenGL texture id.
-
#top ⇒ Float
readonly
The V coordinate of the top edge of the image.
Instance Attribute Details
#bottom ⇒ Float (readonly)
Returns the V coordinate of the bottom edge of the image.
1000 1001 1002 |
# File 'rdoc/gosu.rb', line 1000 def bottom @bottom end |
#left ⇒ Float (readonly)
Returns the U coordinate of the left edge of the image.
988 989 990 |
# File 'rdoc/gosu.rb', line 988 def left @left end |
#right ⇒ Float (readonly)
Returns the U coordinate of the right edge of the image.
992 993 994 |
# File 'rdoc/gosu.rb', line 992 def right @right end |
#tex_name ⇒ Integer (readonly)
Returns OpenGL texture id.
984 985 986 |
# File 'rdoc/gosu.rb', line 984 def tex_name @tex_name end |
#top ⇒ Float (readonly)
Returns the V coordinate of the top edge of the image.
996 997 998 |
# File 'rdoc/gosu.rb', line 996 def top @top end |