27 lines
422 B
C++
27 lines
422 B
C++
#pragma once
|
|
|
|
#include <SDL3/SDL.h>
|
|
#include <memory>
|
|
#include "surface.h"
|
|
#include "s_sprite.h"
|
|
|
|
class Logo
|
|
{
|
|
|
|
private:
|
|
bool running = true;
|
|
Uint64 ticks = 0;
|
|
std::shared_ptr<Surface> logo_surface = nullptr;
|
|
std::unique_ptr<SSprite> logo_sprite = nullptr;
|
|
|
|
void init();
|
|
void close();
|
|
void checkEvents();
|
|
void update();
|
|
void render();
|
|
|
|
public:
|
|
Logo();
|
|
~Logo();
|
|
int run();
|
|
}; |