digitalmars.D.learn - OpenGL Setup?
- OpenJelly (22/22) Jun 16 2016 Last time I worked on anything OpenGL in D I was using a Linux
- wobbles (19/43) Jun 16 2016 I notice the ST3 plugin was a bit... flaky the last time I tried
- Peter Lewis (6/17) Jun 16 2016 I sadly can't help you there, as I use Vim. But i do have a basic
- ketmar (3/3) Jun 16 2016 glfw sux. simpledisplay.d rox.
- OpenJelly (16/16) Jun 17 2016 On Thursday, 16 June 2016 at 19:52:58 UTC, OpenJelly wrote:
- Leandro Motta Barros via Digitalmars-d-learn (10/25) Jun 17 2016 I have been using Textadept ( http://foicica.com/textadept/ ) with
Last time I worked on anything OpenGL in D I was using a Linux machine, and I had to really bend over backward to get set up. I'm using Windows 7 at the moment and I'd like to work on some graphics stuff but I'm pretty lost... I just want to install an IDE that's not prone to crashing and comes with standard features like D syntax highlighting, code completion, code folding, side bar with my project's directory, integrated console, bindable key commands (build (with dub), run, stop), and some debugging help doesn't hurt but I can get by without being able to set break points... and then I need to get the right libs and bindings in order nut half of them I can't figure out the instructions for. What I've been trying to do for the past few hours is set up SublimeText3 with dub and get the derelictGLFW3 binding to work, but I can't even get dkit working, and I'd honestly rather be using code::blocks but I've had trouble getting D code completion working in that before, and while I could probably get SFML bindings to work (as their documentation caters to idiots like me), I don't really want to use it, I just want something small that handles an OpenGL window without the other stuff. If anyone's got a solid setup and can explain to me like I'm 5 how they got it all nice, that'd really help me out a lot. Thanks.
Jun 16 2016
On Thursday, 16 June 2016 at 19:52:58 UTC, OpenJelly wrote:Last time I worked on anything OpenGL in D I was using a Linux machine, and I had to really bend over backward to get set up. I'm using Windows 7 at the moment and I'd like to work on some graphics stuff but I'm pretty lost... I just want to install an IDE that's not prone to crashing and comes with standard features like D syntax highlighting, code completion, code folding, side bar with my project's directory, integrated console, bindable key commands (build (with dub), run, stop), and some debugging help doesn't hurt but I can get by without being able to set break points... and then I need to get the right libs and bindings in order nut half of them I can't figure out the instructions for. What I've been trying to do for the past few hours is set up SublimeText3 with dub and get the derelictGLFW3 binding to work, but I can't even get dkit working, and I'd honestly rather be using code::blocks but I've had trouble getting D code completion working in that before, and while I could probably get SFML bindings to work (as their documentation caters to idiots like me), I don't really want to use it, I just want something small that handles an OpenGL window without the other stuff. If anyone's got a solid setup and can explain to me like I'm 5 how they got it all nice, that'd really help me out a lot. Thanks.I notice the ST3 plugin was a bit... flaky the last time I tried it (admittedly about 6 months ago). I ended up settling on vim with a few plugins (and live without auto-complete, it's not that important for me), but when I was using GUI text editors, I settled on VS Code with the code-d plugin. Its autocomplete etc worked pretty much out of the box for me. https://code.visualstudio.com/ https://marketplace.visualstudio.com/items?itemName=webfreak.code-d Make sure you follow the 'dependencies' section of code-d through though to get your env set up. It worked outta the box for me, on both windows and linux. You can get VS Code to compile via ctrl+B (I think that was the shortcut) but you've to make a modification to a json file to tell it to do it. If you need more help let me know and I'll write up something proper for you. Cheers!
Jun 16 2016
On Thursday, 16 June 2016 at 19:52:58 UTC, OpenJelly wrote:I just want to install an IDE that's not prone to crashing and comes with standard features like D syntax highlighting, code completion, code folding, side bar with my project's directory, integrated console, bindable key commands (build (with dub), run, stop), and some debugging help doesn't hurt but I can get by without being able to set break points... and then I need to get the right libs and bindings in order nut half of them I can't figure out the instructions for.I sadly can't help you there, as I use Vim. But i do have a basic set up of GLFW. It's for mac but it should be too hard to make it work for windows. On Thursday, 16 June 2016 at 19:52:58 UTC, OpenJelly wrote:If anyone's got a solid setup and can explain to me like I'm 5 how they got it all nice, that'd really help me out a lot. Thanks.If you have any questions about my code, just ask.
Jun 16 2016
glfw sux. simpledisplay.d rox. https://github.com/adamdruppe/arsd http://dpldocs.info/experimental-docs/arsd.simpledisplay.html
Jun 16 2016
On Thursday, 16 June 2016 at 19:52:58 UTC, OpenJelly wrote:Trying to get VS Code to work with code-d... can't get dcd to work with it. It says it's failed to kill the dcd server when I try to reload it. It wasn't appearing in task manager (but dcd-client was) and manually starting it up didn't make it work in vs code. Trying to restart it in cmd freezes that window and the task refuses to kill. I'm trying to fix it now but I don't even know why it's not working... The arsd stuff just gives me a thick list of internal errors when I try to import it through dub. But I might almost have GLFW working... I can't really tell yet, but I did finally find the right dll to link to (files in the Windows x64 binaries kept giving me an error, but the one x64 dll in the x86 download ended up working). Not keen to try vim if it doesn't have the features I need to compensate for being a shitty programmer.
Jun 17 2016
I have been using Textadept ( http://foicica.com/textadept/ ) with Textadept-d ( https://github.com/Hackerpilot/textadept-d ). I use mostly on Linux for development, but I've recently spent two or three days on Windows and things worked well enough for me. (Coming for someone who has used Emacs for everything int he last 15+ years, this must mean something :-) ) Hope this helps, LMB On Fri, Jun 17, 2016 at 8:51 AM, OpenJelly via Digitalmars-d-learn < digitalmars-d-learn puremagic.com> wrote:On Thursday, 16 June 2016 at 19:52:58 UTC, OpenJelly wrote:Trying to get VS Code to work with code-d... can't get dcd to work withit. It says it's failed to kill the dcd server when I try to reload it. It wasn't appearing in task manager (but dcd-client was) and manually starting it up didn't make it work in vs code. Trying to restart it in cmd freezes that window and the task refuses to kill. I'm trying to fix it now but I don't even know why it's not working... The arsd stuff just gives me a thick list of internal errors when I try to import it through dub. But I might almost have GLFW working... I can't really tell yet, but I did finally find the right dll to link to (files in the Windows x64 binaries kept giving me an error, but the one x64 dll in the x86 download ended up working). Not keen to try vim if it doesn't have the features I need to compensate for being a shitty programmer.
Jun 17 2016