Class: Parasol::VertexShader

Inherits:
Shader
  • Object
show all
Defined in:
lib/parasol/vertex_shader.rb

Instance Attribute Summary

Attributes inherited from Shader

#source, #type

Instance Method Summary collapse

Methods inherited from Shader

#compiled?, #delete, #handle

Methods included from OpenGLContext

#require_opengl_context!

Constructor Details

#initialize(source:) ⇒ VertexShader

Returns a new instance of VertexShader.



5
6
7
# File 'lib/parasol/vertex_shader.rb', line 5

def initialize source:
  super source:, type: GL::VERTEX_SHADER
end