C++ (Cpp) hgeSprite Example

Introduction

The c++ (cpp) hgesprite example is extracted from the most popular open source projects, you can refer to the following example for usage.

Programming language: C++ (Cpp)

Class/type: hgeSprite

Example#1
File: main.cppProject: XadillaX/DMGameEngine

    virtual bool Render(float fDeltaTime)
    {
        spr->RenderStretch(0, 0, 600.0 / 1080.0 * 1920.0, 600);
        sprZazaka->Render(0, 0);
        sprZazakaClone->Render(100, 100);

        return false;
    }

Example#2
File: TKShellMenu.hppProject: Kogava/TankBattle

void TKShellMenu::Render()
{
    _hge->Gfx_BeginScene();
    _bg->Render(0,0);
    _font->SetColor(0xFFFFFFFF);
    hgeGUI::Render();
    _hge->Gfx_EndScene();
}