Files
tyra-linux/tutorials/10-sprite-sheet/inc/tutorial_10.hpp
T
Guido Diego Quispe Robles 20d2291a88 Update Tyra copyright
2023-05-28 16:46:32 -03:00

45 lines
852 B
C++

/*
# _____ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2022-2023, tyra - https://github.com/h4570/tyra
# Licensed under Apache License 2.0
# Guido Diego Quispe Robles
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
*/
#pragma once
#include <tyra>
#include "fontSprite.hpp"
namespace Tyra {
class Tutorial10 : public Game {
public:
Tutorial10(Engine* engine);
~Tutorial10();
void init();
void loop();
private:
void loadTexture();
void loadSprite();
Engine* engine;
Pad* pad;
Font font;
Sprite sprite;
Sprite spriteFlip;
Sprite spriteScale;
Sprite spriteStrech;
std::string str_filter;
PipelineTextureMappingType textureFilter;
};
} // namespace Tyra