- First commit to gitea
This commit is contained in:
19
texture.h
Normal file
19
texture.h
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user