Skip to content

How to create GLSL shader with thid OpenGL bindings? #19

@ghost

Description

Program -just creating a variable for the vertex shader:
require 'opengl'
require 'glu'
require 'glut'

$vertexShader = glCreateShader(GL_VERTEX_SHADER)

Result from Jetbrains Rubymine:
C:\Ruby24-x64\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Users/Andrew/Desktop/task3.rb
C:/Users/Andrew/Desktop/task3.rb:7:in <top (required)>': uninitialized constant GL_VERTEX_SHADER (NameError) from -e:1:inload'
from -e:1:in `

'

Process finished with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions