Class: OpenGLDebug::DebugShader
- Inherits:
-
Object
- Object
- OpenGLDebug::DebugShader
- Defined in:
- lib/mittsu/renderers/opengl/opengl_debug.rb
Instance Method Summary collapse
- #get_uniform_name(handle) ⇒ Object
-
#initialize(handle) ⇒ DebugShader
constructor
A new instance of DebugShader.
- #set_uniform(handle, name) ⇒ Object
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 |