/* # _____ ____ ___ # | \/ ____| |___| # | | | \ | | #----------------------------------------------------------------------- # Copyright 2024, tyra - https://github.com/h4570/tyra # Licensed under Apache License 2.0 # Wellington Carvalho */ #pragma once #include #include namespace Tyra { class Tutorial11 : public Game { public: Tutorial11(Engine* engine); ~Tutorial11(); void init(); void loop(); private: void setDrawData(); void loadBags(); void setTextureRegionRepeat(); void setTextureDefaultWrap(); const u8 MAX_TILES = 4; u8 TILE_COL = 0; u8 TILE_ROW = 0; u8 shouldFlipTextureSettings = false; float limitTimeToFlip = 2.00f; float elapsedTime = 0; Engine* engine; Vec4 cameraPosition, cameraLookAt; M4x4 translation, rotation, scale, model; Texture* UVCheckerTex; std::array vertices; std::array colors; std::array uvMap; StaticPipeline stapip; std::unique_ptr bag; std::unique_ptr infoBag; std::unique_ptr colorBag; std::unique_ptr texBag; }; } // namespace Tyra