gl:create-shader

(gl:create-shader opengl shader-type


Description:

Create a shader and return it's index


Arguments:

         opengl -- opengl instance

    shader-type -- the type of shader to create (either *gl:vertex-shader* or *gl:fragment-shader*)


Returns: shader index value (0 if error)


Related: gl:link-shader gl:detach-shader gl:attach-shader 


Examples:



Back to index