Class: Engine::OpenGL::ComputeTexture

Inherits:
Object
  • Object
show all
Defined in:
lib/engine/opengl/compute_texture.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_textureObject (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

#heightObject (readonly)

Returns the value of attribute height.



6
7
8
# File 'lib/engine/opengl/compute_texture.rb', line 6

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width.



6
7
8
# File 'lib/engine/opengl/compute_texture.rb', line 6

def width
  @width
end