Re: Simple call to static member function

2016-03-11 Thread WhatMeWorry via Digitalmars-d-learn
On Friday, 11 March 2016 at 23:14:48 UTC, ag0aep6g wrote: On 11.03.2016 23:47, WhatMeWorry wrote: [...] This suggests that you simply `import ResourceManager;` in main.d. [...] Very good. Thanks for the fix and the pointers. I'm porting C++ code over, and it has corrupted me. I'll

Re: Simple call to static member function

2016-03-11 Thread ag0aep6g via Digitalmars-d-learn
On 11.03.2016 23:47, WhatMeWorry wrote: --- main.d void main(string[] argv) { ResourceManager.LoadShader("VertexShader.glsl", "FragmentShader.glsl", "filler", "sprite"); --- File ResourceManager.d

Re: Simple call to static member function

2016-03-11 Thread tsbockman via Digitalmars-d-learn
On Friday, 11 March 2016 at 22:47:00 UTC, WhatMeWorry wrote: main.d(173): Error: undefined identifier 'LoadShader' in module 'ResourceManager' Please show enough of the code that I can actually try to compile it myself. In particular, I need to see how you handled the imports since that is

Simple call to static member function

2016-03-11 Thread WhatMeWorry via Digitalmars-d-learn
--- main.d void main(string[] argv) { ResourceManager.LoadShader("VertexShader.glsl", "FragmentShader.glsl", "filler", "sprite"); --- File ResourceManager.d class ResourceManager {