[Derelict-Lua] FileSystem Trouble: Strange Behavior.

2017-01-31 Thread Payotz via Digitalmars-d
Hello! I have been trying to embed lua into my application, and I have strange behavior that I could not understand. I'm sure that this is not normal. First off, I have written a binding in order to interface my D code with Lua Code. ..:://\\::.. extern(C) nothrow int addSprite(lua_State

Re: [Derelict-GL3] GLSL: Syntax error unexpected tokens following #version

2016-12-04 Thread Payotz via Digitalmars-d-learn
On Sunday, 4 December 2016 at 08:32:23 UTC, Mike Parker wrote: On Sunday, 4 December 2016 at 08:30:40 UTC, Mike Parker wrote: your shader, print out the result of glGetString(GL_VERSION) to Alternatively, since you're using Derelict, you can check the return value of DerelictGL3.reload()

[Derelict-GL3] GLSL: Syntax error unexpected tokens following #version

2016-12-03 Thread Payotz via Digitalmars-d-learn
So I've been trying to teach myself how to OpenGL, and there are errors whenever I try to compile my shaders. Errors are : http://i.imgur.com/5hRaQL8.png My shader code is as follows: /// #version 130 attribute vec3 position; void main() { gl_Position = vec4(position,1.0); } /// My

Re: Two part question. Making a dynamic array of delegates, and taking in a delegate with unknown parameters as an argument .

2016-12-01 Thread Payotz via Digitalmars-d-learn
Thank you all for the replies. I'm extremely grateful. I'll look into each and every answer.

Two part question. Making a dynamic array of delegates, and taking in a delegate with unknown parameters as an argument .

2016-12-01 Thread Payotz via Digitalmars-d-learn
So, to give context, I am trying to make an event manager for a game I'm making. I was writing the "register()" method so I ran into a problem. The register method will take in delegates as an argument, but those delegates have varied arguments themselves, so I can't really put anything