Re: Indexed graphics for retro engine?

2019-09-19 Thread Shadowblitz16 via Digitalmars-d-learn
On Friday, 20 September 2019 at 00:41:58 UTC, Adam D. Ruppe wrote: On Thursday, 19 September 2019 at 03:47:05 UTC, Shadowblitz16 wrote: [...] My color.d actually can do it. [...] cool does this store image data as raw byte[]'s? I might have to use this :D

Re: Indexed graphics for retro engine?

2019-09-19 Thread Shadowblitz16 via Digitalmars-d-learn
On Thursday, 19 September 2019 at 23:32:13 UTC, norm wrote: On Thursday, 19 September 2019 at 20:47:45 UTC, Shadowblitz16 wrote: [...] I'd create a fragment shader to convert each pixel to 8 bit. There are many examples on the web about creating fragment shaders and 2d opengl scenes, i.e. a

Re: Indexed graphics for retro engine?

2019-09-19 Thread Shadowblitz16 via Digitalmars-d-learn
On Thursday, 19 September 2019 at 19:16:03 UTC, Mike Parker wrote: On Thursday, 19 September 2019 at 18:25:05 UTC, Shadowblitz16 wrote: I wanted to do 4bpp 16 color graphics. and I didn't want to load anything unnecessary in the image like the palette but instead supply it myself as a Color[1

Re: combining libraries into 1 or 1 for each system?

2019-09-19 Thread Shadowblitz16 via Digitalmars-d-learn
On Thursday, 19 September 2019 at 19:10:26 UTC, Mike Parker wrote: On Thursday, 19 September 2019 at 18:28:25 UTC, Shadowblitz16 wrote: I mean I don't want to have multiple dependency dll's but instead just my own dll with the dependencies packed inside. of course dll is only for windows so

Re: combining libraries into 1 or 1 for each system?

2019-09-19 Thread Shadowblitz16 via Digitalmars-d-learn
On Thursday, 19 September 2019 at 05:16:33 UTC, Mike Parker wrote: On Thursday, 19 September 2019 at 03:44:28 UTC, Shadowblitz16 wrote: let's say I have a project the relies on multiple packages.. is it possible to combine these libraries into a single one (or 1 per os) for final shipment of a

Re: Indexed graphics for retro engine?

2019-09-19 Thread Shadowblitz16 via Digitalmars-d-learn
On Thursday, 19 September 2019 at 05:22:37 UTC, Mike Parker wrote: On Thursday, 19 September 2019 at 03:47:05 UTC, Shadowblitz16 wrote: Is there a way to make a indexed graphics library that can handle importing and exporting true color images? I don't see why not. I would guess something l

Re: Indexed graphics for retro engine?

2019-09-18 Thread Shadowblitz16 via Digitalmars-d-learn
*indexed color images and shapes

Indexed graphics for retro engine?

2019-09-18 Thread Shadowblitz16 via Digitalmars-d-learn
Is there a way to make a indexed graphics library that can handle importing and exporting true color images? I would guess something like this could be simulated with pointers and references right?

Re: Indexed graphics for retro engine?

2019-09-18 Thread Shadowblitz16 via Digitalmars-d-learn
oh I would also like to be able to draw indexed images shapes as well.

combining libraries into 1 or 1 for each system?

2019-09-18 Thread Shadowblitz16 via Digitalmars-d-learn
let's say I have a project the relies on multiple packages.. is it possible to combine these libraries into a single one (or 1 per os) for final shipment of a program?

How do I install modules into my project?

2019-09-18 Thread Shadowblitz16 via Digitalmars-d-learn
how do I install modules into my project? I have installed dub and tried doing "dub add tkd" and "dub install tkd" to install this library https://github.com/nomad-software/tkd however I get this error when building.. Severity Code Description Project FileLineSuppression State E