Simple way to get Source Line Table of a compiled module.

2023-07-23 Thread realhet via Digitalmars-d-learn
Hi, I'm using LDC2 64bit on Windows. If I ask it to generate a .map file, I can locate the function. But how can I access the Line-code information? Do I need to generate a huge .pdb file with lots of other information (and also I have to understand it and extract the lines), or is there a li

Getting __COLUMN__ of source code location.

2023-07-23 Thread realhet via Digitalmars-d-learn
Hi, I can access the special tokens: __MODULE__, __LINE__, but how can I access the column. Is there a way to "hack" it out from LDC2? All the error messages contain column information, also I've found __traits(getLocation, symbol) also reporting the column. But how to get this information

Loading Textures in OpenGL

2023-07-23 Thread Ruby The Roobster via Digitalmars-d-learn
I'm currently trying to load two textures and apply them to a rectangle, following [this](https://learnopengl.com/Getting-started/Textures) which is linked to from the README file of the bindbc OpenGL bindings. I'm using Gamut to load the files, with the file: ```d module texture; import gamu

Re: Loading Textures in OpenGL

2023-07-23 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Sunday, 23 July 2023 at 16:21:05 UTC, Ruby The Roobster wrote: I'm currently trying to load two textures and apply them to a rectangle, following [this](https://learnopengl.com/Getting-started/Textures) which is linked to from the README file of the bindbc OpenGL bindings. [...] DCV uses

Re: Loading Textures in OpenGL

2023-07-23 Thread Ruby The Roobster via Digitalmars-d-learn
On Sunday, 23 July 2023 at 17:02:40 UTC, Ferhat Kurtulmuş wrote: On Sunday, 23 July 2023 at 16:21:05 UTC, Ruby The Roobster wrote: I'm currently trying to load two textures and apply them to a rectangle, following [this](https://learnopengl.com/Getting-started/Textures) which is linked to from

Re: Loading Textures in OpenGL

2023-07-23 Thread Ruby The Roobster via Digitalmars-d-learn
On Sunday, 23 July 2023 at 17:35:03 UTC, Ruby The Roobster wrote: On Sunday, 23 July 2023 at 17:02:40 UTC, Ferhat Kurtulmuş wrote: On Sunday, 23 July 2023 at 16:21:05 UTC, Ruby The Roobster wrote: I'm currently trying to load two textures and apply them to a rectangle, following [this](https://

Re: Loading Textures in OpenGL

2023-07-23 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Sunday, 23 July 2023 at 17:35:03 UTC, Ruby The Roobster wrote: On Sunday, 23 July 2023 at 17:02:40 UTC, Ferhat Kurtulmuş wrote: On Sunday, 23 July 2023 at 16:21:05 UTC, Ruby The Roobster wrote: I'm currently trying to load two textures and apply them to a rectangle, following [this](https://

Re: Loading Textures in OpenGL

2023-07-23 Thread Ruby The Roobster via Digitalmars-d-learn
On Sunday, 23 July 2023 at 17:45:53 UTC, Ferhat Kurtulmuş wrote: On Sunday, 23 July 2023 at 17:35:03 UTC, Ruby The Roobster [SNIP] Thank you. I'm still trying to work out how it works. It seems as if the creator tried the same thing that I did, and then commented it out. Perhaps for the sa

Re: Loading Textures in OpenGL

2023-07-23 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Sunday, 23 July 2023 at 18:06:46 UTC, Ruby The Roobster wrote: On Sunday, 23 July 2023 at 17:45:53 UTC, Ferhat Kurtulmuş wrote: On Sunday, 23 July 2023 at 17:35:03 UTC, Ruby The Roobster [SNIP] Thank you. I'm still trying to work out how it works. It seems as if the creator tried the sam

Re: having troubles with D and Vulkan.

2023-07-23 Thread Mike Shah via Digitalmars-d-learn
On Friday, 21 July 2023 at 02:22:56 UTC, harakim wrote: On Thursday, 20 July 2023 at 06:27:13 UTC, Danni Coy wrote: ok found it, I am an idiot, (really not used to working with dynamic libraries). erupted needs a call to load device level functions. loadDeviceLevelFunctions(instance); On Thu