October 01, 2019 Re: Help making a game with transparency | ||||
---|---|---|---|---|
| ||||
Posted in reply to Murilo | On Monday, 30 September 2019 at 23:52:27 UTC, Murilo wrote: > { > window.redrawOpenGlSceneNow; like I said on email, this is the ONLY thing you should to in the event loop to trigger the redraw. > glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_ACCUM_BUFFER_BIT); > glLoadIdentity; > ship.draw(20, 20, 41, 47); All this actual drawing stuff should be attached to the `window.redrawOpenGlScene` delegate. Just do `window.redrawOpenGlScene = { that stuff } ` after creating the window but before the event loop to set it up. |
October 01, 2019 Re: Help making a game with transparency | ||||
---|---|---|---|---|
| ||||
Posted in reply to Murilo | On Monday, 30 September 2019 at 20:14:56 UTC, Murilo wrote: > What are your pages that you want people subscribing to? I'm just trolling. > And what is your patreon page? https://www.patreon.com/adam_d_ruppe but as you'll notice, it is currently $58. To reach "quit my job and work for y'all all the time" I put $8000. Realistically, that is never going to happen. thus why i troll. |
October 01, 2019 Re: Help making a game with transparency | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Tuesday, 1 October 2019 at 12:46:58 UTC, Adam D. Ruppe wrote:
> On Monday, 30 September 2019 at 20:14:56 UTC, Murilo wrote:
>> What are your pages that you want people subscribing to?
>
> I'm just trolling.
>
>> And what is your patreon page?
>
> https://www.patreon.com/adam_d_ruppe
>
> but as you'll notice, it is currently $58. To reach "quit my job and work for y'all all the time" I put $8000.
>
> Realistically, that is never going to happen.
>
> thus why i troll.
Alright, sending you money every month on Patreon would be a problem for me so I figure I can patron you in another way, I am writing a tutorial for your library and I have showed lots of people how useful your library can be, I have also sent several PR to add stuff to it. That will be my way of contributing.
|
October 02, 2019 Re: Help making a game with transparency | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Tuesday, 1 October 2019 at 12:45:35 UTC, Adam D. Ruppe wrote:
> On Monday, 30 September 2019 at 23:52:27 UTC, Murilo wrote:
>> {
>> window.redrawOpenGlSceneNow;
>
> like I said on email, this is the ONLY thing you should to in the event loop to trigger the redraw.
>
>> glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_ACCUM_BUFFER_BIT);
>> glLoadIdentity;
>> ship.draw(20, 20, 41, 47);
>
> All this actual drawing stuff should be attached to the `window.redrawOpenGlScene` delegate. Just do `window.redrawOpenGlScene = { that stuff } ` after creating the window but before the event loop to set it up.
It worked! :D Thank you so much man. Now I will finish refactoring the code and then I will be able to finish your tutorial.
|
Copyright © 1999-2021 by the D Language Foundation