Class: OpenGLDebug::DebugShader

Inherits:
Object
  • Object
show all
Defined in:
lib/mittsu/renderers/opengl/opengl_debug.rb

Instance Method Summary collapse

Constructor Details

#initialize(handle) ⇒ DebugShader

Returns a new instance of DebugShader.



16
17
18
19
# File 'lib/mittsu/renderers/opengl/opengl_debug.rb', line 16

def initialize(handle)
  @handle = handle
  @uniforms = {}
end

Instance Method Details

#get_uniform_name(handle) ⇒ Object



25
26
27
# File 'lib/mittsu/renderers/opengl/opengl_debug.rb', line 25

def get_uniform_name(handle)
  @uniforms[handle]
end

#set_uniform(handle, name) ⇒ Object



21
22
23
# File 'lib/mittsu/renderers/opengl/opengl_debug.rb', line 21

def set_uniform(handle, name)
  @uniforms[handle] = name
end