- First commit to gitea

This commit is contained in:
2026-02-12 10:51:02 +01:00
commit a16a5a4102
40 changed files with 10033 additions and 0 deletions

19
texture.h Normal file
View File

@@ -0,0 +1,19 @@
#pragma once
#include "common.h"
namespace Texture
{
extern unsigned texture;
unsigned Create(const int w = -1, const int h = -1);
const bool Load(const unsigned& texture, const char* filename);
uint8_t* Load(const char* filename);
void Update(const unsigned& texture, const int w, const int h, const uint8_t* data);
}
namespace Bitmap
{
void PutPixel(uint8_t* data, const int x, const int y, const Color& color);
const Color GetPixel(uint8_t* data, const int x, const int y);
}