Giving a text file containing GLSL to client
I'm working with an Applet which is in the making of becoming a 3D game. Basically what I'm doing is writing in OpenGL SL (Open Graphics Library Shader Language) which is contained in a text file then read by Java as a ByteBuffer.
Basically here's my questions:
How can I download the text file to the client?
What path would the filename be? (i.e., when calling GLShaders.class.getClassLoader().getResourceAsStre am(...), what would the ... be?)
Thank you in advance!
PS: I don't know why it put a space in "getResourceAsStream".