Class: Engine::OpenGL::ComputeTexture
- Inherits:
-
Object
- Object
- Engine::OpenGL::ComputeTexture
- Defined in:
- lib/engine/opengl/compute_texture.rb
Instance Attribute Summary collapse
-
#gl_texture ⇒ Object
readonly
Returns the value of attribute gl_texture.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width, height) ⇒ ComputeTexture
constructor
A new instance of ComputeTexture.
Constructor Details
#initialize(width, height) ⇒ ComputeTexture
Returns a new instance of ComputeTexture.
8 9 10 11 12 |
# File 'lib/engine/opengl/compute_texture.rb', line 8 def initialize(width, height) @width = width @height = height create_texture end |
Instance Attribute Details
#gl_texture ⇒ Object (readonly)
Returns the value of attribute gl_texture.
6 7 8 |
# File 'lib/engine/opengl/compute_texture.rb', line 6 def gl_texture @gl_texture end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
6 7 8 |
# File 'lib/engine/opengl/compute_texture.rb', line 6 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
6 7 8 |
# File 'lib/engine/opengl/compute_texture.rb', line 6 def width @width end |