pike.git / lib / modules / GL.pmod / GLSLUtils.pmod

version» Context lines:

pike.git/lib/modules/GL.pmod/GLSLUtils.pmod:1:   //! This module contains various utilities that greatly simplifies   //! working with GLSL and some other extensions such as vertex buffers   //! and render buffers.    - #if constant(GL.GLSL) + #require constant(GL.GLSL)   import GL;   import GLSL;      #define CHECK_ERROR(X) do{while(int err = glGetError()) { werror(#X ": glerror #%x\n", err);}}while(0)      private array(string) shader_path = ({});   private string shader_defines = "";   private string shader_ext = "";      //! Set the extension added to all shader filerequests.
pike.git/lib/modules/GL.pmod/GLSLUtils.pmod:1009:    inherit vec;       void create( Math.Matrix|float x, float y )    {    if( objectp( x ) )    ::create( x );    else    v = Math.Matrix( ({ x, y }) );    }   } - #else - constant this_program_does_not_exist = 1; - #endif +