Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a $PWD independent method to determine the location of the data directory #1

Closed
pwaller opened this issue Oct 9, 2012 · 0 comments

Comments

@pwaller
Copy link
Member

pwaller commented Oct 9, 2012

For testing purposes it will be desirable to run for example:

go run ${GOPATH}/src/github.com/go-gl/examples/nehe08/*.go

.. without being concerned about the run directory. Currently, I get [e] Failed to load texture: ../data/Glass.tga.

This package provides what looks to me to be a reasonable way of figuring out package-relative paths - I use it in glh to determine a font path.

pwaller added a commit that referenced this issue Oct 9, 2012
Fix for issue #1: $PWD independent resource loading.
@pwaller pwaller closed this as completed Oct 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant