Skip to content

olc::PixelGameEngine 2

from Javidx9's olc::PixelGameEngine2 video

Decals

Decals are non persistant sprites (need to be drawn every frame) . They live on the GPU and are layered on top of the screen image.

Loading a Decal

Decals are loaded via sprites

    olc::Sprite sprDemo = new olc::Sprite("./resources/my_png.png");
    olc::Decal decDemo = new olc::Decal(sprDemo);

Mouse Input

    GetMouse(2).bPressed    // button 2 is the mouse wheel button
    float GetMouseWheel()   // returns +ve for up, and -ve for down