example-1.cpp Example Reference
This is an example This is detailed docummentation ```cpp
#include #include #include “Engine.hpp”
// A dummy example int main() { // Create pixels buffer const auto pixels = std::make_unique<uint8_t[]>(new uint8_t[102410243]); fillData(*pixels, “path/to/texture.png”);
// Create a texture out of the pixels
Engine::Graphics::Texture2D texture(1024, 1024, *data);
// Done
return 0;
}
_Filename: example-1.cpp_
-------------------------------
Updated on 2022-10-19 at 22:22:02 +0000