Help making a game with transparency
Adam D. Ruppe
destructionator at gmail.com
Tue Oct 1 12:45:35 UTC 2019
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.
More information about the Digitalmars-d-learn
mailing list