Changeset 121

Show
Ignore:
Timestamp:
11/19/07 03:24:15 (1 year ago)
Author:
baxissimo
Message:

Added searching of path to GLshader so it can find shaders in other directories besides the current one.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/OpenMeshD/OpenMesh/Apps/GLViewer/GLViewer.d

    r117 r121  
    4040import math = std.math; 
    4141static import std.path; 
     42static import std.file; 
    4243 
    4344 
     
    182183        else { 
    183184            throw new Exception("You must supply a file name on the command line"); 
     185        } 
     186 
     187        { 
     188            GLshader.shader_path_add( 
     189                [std.file.getcwd, std.path.getDirName(args[0])]); 
    184190        } 
    185191