Re: Configuring DerelictGL3

2018-07-19 Thread Entity325 via Digitalmars-d-learn
On Thursday, 19 July 2018 at 09:41:34 UTC, Mike Parker wrote: Are you doing all of that in the main thread, or a separate one? It's all on a separate thread, but I checked every single reference I could find after posting yesterday, and the OGL context is never referenced outside of the

Re: Configuring DerelictGL3

2018-07-18 Thread Entity325 via Digitalmars-d-learn
Thanks for the help (and sorry for the slow reply, it took longer to get everything tested and configured than I would have liked... sorry if this is frowned upon on this forum...) I do have an odd bug, however, and I'm not sure how to go any further with it. So I'm using the standard

Re: Configuring DerelictGL3

2018-06-06 Thread Entity325 via Digitalmars-d-learn
On Wednesday, 6 June 2018 at 23:43:34 UTC, Rene Zwanenburg wrote: On Wednesday, 6 June 2018 at 23:26:23 UTC, Entity325 wrote: I can't imagine things like "glEnable/DisableClientState" are deprecated. They are. All the missing symbols are indeed deprecated. Oh, I see where my confusion came

Configuring DerelictGL3

2018-06-06 Thread Entity325 via Digitalmars-d-learn
Updating my dev environment to the latest version of DMD, which means I updated to the latest versions of all of the Derelict libraries I use. Everything seems to be mostly in order(changed all the old references to "import derelict.opengl3.gl" to "import derelict.opengl"), except I'm getting

Re: code folding

2017-03-17 Thread Entity325` via Digitalmars-d-learn
On Saturday, 18 March 2017 at 05:00:48 UTC, Entity325` wrote: and both create a scope outside of which no declarations inside them are visible(potentially undesirable side-effects). Oh. Static ifs don't do that. Disregard, I'm wrong.

code folding

2017-03-17 Thread Entity325` via Digitalmars-d-learn
FYI, static if(true)//comments are great for adding some context to your code. { //stuff } and {//let's toss a comment on the scope declaration! //stuff } are functionally equivalent in my IDE. Both will fold down to only the top {(good), and both create a scope outside of which no

"is not callable using a non-shared object"

2015-12-10 Thread Entity325 via Digitalmars-d-learn
Usually the DMD compiler errors are very helpful, but I guess nothing can be perfect. In this case, I have a class I'm trying to declare. The class is intended to be a transport and storage medium, to allow information to be passed and updated asynchronously between two threads. One of the

Re: What am I doing Wrong (OpenGL SDL)

2015-02-05 Thread Entity325 via Digitalmars-d-learn
Aldacron and I have determined that I'm doing something weird with the imports between gl.d and gl3.d, the functions I'm trying to access are deprecated so the problem is less that they aren't loading and more that I can see them at all.

Re: What am I doing Wrong (OpenGL SDL)

2015-02-04 Thread Entity325 via Digitalmars-d-learn
I will see how much I can strip away and still reproduce the problem. If I find the cause before then, I'll be sure to report back here.

Re: What am I doing Wrong (OpenGL SDL)

2015-02-04 Thread Entity325 via Digitalmars-d-learn
I am having a problem which is similar in appearance to the OP's, but it does not seem to be similar in function. When I try to execute any of the Gl functions in the (protected) DerelictGL3.gl.loadSymbols function, I get an access violation. Checking for null reveals that the functions are

Re: What am I doing Wrong (OpenGL SDL)

2015-02-04 Thread Entity325 via Digitalmars-d-learn
On Thursday, 5 February 2015 at 06:07:34 UTC, Entity325 wrote: I will see how much I can strip away and still reproduce the problem. If I find the cause before then, I'll be sure to report back here. I don't know if this is relevant, but while stripping down my code, I discovered that

Re: What am I doing Wrong (OpenGL SDL)

2015-02-04 Thread Entity325 via Digitalmars-d-learn
On Thursday, 5 February 2015 at 07:23:15 UTC, drug wrote: Look at this https://github.com/drug007/geoviewer/blob/master/src/sdlapp.d I used here SDL and OpenGL and it worked. Ctor of SDLApp creates SDL window with OpenGL context, may be it helps. Tested your code. Symbols still not being